--- Leroy Quet <q1qq2qqq3qqqq at yahoo.com> wrote: >... > For example: > The distinct substrings in binary > representation > (1010) of decimal 10: > 0,1,10,01,101,010,1010. > So a(1) = 7. > ... Should be a(10) = 7.