This week's book giveaway is in the Android forum. We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line! See this thread for details.

I am trying to solve the following for n: somenumber=(1/3*(-1))^n+(2/3*2)^n I tried the following code; I guess it's pretty clear I dont know what I am doing. somenumber = (Math.pow(((1/3)*(-1)),n) + Math.pow(((2/3)*(2)),n))){ any pointers?