0,1

Table of n, a(n) for n=0..104.

7 is 111_2 (has 1), 21_3 (has 2), 13_4 (has 3), but 12_5 (no 4), so a(7)=5.

Cf. A119353, A119354, A106370.

Sequence in context: A101497 A065870 A123699 * A205010 A204932 A079086

Adjacent sequences: A119349 A119350 A119351 * A119353 A119354 A119355

base,nonn

Franklin T. Adams-Watters, May 15 2006

approved