login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 


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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 22 23:47 EDT 2024. Contains 376140 sequences. (Running on oeis4.)