OFFSET
0,3
COMMENTS
a(n) represents the n-th finite subset of positive integers in Gray order, two consecutive sets differ in exactly one member: {}, {1}, {1,2}, {2}, {2,3}, {1,2,3}, {1,3}, {3}, {3,4}, {1,3,4}, {1,2,3,4}, {2,3,4}, ... .
a(n) is the concatenation of all terms in the n-th row of A227738 (for n>=1).
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..16383
Wikipedia, Gray code
EXAMPLE
A003188(17) = 25 = 11001_2 gives a(17) = 145.
MAPLE
a:= n-> `if`(n=0, 0, (l-> parse(cat(seq(`if`(l[i]=1, i, [][]),
i=1..nops(l)))))(Bits[Split](Bits[Xor](n, iquo(n, 2))))):
seq(a(n), n=0..100);
CROSSREFS
KEYWORD
AUTHOR
Alois P. Heinz, Feb 01 2023
STATUS
approved