|
EXAMPLE
|
The array A begins:
0 1 2 3 4 5 6 7 8 9 10 11 12
x/y ------------------------------------------------------
0: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
1: 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, ...
2: 0, 0, 2, 2, 2, 2, 0, 0, 2, 2, 2, 2, 0, ...
3: 0, 1, 2, 3, 2, 3, 0, 1, 2, 3, 2, 3, 0, ...
4: 0, 0, 2, 2, 4, 4, 0, 0, 2, 2, 4, 4, 0, ...
5: 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, ...
6: 0, 0, 0, 0, 0, 0, 6, 6, 6, 6, 6, 6, 6, ...
7: 0, 1, 0, 1, 0, 1, 6, 7, 6, 7, 6, 7, 6, ...
8: 0, 0, 2, 2, 2, 2, 6, 6, 8, 8, 8, 8, 6, ...
9: 0, 1, 2, 3, 2, 3, 6, 7, 8, 9, 8, 9, 6, ...
10: 0, 0, 2, 2, 4, 4, 6, 6, 8, 8, 10, 10, 6, ...
11: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 6, ...
12: 0, 0, 0, 0, 0, 0, 6, 6, 6, 6, 6, 6, 12, ...
etc.
In primorial base, 5 is written as "21" (as 5 = 2*2 + 1*1) and 10 is written as "120" (as 10 = 1*6 + 2*2 + 0*1). Aligning them digit by digit (from the least significant end), and then always choosing a lesser digit leaves us with digits "020", which is 4 written in primorial base as 2*2 + 0*1 = 4, thus A(5,10) = A(10,5) = 4.
|