login
A097747
a(n) = a(n mod a(n-1)) + floor(n/a(n-1)), a(0) = 1.
2
1, 2, 2, 3, 3, 3, 3, 4, 3, 4, 4, 5, 4, 5, 5, 4, 5, 5, 6, 5, 5, 6, 6, 6, 5, 6, 6, 7, 5, 8, 6, 7, 7, 7, 7, 6, 7, 7, 8, 8, 6, 9, 7, 8, 8, 8, 8, 9, 8, 8, 8, 9, 9, 8, 9, 8, 8, 9, 9, 9, 9, 10, 8, 11, 9, 9, 10, 10, 9, 10, 8, 12, 7, 13, 9, 11, 10, 11, 9, 12, 9, 10, 10, 11, 11, 10, 11, 11, 9, 12, 10, 11, 11, 11
OFFSET
0,2
COMMENTS
a(A097748(n)) = n. - Corrected by Robert Israel, Oct 08 2024
LINKS
MAPLE
A[0]:= 1:
for n from 1 to 100 do A[n]:= A[n mod A[n-1]] + floor(n/A[n-1]) od:
seq(A[i], i=0..100); # Robert Israel, Oct 08 2024
CROSSREFS
Cf. A097748.
Sequence in context: A272605 A235703 A366664 * A285717 A115777 A340033
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Aug 23 2004
STATUS
approved