The numbers in the sequence
0,9,26,65
are close to the numbers in the sequence of cubes:
1,8,27,64, which is
1³,2³,3³,4³
0 = 1-1 = 1³-1 <-- 1st term
9 = 8+1 = 2³+1 <-- 2nd term
26 = 27-1 = 3³-1 <-- 3rd term
65 = 64+1 = 4³+1 <-- 4th term
So the nth term will begin with n³
If n is even we will add 1
If n is odd we will add -1
So regardless, we add (-1)n
The general term is
Edwin