OFFSET
0,2
COMMENTS
For n > 3 we have a(n) < n^2/4; for n > 44 we have a(n) > n^2/5. - Stefan Steinerberger, Apr 17 2006
This sequence contains infinitely many squares. - Philippe Deléham, Apr 03 2009
The squares in this sequence are precisely the powers of 4. - Franklin T. Adams-Watters, Jan 06 2014
REFERENCES
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
T. D. Noe, Table of n, a(n) for n = 0..1000
FORMULA
a(n+1) = a(n) + A000196(a(n)). - Reinhard Zumkeller, Dec 28 2011
Conjecture: a(n) ~ n^2/4. - José María Grau Ribas, Feb 13 2024
MATHEMATICA
NestList[ # + Floor[ Sqrt[ # ] ] &, 1, 50 ]
PROG
(Haskell)
a002984 n = a002984_list !! n
a002984_list = iterate (\x -> x + a000196 x) 1
-- Reinhard Zumkeller, Dec 28 2011
(Magma) [n le 0 select 1 else Self(n)+Floor(Sqrt(Self(n))): n in [0..60]]; // Bruno Berselli, Feb 15 2013
CROSSREFS
KEYWORD
nonn,easy,nice
AUTHOR
EXTENSIONS
More terms from Larry Reeves (larryr(AT)acm.org), Dec 14 2000
STATUS
approved