OFFSET
0,5
FORMULA
a(n) = a(n-1) + a(sqrt(n)) if n is a square or a(n-1) otherwise.
MATHEMATICA
a[0]:=1; a[n_]:=If[IntegerQ[Sqrt[n]], a[n-1]+a[Sqrt[n]], a[n-1]]; Table[a[n], {n, 0, 80}] (* Stefano Spezia, May 06 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
James P. B. Hall, Apr 09 2021
STATUS
approved