OFFSET
1,2
COMMENTS
It appears that the ratio a(n+1)/a(n) -> 2.
FORMULA
a(n) = Sum_{i=1 .. (a(n-1) mod (n-1)) + 1} a(n-i).
EXAMPLE
For n = 7, we add up the previous a(7-1) mod (7-1) + 1 = 3 terms to get a(7) = a(6) + a(5) + a(4) = 14 + 7 + 5 = 26.
MATHEMATICA
Modanacci={1, 2}; Do[AppendTo[Modanacci, Sum[Modanacci[[-i]], {i, Mod[Modanacci[[-1]], Length[Modanacci]]+1}]], 100]
CROSSREFS
KEYWORD
nonn
AUTHOR
Mehmet A. Ates, Jul 29 2024
STATUS
approved