login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A081216
a(n) = (n^n-(-1)^n)/(n+1).
9
0, 1, 1, 7, 51, 521, 6665, 102943, 1864135, 38742049, 909090909, 23775972551, 685853880635, 21633936185161, 740800455037201, 27368368148803711, 1085102592571150095, 45957792327018709121, 2070863582910344082917, 98920982783015679456199
OFFSET
0,4
COMMENTS
a(n) is prime for n = {3, 5, 17, 157} = A056826(n) Primes p such that (p^p + 1)/(p + 1) is a prime. Prime a(n) are {7, 521, 45957792327018709121, ...}. Bisection of a(n) is Sierpinski quotient a(2n-1) = A124899(n) = ((2n-1)^(2n-1) + 1)/(2n) = A014566(2n-1)/(2n). - Alexander Adamchuk, Nov 12 2006
This is related to the dimension of the primitive middle cohomology of Dwork hypersurfaces x1**n+x2**n+...+xn**n=n*psi*x1*x2*...*xn. [F. Chapoton, Dec 11 2009]
MAPLE
a:= n-> (n^n-(-1)^n)/(n+1):
seq(a(n), n=0..20); # Alois P. Heinz, May 11 2023
PROG
(Sage) [((n - 1)**(n - 1) + (-1)**n) // n for n in range(1, 16)]
(PARI) a(n) = (n^n-(-1)^n)/(n+1); \\ Michel Marcus, Jul 29 2017
CROSSREFS
Main diagonal of A062160.
Cf. A056826, A124899, A014566 (Sierpinski numbers of the first kind: n^n + 1).
Sequence in context: A352358 A293073 A368286 * A198087 A124271 A220224
KEYWORD
easy,nonn
AUTHOR
Vladeta Jovovic, Apr 17 2003
EXTENSIONS
Edited by F. Chapoton, Feb 03 2011
STATUS
approved