OFFSET
1,2
EXAMPLE
a(1) = 1,
a(2) = a(1) + a(1) = 2,
a(3) = a(1) + a(1) = 2,
a(4) = a(2) + a(1) = 3,
a(5) = a(2) + a(2) = 4,
a(6) = a(2) + a(2) = 4,
a(7) = a(2) + a(2) = 4,
a(8) = a(2) + a(2) = 4,
a(9) = a(3) + a(2) = 4,
a(10) = a(3) + a(3) = 4,
a(11) = a(3) + a(3) = 4, etc.
PROG
(PARI) a(n) = if (n==1, 1, my(r=sqrtint(n), s=sqrtint(n-1)); a(r) + a(s)); \\ Michel Marcus, Mar 17 2022
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Ctibor O. Zizka, Mar 06 2010
EXTENSIONS
More terms from Michel Marcus, Mar 17 2022
Name simplified by Jon E. Schoenfield, Mar 17 2022
STATUS
approved