OFFSET
1,2
COMMENTS
LINKS
Rémy Sigrist, First 100 antidiagonals of array, flattened
EXAMPLE
The table begins:
x\y: 0 1 2 3 4 5 6 7 8 9 ...
0: 0 2 6 8 18 20 24 26 54 56 ...
1: 1 3 7 9 19 21 25 27 55 57 ...
2: 3 5 9 11 21 23 27 29 57 59 ...
3: 4 6 10 12 22 24 28 30 58 60 ...
4: 9 11 15 17 27 29 33 35 63 65 ...
5: 10 12 16 18 28 30 34 36 64 66 ...
6: 12 14 18 20 30 32 36 38 66 68 ...
7: 13 15 19 21 31 33 37 39 67 69 ...
8: 27 29 33 35 45 47 51 53 81 83 ...
9: 28 30 34 36 46 48 52 54 82 84 ...
...
PROG
(PARI) T(n, k) = fromdigits(binary(n), 3) + 2*fromdigits(binary(k), 3)
(Python)
def T(n, k): return int(bin(n)[2:], 3) + 2*int(bin(k)[2:], 3)
for n in range(11): print [T(k, n - k) for k in range(n + 1)] # Indranil Ghosh, Aug 03 2017
CROSSREFS
KEYWORD
AUTHOR
Rémy Sigrist, Jul 14 2017
STATUS
approved