OFFSET
0,2
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
M. O'Keeffe, Coordination sequences for hyperbolic tilings, Zeitschrift für Kristallographie, 213 (1998), 135-140 (see next-to-last table, row {10, 3}).
Index entries for linear recurrences with constant coefficients, signature (2, -1, 2, -1).
FORMULA
G.f.: (t^4 + t^3 + t^2 + t + 1)/(t^4 - 2*t^3 + t^2 - 2*t + 1).
a(n) = 2*a(n-1)-a(n-2)+2*a(n-3)-a(n-4). - Wesley Ivan Hurt, May 10 2021
MATHEMATICA
CoefficientList[Series[(t^4+t^3+t^2+t+1)/(t^4-2*t^3+t^2-2*t+1), {t, 0, 40} ], t] (* or *) LinearRecurrence[{2, -1, 2, -1}, {1, 3, 6, 12, 24}, 40] (* G. C. Greubel, Dec 18 2016 *)
PROG
(PARI) my(t='t+O('t^40)); Vec((t^4+t^3+t^2+t+1)/(t^4-2*t^3+t^2-2*t+1)) \\ G. C. Greubel, Dec 18 2016
(Magma) R<x>:=PowerSeriesRing(Integers(), 40); Coefficients(R!( (x^4+x^3 +x^2+x+1)/(x^4-2*x^3+x^2-2*x+1) )); // G. C. Greubel, May 12 2019
(Sage) ((x^4+x^3 +x^2+x+1)/(x^4-2*x^3+x^2-2*x+1)).series(x, 40).coefficients(x, sparse=False) # G. C. Greubel, May 12 2019
(GAP) a:=[3, 6, 12, 24];; for n in [5..40] do a[n]:=2*a[n-1]-a[n-2]+ 2*a[n-3]-a[n-4]; od; Concatenation([1], a); # G. C. Greubel, May 12 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
John Cannon and N. J. A. Sloane, Dec 03 2009
STATUS
approved