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.

A061480 n-th digit in decimal expansion of 1/n.

Original entry on oeis.org

0, 0, 3, 0, 0, 6, 1, 0, 1, 0, 0, 3, 0, 7, 6, 0, 0, 5, 0, 0, 7, 4, 0, 6, 0, 3, 7, 7, 0, 3, 0, 0, 0, 2, 7, 7, 0, 2, 5, 0, 0, 9, 0, 7, 2, 2, 0, 3, 1, 0, 9, 2, 0, 8, 8, 4, 7, 1, 0, 6, 0, 1, 5, 0, 8, 1, 0, 7, 4, 2, 0, 8, 0, 1, 3, 1, 8, 0, 0, 0, 9, 1, 0, 4, 6, 1, 1, 3, 0, 1, 0, 8, 0, 1, 2, 6, 0, 5, 0, 0
Offset: 1

Views

Author

Amarnath Murthy, May 05 2001

Keywords

Examples

			a(14) = 7, as the 14th digit in the expansion of 1/14 = 0.0714285714285714285714285714285714... is 7.
		

Programs

  • Maple
    seq(floor(10^n/n) mod 10, n=1..200); # Robert Israel, Aug 05 2020
  • Mathematica
    a = {}; Do[a = Append[a, Mod[ Floor[1/n * 10^n], 10] ], {n, 1, 100} ]; a
  • Python
    def a(n): return (10**n//n)%10
    print([a(n) for n in range(1, 101)]) # Michael S. Branicky, Feb 03 2024

Extensions

More terms from Erich Friedman, May 08 2001