Let be a positive integer with all digits equal to such that is divisible by . Find the last six digits of .
And I dont even know how you could use a formula... ah well.. trial and error does work sometimes.
Last six digits are 173518 as total resulting number is
Bearing in mind you needed 6 digits at least, so number would need 9(?) 5's at least.
I just used trial and error....
Here is one way, I think.
If you are familiar with Napier's Bones method of multiplication then you can work 'backwards' to find the digits.
The last digit of must be 5, since that is the only digit, (0 to 9), that will give you a number ending in 5 when multiplied by 3. The next digit must be 8, the only digit that will give you a number ending in 4, when multiplied by 3.
Please see the attachment below.
Can you see how to get the rest of the digits you need?
Hope that helps.