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

 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: A281358 A343145 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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

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