OFFSET
0,4
COMMENTS
For any v >= 0, the value v appears A120880(v) times.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..8255 (antidiagonals for n+k = 0..127 flattened)
FORMULA
A(n, k) = A(k, n).
A(2*n, 2*k) = 3*A(n, k).
EXAMPLE
Array A(n, k) begins:
n\k | 0 1 2 3 4 5 6 7 8 9 10 11 12
----+---------------------------------------------------
0 | 0 1 3 4 9 10 12 13 27 28 30 31 36
1 | 1 2 4 5 10 11 13 14 28 29 31 32 37
2 | 3 4 6 7 12 13 15 16 30 31 33 34 39
3 | 4 5 7 8 13 14 16 17 31 32 34 35 40
4 | 9 10 12 13 18 19 21 22 36 37 39 40 45
5 | 10 11 13 14 19 20 22 23 37 38 40 41 46
6 | 12 13 15 16 21 22 24 25 39 40 42 43 48
7 | 13 14 16 17 22 23 25 26 40 41 43 44 49
8 | 27 28 30 31 36 37 39 40 54 55 57 58 63
9 | 28 29 31 32 37 38 40 41 55 56 58 59 64
10 | 30 31 33 34 39 40 42 43 57 58 60 61 66
11 | 31 32 34 35 40 41 43 44 58 59 61 62 67
12 | 36 37 39 40 45 46 48 49 63 64 66 67 72
PROG
(PARI) A(n, k) = fromdigits(binary(n), 3) + fromdigits(binary(k), 3)
CROSSREFS
KEYWORD
AUTHOR
Rémy Sigrist, Jul 20 2024
STATUS
approved