You can put this solution on YOUR website! i^0 = 1
i^1 = i
i^2 = -1
i^3 = -i
i^4 = (-1)(-1) = 1
This cycle repeats as you increase the exponent. Hence i^5 = i^(4+1) = i^4 * i^i = 1*i = i
All you need to so is divide the given exponent by 4 and then find the remainder. The remainder will be either 0, 1, 2, 3. Which will correspond to 1, i, -1, -i respectively.
For i^23, we get = = = =
For i^24, the remainder is 0. So =