OFFSET
4,1
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 4..10000
EXAMPLE
a(4) = 3 as the fourth prime 7 divides 1001.
PROG
(PARI) a(n)=my(p=prime(n), m=Mod(1, p)); for(k=1, znorder(10*m), if(-1==m*=10, return(k))); 0 \\ Charles R Greathouse IV, Jun 18 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Apr 01 2002
EXTENSIONS
More terms from Sascha Kurz, Jan 03 2003
STATUS
approved