login
A166330
a(n) = (prime(n+1)+1)^(prime(n+1)-1) - (prime(n)-1)^(prime(n)+1).
1
15, 1280, 258048, 61915684608, 55693912375296, 121438247178129702912, 257421633517130354786304, 2315500753239971319979258675200, 228767924384358907355717734220022985785344, 1401261602585169235166028950498857285425561600
OFFSET
1,1
LINKS
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
Sequence in context: A273963 A220179 A373858 * A300618 A232147 A232288
KEYWORD
nonn
AUTHOR
EXTENSIONS
Definition rephrased by R. J. Mathar, Oct 14 2009
STATUS
approved