cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A048963 Table in which n-th row lists digits in periodic part of decimal expansion of reciprocal of n-th prime.

Original entry on oeis.org

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

Views

Author

Keywords

Comments

The length of row n is A048595(n). - T. D. Noe, May 14 2008
The convention is that the earliest period is displayed. - T. D. Noe, May 14 2008
Conjecture: regarded as a decimal fraction, this number is normal in base 10. - Franklin T. Adams-Watters, Aug 20 2012

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

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 *)