OFFSET
0,1
LINKS
Robert Israel, Table of n, a(n) for n = 0..10000
S. H. Weintraub, An interesting recursion, Amer. Math. Monthly, 111 (No. 6, 2004), 528-530.
MAPLE
a[0]:= 2:
for n from 1 to 100 do a[n]:= f(a[n-1]) od:
seq(a[n], n=0..100); # Robert Israel, Jan 28 2018
PROG
(PARI) lista(nn) = {print1(n=2, ", "); for (k=2, nn, m = 2*n - sqrtint(n)^2; print1(m, ", "); n = m; ); } \\ Michel Marcus, Oct 23 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jun 10 2004
STATUS
approved