a(n) = minimal positive k such that the concatenation of the binary expansions of n,n+1,...,n+k is divisible by n+k+1, or -1 if no such k exists.

A332563

a(n) = minimal positive k such that the concatenation of the binary expansions of n,n+1,...,n+k is divisible by n+k+1, or -1 if no such k exists.

Terms

    a(0) =1a(1) =6a(2) =253a(3) =160a(4) =23a(5) =6a(6) =577a(7) =14a(8) =1a(9) =4a(10) =383a(11) =8a(12) =1591a(13) =18a(14) =169a(15) =42a(16) =1879a(17) =210a(18) =57a(19) =20a(20) =69a(21) =1354a(22) =13a(23) =86a(24) =225a(25) =1532a(26) =577a(27) =300a(28) =13a(29) =30

External references