%I #14 Sep 15 2014 15:54:24
%S 3,7,11,23,21,37,31,51,77,49,97,85,67,99,137,149,93,169,143,111,199,
%T 167,221,281,197,153,211,163,225,533,251,323,203,479,219,367,379,315,
%U 401,413,261,601,277,369,287,751,775,415,325,429,539,343,771,575,587,599
%N First differences of A117495.
%H Alois P. Heinz, <a href="/A247380/b247380.txt">Table of n, a(n) for n = 1..10000</a>
%F a(n) = A117495(n+1) - A117495(n).
%p with(numtheory):
%p a:= n-> ithprime(n+1)*n-ithprime(n)*(n-1):
%p seq(a(n), n=1..60); # _Alois P. Heinz_, Sep 15 2014
%o (PARI) a(n)=my(p=prime(n++)); p+n*(nextprime(p+1)-p) \\ _Charles R Greathouse IV_, Sep 15 2014
%Y Cf. A000040, A117495.
%K easy,nonn
%O 1,1
%A _Odimar Fabeny_, Sep 15 2014
%E More terms from _Alois P. Heinz_, Sep 15 2014
|