This is a similar approach.
How to do it manually for 33:
Let go from the least number which will be? - 0. Is it divisible? No. Let go up a number. 9. Is it divisible? No. Again by a number 90. Is is divisible? No. Again by a number 99. Is it divisible? Yes.
Look at the template.
0 9 90 99
What does it look like? binary! Yes, instead of 1 we have 9.
Now I will go from 0 until I get the number that divides it as binary code (by replacing 1 with 9).
we get
Number Binary 0 And 9 0 0 0 1 1 9 2 10 90 3 11 99 4 100 900 5 101 909 6 110 990 7 111 999
We get all the numbers that can be formed using 0 and 9 in ascending order .
source share