OFFSET
1,1
COMMENTS
Size of prime gap containing the number 6^n, for n > 1.
From Gauss's prime counting function approximation, the expected gap size should be approximately n*log(6), however, the observed values seem to be closer to n*log(36) = n*A016659.
The arithmetic mean of a(n)/n for the terms 1..1000 is 3.605 ~ 2*log(6).
LINKS
A.H.M. Smeets, Table of n, a(n) for n = 1..1000
MATHEMATICA
a[n_] := First @ Differences @ NextPrime[6^n, {-1, 1}]; Array[a, 60] (* Amiram Eldar, Oct 30 2020 *)
PROG
(PARI) a(n) = my(pw=6^n); nextprime(pw+1) - precprime(pw-1); \\ Michel Marcus, Oct 27 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
A.H.M. Smeets, Oct 26 2020
STATUS
approved
