OFFSET
0,5
COMMENTS
LINKS
EXAMPLE
Table begins:
0: [0]
1: [0, 1]
2: [0, 2]
3: [0, 3]
4: [0, 4]
5: [0, 1, 4, 5]
6: [0, 6]
7: [0, 7]
8: [0, 8]
9: [0, 1, 8, 9]
10: [0, 2, 8, 10]
11: [0, 3, 8, 11]
12: [0, 12]
13: [0, 1, 12, 13]
14: [0, 14]
15: [0, 15]
Table begins in binary:
0: [0]
1: [0, 1]
10: [0, 10]
11: [0, 11]
100: [0, 100]
101: [0, 1, 100, 101]
110: [0, 110]
111: [0, 111]
1000: [0, 1000]
1001: [0, 1, 1000, 1001]
1010: [0, 10, 1000, 1010]
1011: [0, 11, 1000, 1011]
1100: [0, 1100]
1101: [0, 1, 1100, 1101]
1110: [0, 1110]
1111: [0, 1111]
PROG
(PARI) row(n) = { my (rr=[]); while (n, my (z=valuation(n, 2), o=valuation(n/2^z+1, 2), r=(2^o-1)*2^z); n-=r; rr = concat(rr, r)); vector(2^#rr, k, vecsum(vecextract(rr, k-1))) }
CROSSREFS
KEYWORD
nonn,base,tabf
AUTHOR
Rémy Sigrist, May 01 2021
STATUS
approved