login
A097044
a(n) = n + a(floor(sqrt(n))) for n > 1; a(1) = 1.
2
1, 3, 4, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 23, 24, 25, 26, 27, 28, 29, 30, 31, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 75, 76, 77, 78, 79, 80, 81, 82
OFFSET
1,2
LINKS
FORMULA
a(1)=1; a(n) = n + a(floor(sqrt(n))) for n > 1.
MAPLE
f:= proc(n) option remember; n + procname(floor(sqrt(n))) end proc:
f(1):= 1:
map(f, [$1..100]); # Robert Israel, May 17 2017
CROSSREFS
Cf. A097043 ( n - a(floor(sqrt(n))) ).
Sequence in context: A246847 A193406 A104426 * A198330 A232779 A086986
KEYWORD
nonn
AUTHOR
Rick L. Shepherd, Jul 20 2004
STATUS
approved