OFFSET
1,2
COMMENTS
a(n) > 0 for n>=2. - Robert Israel, Nov 02 2014
LINKS
Robert Israel, Table of n, a(n) for n = 1..70
EXAMPLE
n=1: a(1) = prime(1)^prime(1+1) - prime(1+1)^prime(1) = 2^3 - 3^2 = 8 - 9 = -1.
n=3: a(3) = prime(3)^prime(4) - prime(4)^prime(3) = 5^7 - 7^5 = 78125 - 16807 = 61318.
MAPLE
seq(ithprime(i)^ithprime(i+1)-ithprime(i+1)^ithprime(i), i=1..20); # Robert Israel, Nov 02 2014
MATHEMATICA
Array[Prime[ # ]^Prime[ #+1]-Prime[ #+1]^Prime[ # ]&, 16] (* Vladimir Joseph Stephan Orlovsky, Oct 11 2009 *)
PROG
(Magma) [NthPrime(n)^NthPrime(n+1)-NthPrime(n+1)^NthPrime(n): n in [1..10]]; // Vincenzo Librandi, Nov 02 2014
CROSSREFS
KEYWORD
sign
AUTHOR
Juri-Stepan Gerasimov, Jul 07 2008
EXTENSIONS
Corrected and extended by Vladimir Joseph Stephan Orlovsky, Oct 11 2009
a(10) from Vincenzo Librandi, Nov 02 2014
STATUS
approved