OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
Remainder=4 appears first as Mod[c[13],Pi[13]]=Mod[22,6]=4, so a(4)=13.
MAPLE
N:= 100: m:= 1: V:= Vector(N): count:= 0:
for n from 6 while count < N do
if not isprime(n) then
m:= m+1;
t:= n mod numtheory:-pi(m);
if t > 0 and t <= N and V[t] = 0 then
count:= count+1; V[t]:= m
fi
fi
od:
convert(V, list); # Robert Israel, May 21 2020
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Labos Elemer, Jul 31 2002
STATUS
approved