OFFSET
1,9
COMMENTS
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
EXAMPLE
a(15) = 2 as A000040(15) = 47 = 3*11+3+11 = 5*7+5+7.
PROG
(Haskell)
a067432 n = length [p | let prime_n = a000040 n,
p <- takeWhile (< a000196 prime_n) a000040_list,
let (q, m) = divMod (prime_n - p) (p + 1),
m == 0, a010051 q == 1]
a067432_list = map a067432 [1..]
-- Reinhard Zumkeller, Oct 23 2011
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Feb 15 2002
STATUS
approved