A251704 4-step Fibonacci sequence starting with 1, 1, 0, 1.
1, 1, 0, 1, 3, 5, 9, 18, 35, 67, 129, 249, 480, 925, 1783, 3437, 6625, 12770, 24615, 47447, 91457, 176289, 339808, 655001, 1262555, 2433653, 4691017, 9042226, 17429451, 33596347, 64759041, 124827065, 240611904, 463794357, 893992367, 1723225693
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (1,1,1,1).
Crossrefs
Programs
-
J
NB. see A251655 for the program and apply it to 1,1,0,1.
-
Mathematica
LinearRecurrence[Table[1, {4}], {1, 1, 0, 1}, 36] (* Michael De Vlieger, Dec 09 2014 *)
Formula
a(n+4) = a(n) + a(n+1) + a(n+2) + a(n+3).
G.f.: (1+x)*(x^2+x-1)/(-1+x+x^2+x^3+x^4) . - R. J. Mathar, Mar 28 2025