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”).

A007965
a(n) = n^prime(n) - prime(n)^n.
5
-1, -1, 118, 13983, 48667074, 13055867207, 232630103648534, 144115171092292831, 8862938117851348434466, 99999999999999579292766699799, 191943424957750455095669944886980, 8505622499821102144569548732108989899311
OFFSET
1,3
LINKS
EXAMPLE
a(3) = 3^5 - 5^3 = 243 - 125 = 118.
a(4) = 16384 - 2401 = 13983.
MATHEMATICA
lst={}; Do[p=Prime[n]; AppendTo[lst, n^p-p^n], {n, 4!}]; lst (* Vladimir Joseph Stephan Orlovsky, Sep 19 2008 *)
PROG
(PARI) vector(13, n, n^prime(n) - prime(n)^n) \\ Michel Marcus, Aug 05 2015
CROSSREFS
Sequence in context: A231283 A165156 A062500 * A140893 A143776 A191949
KEYWORD
sign
AUTHOR
Dennis S. Kluk (mathemagician(AT)ameritech.net)
EXTENSIONS
More terms from Labos Elemer, Jul 09 2001
STATUS
approved