A121199 12n+7^n+5^n.
2, 24, 98, 504, 3074, 19992, 133346, 901752, 6155522, 42306840, 292240994, 2026155000, 14085427970, 98109713688, 684326588642, 4778079088248, 33385518460418, 233393453440536, 1632228295176290, 11417968671701496
Offset: 0
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..1000
- Index entries for linear recurrences with constant coefficients, signature (14,-60,82,-35).
Crossrefs
Cf. A074616.
Programs
-
Magma
[12*n+7^n+5^n: n in [0..20]]; // Bruno Berselli, Feb 27 2013
-
Mathematica
CoefficientList[Series[2 (1 - 2 x - 59 x^2 + 204 x^3)/((1-x)^2 (1-7 x) (1-5 x)), {x, 0, 20}], x] (* Vincenzo Librandi, Feb 23 2013 *) Table[12 n + 7^n + 5^n, {n, 0, 20}] (* Bruno Berselli, Feb 27 2013 *) LinearRecurrence[{14,-60,82,-35},{2,24,98,504},20] (* Harvey P. Dale, Aug 15 2013 *)
-
PARI
for(n=0, 20, print1(12*n+7^n+5^n", ")); \\ Bruno Berselli, Feb 27 2013
Formula
G.f.: 2*(1-2*x-59*x^2+204*x^3)/((1-x)^2*(1-7*x)*(1-5*x)). - Vincenzo Librandi, Feb 23 2013
Extensions
Edited by Ray Chandler, Sep 06 2006