Write all the -digit numbers between to that are divisible by:
as well as .
Write all the -digit numbers between to that are divisible by as well as .
We know that, a number is divisible by , if the digit in the ones place is either or and a number is divisible by , if its ones place is .
That means a number is divisible by as well as if its ones place is .
Therefore, the numbers and are divisible by as well as .
Hence, all the -digit numbers between to that are divisible by as well as are and .