login
a(n) = n^p - (n-1)^p, where p is the n-th prime.
1

%I #12 Jul 02 2018 01:43:19

%S 1,7,211,14197,44633821,11839990891,215703854542471,

%T 132716292890482729,8272642309293795444217,

%U 95289871302753755165078396311,181943424957750480504146841291811

%N a(n) = n^p - (n-1)^p, where p is the n-th prime.

%H Harry J. Smith, <a href="/A061028/b061028.txt">Table of n, a(n) for n = 1..95</a>

%o for(n=1,20,print1(n^prime(n)-(n-1)^prime(n)","))

%o (PARI) { n=0; forprime (p=2, prime(95), write("b061028.txt", n++, " ", n^p - (n - 1)^p); ) } \\ _Harry J. Smith_, Jul 17 2009

%K nonn

%O 1,2

%A _Jason Earls_, May 25 2001

%E More terms from _Ralf Stephan_, Mar 31 2003

%E Offset changed from 0 to 1 by _Harry J. Smith_, Jul 17 2009