OFFSET
1,1
LINKS
Index entries for linear recurrences with constant coefficients, signature (303,-303,1).
FORMULA
a(n+2) = 302*a(n+1)-a(n)+150.
G.f.: x*(-2-151*x+3*x^2) / ( (x-1)*(x^2-302*x+1) ). - R. J. Mathar, Nov 27 2011
EXAMPLE
a(1)=2 because 3^3-2^3=19*1.
MATHEMATICA
CoefficientList[Series[(-2 - 151*x + 3*x^2)/((x - 1)*(x^2 - 302*x + 1)), {x, 0, 15}], x] (* Wesley Ivan Hurt, Sep 04 2022 *)
PROG
(PARI) Vec(x*(-2-151*x+3*x^2)/((x-1)*(x^2-302*x+1)) + O(x^30)) \\ Colin Barker, Oct 18 2014
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Richard Choulet, Oct 02 2008
EXTENSIONS
Editing and more terms from Colin Barker, Oct 18 2014
STATUS
approved