OFFSET
1,2
COMMENTS
Except for the sign, the sequence alternates between the sum and difference of consecutive terms of A000312. x^2+x+1 divides x^n+x+1 for n=2 (mod 3).
REFERENCES
Mohammad K. Azarian, On the Hyperfactorial Function, Hypertriangular Function, and the Discriminants of Certain Polynomials, International Journal of Pure and Applied Mathematics, Vol. 36, No. 2, 2007, pp. 251-257. Mathematical Reviews, MR2312537. Zentralblatt MATH, Zbl 1133.11012.
FORMULA
for n>1, a(n) = (n^n + (-1)^(n-1) * (n-1)^(n-1)) * (-1)^floor(n/2).
a(n) = (Cos[Pi n/2]+Sin[Pi n/2])(n^n)+(Cos[Pi(n+1)/2]+Sin[Pi(n+1)/2])(n+1)^(n+1). - Artur Jasinski, Oct 12 2007
MATHEMATICA
Table[Discriminant[x^n + x + 1, x], {n, 0, 100}] (* Artur Jasinski, Oct 12 2007 *)
PROG
(PARI) a(n) = poldisc(x^n+x+1); \\ Michel Marcus, Aug 28 2020
CROSSREFS
KEYWORD
sign
AUTHOR
T. D. Noe, Dec 21 2005
STATUS
approved