login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A127796
a(n) = nextprime(9^n) - 9^n.
5
1, 2, 2, 4, 2, 2, 16, 2, 26, 10, 8, 4, 2, 2, 26, 4, 70, 34, 2, 8, 118, 4, 8, 68, 56, 28, 50, 28, 62, 158, 16, 122, 92, 28, 20, 110, 140, 70, 28, 44, 20, 124, 316, 38, 8, 44, 136, 58, 110, 2, 148, 170, 116, 170, 40, 2, 182, 10, 46, 254, 56, 14, 8, 2, 190, 148, 382, 10, 56, 10
OFFSET
0,2
LINKS
FORMULA
a(n) = A013632(A001019(n)). - Michel Marcus, Nov 18 2019
MATHEMATICA
<< NumberTheory`NumberTheoryFunctions` a = {}; Do[k = NextPrime[9^x] - 9^x; AppendTo[a, k], {x, 0, 100}]; a
KEYWORD
nonn
AUTHOR
Artur Jasinski, Jan 29 2007
STATUS
approved