How many of the 343 smallest positive integers written in base 7 use 4 as a digit?
There are 127 integers in base 7 to use the digit 4 in the first 343 integers without counting the repeats such as 44 or 444.....etc. If you include the repeats, then there are 147 integers that use the digit 4.