OFFSET
0,1
LINKS
Daniele Mastrostefano and Carlo Sanna, On numbers n with polynomial image coprime with the nth term of a linear recurrence, arXiv:1805.05114 [math.NT], 2018 (see 4.2, page 7).
Index entries for linear recurrences with constant coefficients, signature (24,-237,1232,-3555,5400,-3375).
FORMULA
G.f.: (3-53*x+434*x^2-1942*x^3+4635*x^4-4725*x^5)/((1-5*x)^3(1-3*x)^3).
MATHEMATICA
CoefficientList[Series[(3 - 53 x + 434 x^2 - 1942 x^3 + 4635 x^4 - 4725 x^5)/((1-5 x)^3(1-3 x)^3), {x, 0, 33}], x] (* or *) Table[(n^2 + 1) 5^n + (n^2 + 2) 3^n, {n, 0, 20}]
PROG
(Magma) [(n^2+1)*5^n+(n^2+2)*3^n: n in [0..25]];
(PARI) a(n)=(n^2+1)*5^n+(n^2+2)*3^n \\ Charles R Greathouse IV, May 16 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, May 16 2018
STATUS
approved