A199045 Smallest multiple of 2^n having in decimal representation exactly n digits <= 2.
2, 12, 112, 1120, 10112, 101120, 1002112, 10010112, 100101120, 1001011200, 10002010112, 100012122112, 1000121221120, 10001212211200, 100002002010112, 1000000210010112, 10000002100101120, 100000021001011200, 1000000210010112000, 10000000201221210112
Offset: 1
Examples
n=3: A050621(3) = 104 = 8 * 13, a(3) = 112 = 8 * 14; n=4: A050621(4) = 1008 = 16 * 63, a(4) = 1120 = 16 * 70.
Links
- Reinhard Zumkeller, Table of n, a(n) for n = 1..32
Programs
-
Haskell
a199045 n = head $ filter ((<= 2) . a054055) $ map (* 2^n) [a034478 (n-1)..]
Comments