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

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A298357 a(n) = a(n-1) + a(n-2) + a([n/2]) + a([n/3]) + ... + a([n/n]), where a(0) = 1, a(1) = 2, a(2) = 3. 2
1, 2, 3, 9, 19, 37, 74, 131, 238, 410, 710, 1184, 2014, 3320, 5516, 9044, 14888, 24262, 39698, 64510, 105089, 170545, 277057, 449027, 728502, 1179967, 1912216, 3096110, 5014519, 8116824, 13141430, 21268343, 34425826, 55710704, 90162442, 145899135, 236104060 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
a(n)/a(n-1) -> (1 + sqrt(5))/2, the golden ratio (A001622), so that (a(n)) has the growth rate of the Fibonacci numbers (A000045). See A298338 for a guide to related sequences.
LINKS
MATHEMATICA
a[0] = 1; a[1] = 2; a[2] = 3;
a[n_] := a[n] = a[n - 1] + a[n - 2] + Sum[a[Floor[n/k]], {k, 2, n}];
Table[a[n], {n, 0, 30}] (* A298357 *)
PROG
(Python)
from functools import lru_cache
@lru_cache(maxsize=None)
def A298357(n):
if n <= 2:
return n+1
c, j = A298357(n-1)+A298357(n-2), 2
k1 = n//j
while k1 > 1:
j2 = n//k1 + 1
c += (j2-j)*A298357(k1)
j, k1 = j2, n//j2
return c+2*(n-j+1) # Chai Wah Wu, Mar 31 2021
CROSSREFS
Sequence in context: A113201 A089753 A094679 * A094812 A307898 A079992
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Feb 10 2018
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | 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 April 17 20:17 EDT 2024. Contains 371767 sequences. (Running on oeis4.)