OFFSET
0,3
COMMENTS
n such that x^5 + x^4 + x^3 + x^2 + x + n factors over the integers.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (6,-15,20,-15,6,-1).
FORMULA
a(n) = n*A060884(n).
G.f.: x*(5*x^4 + 32*x^3 + 66*x^2 + 16*x + 1)/(1-x)^6.
EXAMPLE
a(2) = 22 is in the sequence, because x^5 + x^4 + x^3 + x^2 + x + 22 = (x+2)*(x^4 - x^3 + 3*x^2 - 5*x + 11).
MAPLE
[seq(n*(n^4-n^3+n^2-n+1), n=0..25)];
PROG
(PARI) a(n)=((((n-1)*n+1)*n-1)*n+1)*n \\ Charles R Greathouse IV, Jun 17 2011
(Magma) [n^5 - n^4 + n^3 - n^2 + n: n in [0..30]]; // Vincenzo Librandi, Jun 18 2011
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Franz Vrabec, Jun 16 2011
STATUS
approved