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.
a(11)=2 since j=2 is the smallest integer for which 11+...+11+j=6^2=36 is a perfect square
Sequence in context: A011166 A181274 A115341 * A103191 A071607 A095059
Adjacent sequences: A101157 A101158 A101159 * A101161 A101162 A101163
Charlie Marion, Dec 29 2004