|
|
A163328
|
|
Square array A, where entry A(y,x) has the ternary digits of x interleaved with the ternary digits of y, converted back to decimal. Listed by antidiagonals: A(0,0), A(0,1), A(1,0), A(0,2), A(1,1), A(2,0), ...
|
|
8
|
|
|
0, 1, 3, 2, 4, 6, 9, 5, 7, 27, 10, 12, 8, 28, 30, 11, 13, 15, 29, 31, 33, 18, 14, 16, 36, 32, 34, 54, 19, 21, 17, 37, 39, 35, 55, 57, 20, 22, 24, 38, 40, 42, 56, 58, 60, 81, 23, 25, 45, 41, 43, 63, 59, 61, 243, 82, 84, 26, 46, 48, 44, 64, 66, 62, 244, 246, 83, 85, 87, 47, 49
(list;
table;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
Array A(y,x) read by downwards antidiagonals, so 0, 1,3, 2,4,6, etc.
x=0 1 2 3 4 5 6 7 8
+--------------------------------------
y=0 | 0, 1, 2, 9, 10, 11, 18, 19, 20,
1 | 3, 4, 5, 12, 13, 14, 21, 22,
2 | 6, 7, 8, 15, 16, 17, 24,
3 | 27, 28, 29, 36, 37, 38,
4 | 30, 31, 32, 39, 40,
5 | 33, 34, 35, 42,
6 | 54, 55, 56,
7 | 57, 58,
8 | 60,
(End)
|
|
PROG
|
(PARI) A(y, x) = 3*fromdigits(digits(y, 3), 9) + fromdigits(digits(x, 3), 9); \\ Kevin Ryde, Oct 06 2020
|
|
CROSSREFS
|
|
|
KEYWORD
|
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|