OFFSET
0,2
COMMENTS
Partial sums of A092499 (after 0).
LINKS
Bruno Berselli, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (22,-22,1).
FORMULA
G.f.: 1/((1-x)*(1-21*x+x^2)).
a(n) = (((230-11*sqrt(437))*(21-sqrt(437))^n+(230+11*sqrt(437))*(21+sqrt(437))^n)/2^n-23)/437.
a(n) = a(-n-3) = 23*a(n-1)-23*a(n-2)+a(n-3).
a(n)*a(n+2) = a(n+1)*(a(n+1)-1).
MAPLE
a:= n-> (<<0|1|0>, <0|0|1>, <1|-22|22>>^n. <<1, 22, 462>>)[1, 1]:
seq(a(n), n=0..20); # Alois P. Heinz, Jun 15 2012
MATHEMATICA
CoefficientList[Series[1/(1 - 22 x + 22 x^2 - x^3), {x, 0, 16}], x]
LinearRecurrence[{22, -22, 1}, {1, 22, 462}, 20] (* Harvey P. Dale, Nov 04 2017 *)
PROG
(PARI) Vec(1/(1-22*x+22*x^2-x^3)+O(x^17))
(Maxima) makelist(coeff(taylor(1/(1-22*x+22*x^2-x^3), x, 0, n), x, n), n, 0, 16);
(Magma) m:=17; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!(1/(1-22*x+22*x^2-x^3)));
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Bruno Berselli, Jun 12 2012
STATUS
approved