A372970 a(1)=1, then a(n) = floor(n/max(a(n-1),a(floor(n/2)))).
1, 2, 1, 2, 2, 3, 2, 4, 2, 5, 2, 4, 3, 4, 3, 4, 4, 4, 4, 4, 4, 5, 4, 6, 4, 6, 4, 7, 4, 7, 4, 8, 4, 8, 4, 9, 4, 9, 4, 10, 4, 10, 4, 8, 5, 9, 5, 8, 6, 8, 6, 8, 6, 9, 6, 8, 7, 8, 7, 8, 7, 8, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 8, 8, 8, 9, 8, 8, 8, 10, 8, 8, 8, 10, 8, 11, 8, 11, 8, 10, 9, 10, 9, 10, 9, 10, 9, 11
Offset: 1
Keywords
Links
- Benoit Cloitre, Plot of a(n)/sqrt(n) for n=1 up to 400000.
- Hugo Pfoertner, Plot of a(n)/sqrt(n), n=1..400000, zoom into pdf to see details.
Programs
-
PARI
a(n)=if(n<2,1,floor(n/max(a(n-1),a(n\2))))
Comments