Consider the sequence of integers 0,1,2,4,6,9,12,... obtained by starting with zero, adding 1, then adding 1 again, then adding 2, and adding 2 again, then adding 3, and adding 3 again, and so on. If we call the subsequent terms of this sequence a0,a1,a2,..., then we have a0=0, and a2n−1=a2n−2+n , a2n=a2n−1+n for all integers n≥1.
Find all integers k≥0 for which ak is the square of an integer. number theoryPerfect Squarerecurrence relation