+0  
 
0
42
1
avatar

If $x$ is an element of the set $\{ -1, 1, 2 \}$ and $y$ is an element of $\{ -2, -1, 0, 1, 2 \}$, how many distinct values of $x^y$ are positive?

 

HELLO?

 Sep 12, 2020
edited by Guest  Sep 12, 2020
edited by Guest  Sep 12, 2020
 #1
avatar
0

a=listforeach(n, (-1, 1, 2), listforeach(m,(-2, -1, 0, 1, 2),(n^m));print sort(a),"Total =>>", count a

 

(-1, -1, 0.25, 0.5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 4) Total =>> 15

 

I count 5 distinct positive values [0.25,  0.5,  1,  2,  4]

 Sep 12, 2020

65 Online Users

avatar
avatar