login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons 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

Table of n, a(n) for n=1..5.

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: A225067 A281358 A068575 * A221628 A220879 A119528

Adjacent sequences:  A158397 A158398 A158399 * A158401 A158402 A158403

KEYWORD

easy,nonn

AUTHOR

Paolo P. Lava & Giorgio Balzarotti, Mar 18 2009

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 2 14:41 EDT 2020. Contains 335401 sequences. (Running on oeis4.)