editing
approved
Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
editing
approved
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 *)
approved
editing
reviewed
approved
proposed
reviewed
editing
proposed
reviewed
approved
proposed
reviewed
editing
proposed
(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)
proposed
editing