Hello!

I have this problem:

How many of the numbers 2^m, for 0<=m<=M, have leading digit 1 in decimal notation?