A157176 a(n+1) = a(n - n mod 2) + a(n - n mod 3), a(0) = 1.
1, 2, 2, 3, 5, 8, 8, 16, 16, 24, 40, 64, 64, 128, 128, 192, 320, 512, 512, 1024, 1024, 1536, 2560, 4096, 4096, 8192, 8192, 12288, 20480, 32768, 32768, 65536, 65536, 98304, 163840, 262144, 262144, 524288, 524288, 786432, 1310720, 2097152, 2097152, 4194304, 4194304
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,8).
Crossrefs
Programs
-
Mathematica
LinearRecurrence[{0,0,0,0,0,8},{1, 2, 2, 3, 5, 8},45] (* Stefano Spezia, May 29 2024 *)
Formula
a(n+6) = 8*a(n).
G.f.: (1 + 2*x + 2*x^2 + 3*x^3 + 5*x^4 + 8*x^5)/((1 - 2*x^2)*(1 + 2*x^2 + 4*x^4)). - Stefano Spezia, May 29 2024
Extensions
a(43)-a(44) from Stefano Spezia, May 29 2024