login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A335898
a(n) = a(floor((n-1)/a(n-1))) + a(floor((n-2)/a(n-2))) with a(1) = a(2) = 1.
2
1, 1, 2, 2, 2, 2, 3, 3, 2, 3, 4, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 4, 5, 5, 4, 5, 6, 5, 5, 6, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 5, 6, 6, 4, 6, 6, 5, 6, 6, 6, 6, 6, 7, 6, 6, 8, 7, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 6, 7, 7, 6, 7
OFFSET
1,3
COMMENTS
This sequence is a_1(n) where a_i(n) = Sum_{k=1..i+1} a_i(floor((n-k)/a_i(n-k))) with a_i(n) = 1 for n <= i+1.
Conjecture: This sequence hits every positive integer.
MATHEMATICA
a[1] = a[2] = 1; a[n_] := a[n] = a[Floor[(n-1)/a[n-1]]] + a[Floor[(n-2)/a[n-2]]]; Array[a, 100] (* Amiram Eldar, Jun 29 2020 *)
PROG
(PARI) a=vector(10^2); a[1]=a[2]=1; for(n=3, #a, a[n]=a[(n-1)\a[n-1]]+a[(n-2)\a[n-2]]); a
CROSSREFS
Sequence in context: A093450 A096198 A103183 * A143901 A115263 A055894
KEYWORD
nonn,look,easy
AUTHOR
Altug Alkan, following a suggestion from Andrew R. Booker, Jun 29 2020
STATUS
approved