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.

A346122 n times the n-th digit of the decimal expansion of Pi.

Original entry on oeis.org

3, 2, 12, 4, 25, 54, 14, 48, 45, 30, 55, 96, 117, 98, 135, 48, 34, 54, 152, 80, 126, 44, 138, 96, 75, 78, 216, 84, 58, 210, 279, 160, 0, 68, 280, 288, 148, 38, 351, 280, 41, 252, 387, 132, 405, 414, 141, 336, 245, 50, 0, 260, 424, 108, 0, 504, 399, 232, 531
Offset: 1

Views

Author

Harvey P. Dale, Jul 05 2021

Keywords

Examples

			The first  digit of the decimal expansion of Pi is 3, so a(1) = 1*3 = 3.
The second digit of the decimal expansion of Pi is 1, so a(2) = 2*1 = 2.
The third  digit of the decimal expansion of Pi is 4, so a(3) = 3*4 = 12.
		

Crossrefs

Cf. A000796, A014976 (zeros), A053745 (fixed points).

Programs

  • Mathematica
    Module[{nn=120,pid},pid=RealDigits[Pi,10,nn][[1]];Table[n pid[[n]],{n,nn}]]
  • Python
    from sympy import S
    def aupton(terms):
        digits_of_pi = "0" + str(S.Pi.n(terms+1)).replace('.', '')
        return [n*int(digits_of_pi[n]) for n in range(1, terms+1)]
    print(aupton(59)) # Michael S. Branicky, Jul 08 2021