OFFSET
1,1
EXAMPLE
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.
MATHEMATICA
Module[{nn=120, pid}, pid=RealDigits[Pi, 10, nn][[1]]; Table[n pid[[n]], {n, nn}]]
PROG
(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
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Harvey P. Dale, Jul 05 2021
STATUS
approved