OFFSET
1,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..350
Sergio Silva, Teste Numerico.
FORMULA
a(n) = ( n + prime(n+1) - prime(n) )^(n-1) = ( n + A001223(n) )^(n-1).
From G. C. Greubel, Aug 04 2021: (Start)
a(n) = (prime(n+1) - A014689(n))^(n-1). (End)
MATHEMATICA
Table[(n +Prime[n+1] -Prime[n])^(n-1), {n, 1, 30}] (* G. C. Greubel, Aug 04 2021 *)
PROG
(PARI) for(n=1, 25, print1( (prime(n+1) -prime(n) +n)^(n-1), ", "))
(Sage) [(n + nth_prime(n+1) - nth_prime(n))^(n-1) for n in (1..30)] # G. C. Greubel, Aug 04 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Herman Jamke (hermanjamke(AT)fastmail.fm), Sep 30 2006
STATUS
approved