| Ngoc
Tran |
find the smallest positive integer m such that m is not a square and yet in the decimal expansion of sqrt(m), the decimal point is followed by at least 4 consecutives zeros. Thanks for your help, |
||
| Hugh
Venables |
A idea to start with is that this number must be one larger than a perfect square (which you could call x^2) that is large enough so that adding 1 to it (to get x^2+1 - the number you want) only adds 0.0001 to x (well, just less but there will be rounding as dealing with integers). |
||
| Yatir
Halevi |
I checked up to 5 million and didn't find any. Does this number exist? Yatir |
||
| Stephen
Burgess |
Consider for as an integer. If this were true, then |
||
| Hugh
Venables |
The number does exist and can be worked out using a formula (and it's bigger than 5 million) |
||
| Yatir
Halevi |
The number is 25000001 |
||
| Ngoc
Tran |
How did you work it out? |
||
| Yatir
Halevi |
QBASIC |
||
| Steve
Megson |
That's one way. As Stephen says above, for we need So any ''one more than a perfect square'' above 25000000 works, and 25000001 is the least of these. Steve |
||
| Yatir
Halevi |
I don't see why the formula works.... |
||
| Steve
Megson |
Correction: that should be . Then we require Steve |
||
| Yatir
Halevi |
Thanks. I get it now! |