OFFSET
0,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (2,7,2,-1).
FORMULA
MATHEMATICA
LinearRecurrence[{2, 7, 2, -1}, {0, 1, 6, 20}, 30] (* Harvey P. Dale, Sep 26 2016 *)
PROG
(PARI) pell(n)=if(n<2, n>0, 2*pell(n-1)+pell(n-2))
lucas(n)=if(n<1, 2*(n>=0), fibonacci(n-1)+fibonacci(n+1))
a(n)=pell(n)*lucas(n)
(PARI) concat([0], Vec(x*(x^2+4*x+1)/(x^4-2*x^3-7*x^2-2*x+1)+O(x^66))) \\ Joerg Arndt, Sep 01 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ralf Stephan, Sep 01 2013
STATUS
approved