OFFSET
0,4
COMMENTS
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..9851 (rows n = 0..512)
EXAMPLE
Table begins:
0;
1;
1, 2;
3;
2, 3, 4;
3, 5;
3, 5, 6;
7;
4, 6, 7, 8;
5, 7, 9;
5, 6, 7, 9, 10;
7, 11;
6, 7, 10, 11, 12;
7, 11, 13;
7, 11, 13, 14;
...
MAPLE
T:= n-> sort([{seq(Bits[Or](n-k, k), k=0..n)}[]])[]:
seq(T(n), n=0..30); # Alois P. Heinz, Oct 20 2019
PROG
(PARI) row(n) = Set(apply(k -> bitor(n-k, k), [0..n]))
CROSSREFS
KEYWORD
AUTHOR
Rémy Sigrist, Oct 20 2019
STATUS
approved