OFFSET
1,2
COMMENTS
LINKS
Shawn A. Broyles, Table of n, a(n) for n = 1..1000
FORMULA
a(n^2) = n^2. - Michel Marcus, Jun 28 2013
a(n) <= 3*n - 2. - David A. Corneth, May 03 2018
EXAMPLE
a(11)=13 since j=13 is the smallest integer such that 11+...+j=6^2=36 is a perfect square.
PROG
(PARI) a(n) = {my(j = 0); while(! issquare(sum(k=0, j, n+k)), j++); n+j; } \\ Michel Marcus, May 02 2018
(PARI) a(n) = my(s = n, t = 0); while(!issquare(s), s += n + t++); n + t \\ David A. Corneth, May 05 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Charlie Marion, Dec 29 2004
EXTENSIONS
More terms from Michel Marcus, Jun 28 2013
STATUS
approved