A276981 Irregular triangle T(n,k) read by rows of residue classes of powers of 10 modulo n.
0, 1, 0, 1, 1, 2, 0, 1, 0, 1, 4, 1, 3, 2, 6, 4, 5, 1, 2, 4, 0, 1, 1, 0, 1, 10, 1, 10, 4, 1, 10, 9, 12, 3, 4, 1, 10, 2, 6, 4, 12, 8, 1, 10, 1, 10, 4, 8, 0, 1, 10, 15, 14, 4, 6, 9, 5, 16, 7, 2, 3, 13, 11, 8, 12, 1, 10, 1, 10, 5, 12, 6, 3, 11, 15, 17, 18, 9, 14, 7, 13, 16, 8, 4, 2
Offset: 1
Examples
T(n,k), 1 <= k <= A051628(n) + A007732(n), starts with n = 1: 0 n = 2: 1, 0 n = 3: 1 n = 4: 1, 2, 0 n = 5: 1, 0 n = 6: 1, 4 n = 7: 1, 3, 2, 6, 4, 5 n = 8: 1, 2, 4, 0 n = 9: 1 n = 10: 1, 0 n = 11: 1, 10 n = 12: 1, 10, 4 etc.
Links
- Alois P. Heinz, Rows n = 1..800, flattened
Programs
-
Maple
a:=proc(n) local R,N,P,i; R:=[seq(10^k mod n,k=0..n)]; # residue class N:=[]; # nonperiodic part P:=[]; # periodic part for i from 1 to nops(R) do member(R[i],R,'m'); if m
Comments