OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (4, -6, 4, -1).
FORMULA
a(0)=0, a(1)=17, a(2)=154, a(3)=531, a(n) = 4*a(n-1) -6*a(n-2) +4*a(n-3) -a(n-4). - Harvey P. Dale, May 07 2011
MATHEMATICA
Table[LegendreP[3, 2n], {n, 0, 50}]
LinearRecurrence[{4, -6, 4, -1}, {0, 17, 154, 531}, 151] (* Harvey P. Dale, May 07 2011 *)
PROG
(PARI) a(n)=pollegendre(3, 2*n) \\ Charles R Greathouse IV, Mar 19 2017
(Magma) I:=[0, 17, 154, 531]; [n le 4 select I[n] else 4*Self(n-1) - 6*Self(n-2) +4*Self(n-3) -Self(n-4): n in [1..50]]; // G. C. Greubel, May 02 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Nov 17 2009
STATUS
approved