How many integers can be expressed in base 5 using exactly three digits
the digits are 0,1,2,3,4 repeats allowed but cannot start with 0
smallest = 100 base 5 = 5^2 base 10 = 25
biggest = (1000-1)base 5 = 5^3-1 base10 = 124 base 10
25<= [number base 10] <= 124
and expressed in base 7 using exactly two digits?
smallest = 10 base 7 = 7 base 10
biggest = 100-1 base 7= 7^2-1 base 10 = 48
7<= [number base 10] <= 48
The intersection is
25<= [number base 10] <= 48
48-25+1 = 44