OFFSET
1,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..50
EXAMPLE
a(2) = 6^4 - 2^4 = 1280. a(3) = 8^6 - 4^6 = 258048.
MATHEMATICA
lst={}; Do[n=Prime[k]; m=Prime[k+1]; a=(m+1)^(m-1)-(n-1)^(n+1); AppendTo[lst, a], {k, 16}]; lst
(#[[2]]+1)^(#[[2]]-1)-(#[[1]]-1)^(#[[1]]+1)&/@Partition[Prime[Range[20]], 2, 1] (* Harvey P. Dale, Sep 08 2024 *)
PROG
(Magma) [(NthPrime(n+1)+1)^(NthPrime(n+1)-1)-(NthPrime(n)-1)^ (NthPrime(n)+1):n in [1..10]]; // Vincenzo Librandi, May 10 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Oct 11 2009
EXTENSIONS
Definition rephrased by R. J. Mathar, Oct 14 2009
STATUS
approved