A048963 Table in which n-th row lists digits in periodic part of decimal expansion of reciprocal of n-th prime.
0, 3, 0, 1, 4, 2, 8, 5, 7, 0, 9, 0, 7, 6, 9, 2, 3, 0, 5, 8, 8, 2, 3, 5, 2, 9, 4, 1, 1, 7, 6, 4, 7, 0, 5, 2, 6, 3, 1, 5, 7, 8, 9, 4, 7, 3, 6, 8, 4, 2, 1, 0, 4, 3, 4, 7, 8, 2, 6, 0, 8, 6, 9, 5, 6, 5, 2, 1, 7, 3, 9, 1, 3, 0, 3, 4, 4, 8, 2, 7, 5, 8, 6, 2, 0, 6, 8, 9, 6, 5, 5, 1, 7, 2, 4, 1, 3, 7, 9, 3, 1
Offset: 1
Examples
1/2=.5 ->0; 1/3=.3333... -> 3; 1/5=.2 ->0; 1/7=.142857... -> 1 4 2 8 5 7; etc. 0; 3; 0; 1,4,2,8,5,7; 0,9; 7,6,9,2,3,0; 5,8,8,2,3,5,2,9,4,1,1,7,6,4,7,0; ...
References
- Conway and Guy, The Book of Numbers, p. 160
Links
Crossrefs
Cf. A048962.
Programs
-
Mathematica
Clear[d]; d[{{2|5}, 0}] = {0}; d[{{{n__}}, 0}] := {n}; d[{{{n__, 0}}, k_?Negative}] := Join[Table[0, {-k}], Drop[{n}, k+1]]; A048963 = d /@ RealDigits[1/Prime[Range[10]]] (* Jean-François Alcover, Dec 10 2014 *)
Comments