A294364 Linear recurrence with signature (1,1,-1,1,1), where the first terms are powers of 2 (1,2,4,8,16).
1, 2, 4, 8, 16, 23, 37, 56, 94, 152, 250, 401, 649, 1046, 1696, 2744, 4444, 7187, 11629, 18812, 30442, 49256, 79702, 128957, 208657, 337610, 546268, 883880, 1430152, 2314031, 3744181, 6058208, 9802390, 15860600, 25662994, 41523593, 67186585, 108710174, 175896760, 284606936
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (1,1,-1,1,1).
Programs
-
Mathematica
LinearRecurrence[{1, 1, -1, 1, 1}, {1, 2, 4, 8, 16}, 40]
Formula
G.f.: (1+x+x^2+3*x^3+5*x^4) / (1-x-x^2+x^3-x^4-x^5).
a(n) = (9/2)*fibonacci(n) + (-1)^n - sqrt(3)*sin(n*Pi/3).
a(n) ~ (9/2)*fibonacci(n).
Comments