login
A037128
a(n) = nextprime(3^n) - nextprime(2^n).
1
0, 2, 6, 18, 66, 214, 666, 2072, 6306, 19166, 58020, 175114, 527358, 1586122, 4766560, 14316138, 42981210, 129009096, 387158352, 1161737214, 3485735826, 10458256090, 31376865294, 94134790242, 282412759224, 847255054990, 2541798719452, 7625463267246, 22876524019528, 68629840494090, 205890058352826
OFFSET
0,2
FORMULA
a(n) = A014211(n) - A014210(n). - Michel Marcus, Jan 22 2015
MATHEMATICA
Table[NextPrime[3^n] - NextPrime[2^n], {n, 0, 30}] (* Vincenzo Librandi, Jan 22 2015 *)
PROG
(PARI) a(n) = nextprime(3^n+1)-nextprime(2^n+1); \\ Michel Marcus, Jan 22 2015
CROSSREFS
Sequence in context: A300335 A108066 A052863 * A150075 A150076 A150077
KEYWORD
nonn
EXTENSIONS
More terms from Vincenzo Librandi, Jan 22 2015
STATUS
approved