Smallest concatenation of powers of 2 in ascending order that is a multiple of n, or 0 if no such number exists.

A069873

Smallest concatenation of powers of 2 in ascending order that is a multiple of n, or 0 if no such number exists.

Terms

    a(0) =1a(1) =12a(2) =12a(3) =12a(4) =0a(5) =12a(7) =1248a(8) =12481632a(9) =0a(11) =12a(12) =1248a(14) =0a(15) =1248a(17) =12481632a(18) =12481632a(19) =0a(22) =1248163264a(23) =1248a(24) =0a(25) =1248

External references