OFFSET
1,2
COMMENTS
According to the conjecture in A237597, we should always have 0 < a(n) < prime(n).
LINKS
Zhi-Wei Sun, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) = 2 since pi(2*3) = 3 is divisible by 3, but pi(1*3) = 2 is not.
MATHEMATICA
Do[Do[If[Mod[PrimePi[k*n], n]==0, Print[n, " ", k]; Goto[aa]], {k, 1, Prime[n]-1}];
Print[n, " ", 0]; Label[aa]; Continue, {n, 1, 70}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Feb 10 2014
STATUS
approved