OFFSET
1,10
LINKS
R. Zumkeller, Table of n, a(n) for n = 1..10000
EXAMPLE
A000040(10)=29: a(10) = #{4+5^2, 2+3^3} = 2.
MATHEMATICA
f[n_] := Block[{c = 0, j, k = 1, p = Prime@ n, q}, j = 1 + PrimePi@ Sqrt@ p; While[k < j, q = Prime@ k; If[p < q + q^Floor@ Log[q, p], c++ ]; k++ ]; c]; Array[f, 105]
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Mar 16 2008
STATUS
approved