|
|
A074382
|
|
Difference between (1+3^n)-th and (3^n)-th primes.
|
|
1
|
|
|
1, 2, 6, 4, 2, 6, 2, 12, 12, 12, 30, 18, 24, 10, 14, 32, 22, 12, 14, 10, 6, 12, 30, 44, 40, 54, 28, 8, 24, 26, 6, 8, 28, 48, 12, 158, 20
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
LINKS
|
|
|
FORMULA
|
a(n) = prime(1+3^n) - prime(3^n).
|
|
EXAMPLE
|
n=25: a(25)=54 because the 847288609443rd prime is 25270000074757 and the 847288609444th prime is 25270000074811.
|
|
MATHEMATICA
|
NextPrime[#]-#&/@Table[Prime[3^n], {n, 25}] (* Harvey P. Dale, Sep 29 2015 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
hard,more,nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|