OFFSET
1,2
COMMENTS
FORMULA
EXAMPLE
Array T(n, k) begins:
n\k| 1 2 3 4 5 6 7 8 9 10 11 12
---+------------------------------------------------------------
1| 1 2 3 4 5 6 7 8 9 10 11 12
2| 5 1 15 2 25 3 35 4 45 5 55 6
3| 4 4 1 8 5 2 9 6 3 34 37 4
4| 3 3 8 1 13 4 18 2 23 25 28 3
5| 2 4 6 8 1 12 14 16 18 2 22 24
6| 2 2 5 4 9 1 12 3 15 17 19 2
7| 2 3 5 2 5 8 1 4 7 15 16 16
8| 2 3 4 3 7 2 9 1 12 13 14 14
9| 2 3 4 5 5 4 3 2 1 12 13 14
10| 1 2 3 4 5 6 7 8 9 1 11 12
PROG
(PARI) T(n, k, base=10) = { my (w=base^#digits(k, base)); for (m=1, oo, my (mn=m*n); while (mn >= k, if (mn % w == k, return (m), mn \= base))) }
CROSSREFS
KEYWORD
AUTHOR
Rémy Sigrist, Jul 23 2018
STATUS
approved