Two different sequences are alternate here 7, 8, 9 on odd places 16 = 2^4 = 4^2, 27 = 3^3 on even places. Only the author of the problem knows what idea is in his mind. And it is just very happy end when the author knows it . . . Unhappy end is when the author does not know . . .