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 (28,-315,1820,-5684,9072,-5760).
FORMULA
a(n) = 8^n - 6*6^n + 6*5^n + 6*4^n - 12*3^n + 6*2^n.
G.f.: -(4752*x^5-3852*x^4+1396*x^3-269*x^2+26*x-1) / ((2*x-1)*(3*x-1)*(4*x-1)*(5*x-1)*(6*x-1)*(8*x-1)). - Colin Barker, Dec 10 2012
MATHEMATICA
Table[8^n - 6*6^n + 6*5^n + 6*4^n - 12*3^n + 6*2^n, {n, 0, 50}] (* G. C. Greubel, Oct 07 2017 *)
PROG
(PARI) for(n=0, 50, print1(8^n - 6*6^n + 6*5^n + 6*4^n - 12*3^n + 6*2^n , ", ")) \\ G. C. Greubel, Oct 07 2017
(Magma) [8^n - 6*6^n + 6*5^n + 6*4^n - 12*3^n + 6*2^n: n in [0..50]]; // G. C. Greubel, Oct 07 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Goran Kilibarda, Vladeta Jovovic, Mar 10 2004
STATUS
approved