How many of the 343 smallest positive integers written in base 7 use 0 or 1 (or both) as a digit?
There are 93 positive integers(base 7) that have at least one zero.
There are 148 positive integers(base 7) that have at least one "1"
So, there are: 148 + 93 =241 zeros and "1's" in the first 343 numbers written in base 7.