A147977 a(n) = 6^n-5^n-4^n-3^n-2^n-1.
-4, -9, -19, -9, 317, 3351, 26141, 183111, 1216637, 7842231, 49591901, 309595431, 1915328957, 11771279511, 71987413661, 438579282951, 2664183937277, 16146410851191, 97676152243421, 590010212989671, 3559688008961597
Offset: 1
Links
- Index entries for linear recurrences with constant coefficients, signature (21,-175,735,-1624,1764,-720).
Programs
-
Mathematica
lst={};Do[p=6^n-5^n-4^n-3^n-2^n-1^n;AppendTo[lst,p],{n,0,5!}];lst Table[6^n-5^n-4^n-3^n-2^n-1,{n,0,20}] (* or *) LinearRecurrence[{21,-175,735,-1624,1764,-720},{-4,-9,-19,-9,317,3351},30] (* Harvey P. Dale, Jan 17 2017 *)
Formula
G.f.: x*(1524*x^5-2700*x^4+1755*x^3-530*x^2+75*x-4)/((x-1)*(2*x-1)*(3*x-1)*(4*x-1)*(5*x-1)*(6*x-1)). [Colin Barker, Oct 29 2012]