OFFSET
0,4
COMMENTS
Row n is a permutation of {0, 1, ..., A000225(n)}.
LINKS
Alois P. Heinz, Rows n = 0..14, flattened
Wikipedia, Gray code
FORMULA
EXAMPLE
Triangle T(n,k) begins:
0;
1, 0;
3, 2, 0, 1;
7, 6, 4, 5, 1, 0, 2, 3;
15, 14, 12, 13, 9, 8, 10, 11, 3, 2, 0, 1, 5, 4, 6, 7;
...
T(n,k) written in n-bit binary begins:
();
1, 0;
11, 10, 00, 01;
111, 110, 100, 101, 001, 000, 010, 011;
1111, 1110, 1100, 1101, 1001, 1000, 1010, 1011, 0011, 0010, 0000, ...;
...
MAPLE
T:= (n, k)-> Bits[Xor](2^n-1-k, iquo(k, 2)):
seq(seq(T(n, k), k=0..2^n-1), n=0..6);
CROSSREFS
Row sums give A006516.
KEYWORD
AUTHOR
Alois P. Heinz, Jun 14 2023
STATUS
approved