A274183 Irregular triangular array having n-th row g(n) defined in Comments.
0, 1, 0, 2, 1, 0, 3, 2, 1, 1, 0, 4, 3, 2, 2, 1, 1, 0, 5, 4, 3, 3, 2, 2, 1, 2, 1, 1, 0, 6, 5, 4, 4, 3, 3, 2, 3, 2, 2, 1, 2, 1, 1, 1, 0, 7, 6, 5, 5, 4, 4, 3, 4, 3, 3, 2, 3, 2, 2, 2, 1, 3, 2, 2, 1, 1, 1, 1, 0, 8, 7, 6, 6, 5, 5, 4, 5, 4, 4, 3, 4, 3, 3, 3, 2, 4
Offset: 0
Examples
First six rows: 0 1 0 2 1 0 3 2 1 1 0 4 3 2 2 1 1 0 5 4 3 3 2 2 1 2 1 1 0
Programs
-
Mathematica
g[0] = {0}; z = 14; g[n_] := g[n] = Join[g[n - 1] + 1, (1/2) Select[g[n - 1], IntegerQ[#/2] &]]; Flatten[Table[g[n], {n, 0, z}]]
Comments