[go: up one dir, main page]

login

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”).

A060283
Periodic part of decimal expansion of reciprocal of n-th prime (leading 0's moved to end).
10
0, 3, 0, 142857, 90, 769230, 5882352941176470, 526315789473684210, 4347826086956521739130, 3448275862068965517241379310, 322580645161290, 270, 24390, 232558139534883720930, 2127659574468085106382978723404255319148936170
OFFSET
1,2
FORMULA
A060283 = A036275 o A000040, i.e., a(n) = A036275(A000040(n)). - M. F. Hasler, Dec 28 2015
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
Sequence in context: A076951 A359561 A060282 * A255851 A334743 A078529
KEYWORD
nonn,easy,base
AUTHOR
N. J. A. Sloane, Mar 30 2001
EXTENSIONS
More terms from Klaus Brockhaus, Mar 30 2001
STATUS
approved