[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Search: a368240 -id:a368240
     Sort: relevance | references | number | modified | created      Format: long | short | data
Irregular table of nonnegative integers T(n, k), n >= 0, k = 1..A080100(n), read by rows; the 1's in the binary expansion of n exactly match the 1's in the balanced ternary expansions of the terms in the n-th row.
+10
3
0, 1, 2, 3, 4, 5, 6, 8, 9, 7, 10, 11, 12, 13, 14, 15, 17, 18, 23, 24, 26, 27, 16, 19, 25, 28, 20, 21, 29, 30, 22, 31, 32, 33, 35, 36, 34, 37, 38, 39, 40, 41, 42, 44, 45, 50, 51, 53, 54, 68, 69, 71, 72, 77, 78, 80, 81, 43, 46, 52, 55, 70, 73, 79, 82, 47, 48, 56, 57, 74, 75, 83, 84
OFFSET
0,3
COMMENTS
As a flat sequence, this is a permutation of the nonnegative integers with inverse A368240.
FORMULA
T(n, 1) = A147991(n) for any n > 0.
T(n, A080100(n)) = A005836(n + 1).
A343228(T(n, k)) = n.
EXAMPLE
Table T(n, k) begins:
0;
1;
2, 3;
4;
5, 6, 8, 9;
7, 10;
11, 12;
13;
14, 15, 17, 18, 23, 24, 26, 27;
16, 19, 25, 28;
20, 21, 29, 30;
22, 31;
32, 33, 35, 36;
34, 37;
38, 39;
40;
...
PROG
(PARI) row(n) = { my (r = [0], b = binary(n)); for (k = 1, #b, r = [3*v+b[k]|v<-r]; if (b[k]==0, r = concat(r, [v-1|v<-r]); ); ); Set(r); }
CROSSREFS
See A368225 for a similar sequence.
KEYWORD
nonn,tabf,base
AUTHOR
Rémy Sigrist, Dec 18 2023
STATUS
approved

Search completed in 0.004 seconds