login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A158400 Primes of the form (n+1)^n-n^(n-1). 0
7, 7151, 109873, 956953279, 3497141354765072424170242943188801 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Next term too large to be included (1652 digits)
LINKS
EXAMPLE
3^2-2^1 = 9-2 = 7.
MAPLE
P:=proc(i) local a, n; for n from 2 by 1 to i do a:=n^(n-1)-(n-1)^(n-2); if isprime(a) then print(a); fi; od; end: P(2000);
MATHEMATICA
Select[Table[(n + 1)^n - n^(n - 1), {n, 1000}], PrimeQ] (* Michael De Vlieger, Apr 22 2015 *)
PROG
(PARI) select(isprime, vector(9, n, (n+1)^n-n^(n-1))) \\ Charles R Greathouse IV, Apr 22 2015
CROSSREFS
Primes in A178922.
Cf. A054463.
Sequence in context: A281358 A343145 A068575 * A221628 A220879 A119528
KEYWORD
easy,nonn
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 3 17:15 EST 2024. Contains 370512 sequences. (Running on oeis4.)