OFFSET
1,2
COMMENTS
First row is all zeros since n=1 has all zeros after the decimal point.
FORMULA
1/n = Sum_{k>=1} T(n, k)*10^-k, for n > 1.
EXAMPLE
Array begins:
k=1 2 3 4 5 6 7 8
n=1: 0, 0, 0, 0, 0, 0, 0, 0,
n=2: 5, 0, 0, 0, 0, 0, 0, 0,
n=3: 3, 3, 3, 3, 3, 3, 3, 3,
n=4: 2, 5, 0, 0, 0, 0, 0, 0,
n=5: 2, 0, 0, 0, 0, 0, 0, 0,
n=6: 1, 6, 6, 6, 6, 6, 6, 6,
n=7: 1, 4, 2, 8, 5, 7, 1, 4,
n=8: 1, 2, 5, 0, 0, 0, 0, 0,
Row n=7 is 1/7 = .142857142857..., whose digits after the decimal point are 1,4,2,8,5,7,1,4,2,8,5,7, ...
PROG
(PARI) T(n, k) = my(r=lift(Mod(10, n)^(k-1))); floor(10*r/n)%10;
(Python) def T(n, k): return (10*pow(10, k-1, n)//n)%10
CROSSREFS
KEYWORD
AUTHOR
Chittaranjan Pardeshi, Jun 17 2022
STATUS
approved