login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A114846
Numbers of the form p^p - p!, where p is a prime.
1
2, 21, 3005, 818503, 285271753811, 302868879571453, 827239906198908668177, 1978419534015213180291979, 20880467973995895295470056270567, 2567686153152369372568088512776472510483469, 17069174130715013119956465106241589193164734431
OFFSET
1,1
COMMENTS
Except for the term 2, p^p - p! is equal to the sum of p distinct primes.
MATHEMATICA
Table[Prime[n]^Prime[n] - Prime[n]!, {n, 1, 11}] (* Stefan Steinerberger, Feb 21 2006 *)
Table[p^p-p!, {p, Prime[Range[15]]}] (* Harvey P. Dale, Feb 03 2015 *)
CROSSREFS
Cf. A036679.
Sequence in context: A080815 A351580 A276654 * A195165 A201973 A278737
KEYWORD
easy,nonn
AUTHOR
Giovanni Teofilatto, Feb 20 2006
EXTENSIONS
More terms from Stefan Steinerberger, Feb 21 2006
STATUS
approved