1,2
Basis for sequence is shortest arithmetic sequence with initial term n and difference 1 that sums to a perfect square. Cf. A100251-A100254.
Table of n, a(n) for n=1..50.
n+(n+1)+...+(n+A101160(n))=n+(n+1)+...+A101159(n)= A101157(n)^2=A101158(n)
a(11)=2 since j=2 is the smallest integer for which 11+...+11+j=6^2=36 is a perfect square
Cf. A101157-A101159.
Sequence in context: A011166 A181274 A115341 * A103191 A071607 A095059
Adjacent sequences: A101157 A101158 A101159 * A101161 A101162 A101163
nonn
Charlie Marion, Dec 29 2004
approved