

A353293


Irregular table T(n, k), n > 0, k = 1..A353292(n), read by rows: the nth row contains in ascending order the distinct positive integers k <= n that have at least one common 1bit with n.


3



1, 2, 1, 2, 3, 4, 1, 3, 4, 5, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7, 8, 1, 3, 5, 7, 8, 9, 2, 3, 6, 7, 8, 9, 10, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

1,2


COMMENTS



LINKS



FORMULA



EXAMPLE

Irregular table T(n, k) begins:
1: [1]
2: [2]
3: [1, 2, 3]
4: [4]
5: [1, 3, 4, 5]
6: [2, 3, 4, 5, 6]
7: [1, 2, 3, 4, 5, 6, 7]
8: [8]
9: [1, 3, 5, 7, 8, 9]
10: [2, 3, 6, 7, 8, 9, 10]
11: [1, 2, 3, 5, 6, 7, 8, 9, 10, 11]
12: [4, 5, 6, 7, 8, 9, 10, 11, 12]
13: [1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
14: [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
15: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]


PROG

(PARI) row(n) = select (k > bitand(n, k), [1..n])


CROSSREFS



KEYWORD



AUTHOR



STATUS

approved



