This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A375079 #13 Jul 31 2024 22:11:57 %S A375079 1,2,2,5,7,14,26,56,56,138,306,612,612,1224,3004,5758,11822,23476, %T A375079 45284,91792,184140,368224,735948,1472492,2944996,5889992,11411652, %U A375079 23191624,46290860,92672900,185346856,370693871,741375929,1479818680,2962582344,5925164688 %N A375079 a(n) = a(n-1) + a(n-2) + ... + a(n-k) where k = (a(n-1) mod (n-1)) + 1 for n >= 3, with a(1) = 1 and a(2) = 2. %C A375079 It appears that the ratio a(n+1)/a(n) -> 2. %F A375079 a(n) = Sum_{i=1 .. (a(n-1) mod (n-1)) + 1} a(n-i). %e A375079 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. %t A375079 Modanacci={1,2};Do[AppendTo[Modanacci,Sum[Modanacci[[-i]],{i,Mod[Modanacci[[-1]],Length[Modanacci]]+1}]],100] %K A375079 nonn %O A375079 1,2 %A A375079 _Mehmet A. Ates_, Jul 29 2024