OFFSET
1,2
LINKS
T. D. Noe, Table of n, a(n) for n=1..100
EXAMPLE
1/11 = .09090909..., so a(5) = 90.
MATHEMATICA
Table[FromDigits[FindTransientRepeat[RealDigits[1/p, 10, 100][[1]], 2][[2]]], {p, Prime[Range[20]]}] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jul 10 2021 *)
PROG
(PARI) a(n)=t=iferr(znorder(Mod(10, n)), E, 0); d=(10^t-1)/n; s=t-#Str(d); if(s, d*10^s, d)
forprime(i=1, 1e2, print1(a(i)", ")) \\ Lear Young, Mar 01 2014
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
N. J. A. Sloane, Mar 30 2001
EXTENSIONS
More terms from Klaus Brockhaus, Mar 30 2001
STATUS
approved