OFFSET
1,5
COMMENTS
Except for the initial 0, 0, 0, this is column 3 of the array at A244740.
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..1000
FORMULA
EXAMPLE
prime(5) = 11 = (2 mod m) for m = 3, 9 so that a(5) = 2.
MATHEMATICA
z = 300; f[n_, m_] := If[Mod[Prime[n], m] == 3, 1, 0];
t = Table[f[n, m], {n, 1, z}, {m, 1, Prime[n]}];
Table[Count[t[[k]], 1], {k, 1, z}] (* A244798 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jul 06 2014
STATUS
approved