OK here is how I solved Dyson number 4:
First we would need to check how many digits it would have. This I did by the hack method.
Let's say it's 2 digits. What would we get? When we take the last digit and place it right in front, we are supposed to get 4 times the original digit.
Breaking it down into the 'tens' and 'ones' placing, here's what we get:
10a + b = 4(10b + a)
10a - 4a = 40b - b
6a = 39b
But 6 is not divisible by 39 without leaving a remainder, so the 2-digit case is out. Now let's try the 3-digit case.
100a + 10c + b = 4(100c + 10b + a)
96a = 390c + 39b
Still doesn't work. Let's try 4 digits.
996a = 3900d + 390c + 39b
Nope. How about 5 digits?
9996a = 39000e + 3900d + 390c + 39b
Still no. How about 6 digits?
99996a = 390000f + 39000e + 3900d + 390c + 39b
Yep! 99996 is divisible by 39!
We have a Dyson number for 4 at 6 digits. OK, our work is not done yet. Let's continue.
99996 / 39 = 2564
So, 2564a = 10000f + 1000e + 100d + 10c + b
Now all we need to find are values of a, b, c, d, e & f that will fit the equation above. Sounds daunting? Not really.
You see, the b, c, d ... etc are
already in the 'ones', 'tens', 'hundreds' places respectively!
If we know a, which actually corresponds to its respective Dyson number - in this case 4, we can solve the Dyson number with just one computation in the calculator.
Thus, 2564 x 4 = 10256.
Putting back the 4 in the original place, we now have
102564.
We have just solved Dyson Number 4!
