OFFSET
0,5
COMMENTS
This sequence is related to the T-square fractal (see A363710).
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..13126 (rows for n = 0..2^9 flattened)
Wikipedia, T-square (fractal)
EXAMPLE
Table T(n, k) begins:
n n-th row
-- ----------------------
0 0
1 0, 1
2 0, 2
3 0, 3
4 0, 1, 3, 4
5 0, 1, 4, 5
6 0, 6
7 0, 7
8 0, 1, 7, 8
9 0, 1, 2, 3, 6, 7, 8, 9
10 0, 2, 3, 7, 8, 10
11 0, 3, 8, 11
12 0, 1, 3, 9, 11, 12
13 0, 1, 12, 13
14 0, 14
15 0, 15
16 0, 1, 15, 16
PROG
(PARI) row(n) = { select (m -> bitand(bitxor(m, m\2), bitxor(n-m, (n-m)\2))==0, [0..n]) }
CROSSREFS
KEYWORD
nonn,base,tabf
AUTHOR
Rémy Sigrist, Jun 28 2023
STATUS
approved