![]() |
March 2016
[url]https://www.research.ibm.com/haifa/ponderthis/challenges/March2016.html[/url]
|
[QUOTE=Xyzzy;427927][url]https://www.research.ibm.com/haifa/ponderthis/challenges/March2016.html[/url][/QUOTE]
I haven't narrowed it enough to do anything useful with the question. |
Using brute force exhaustive search (O(10^8)), I was able to find two solutions for n=15.
Here are the smaller solutions: [CODE] n=5 65766 n=5 69714 n=7 6317056 n=9 169605719 n=11 96528287587[/CODE] There were none for n=13. I haven't looked for patterns with even number of digits. |
[QUOTE=axn;427940]Using brute force exhaustive search (O(10^8)), I was able to find two solutions for n=15.
Here are the smaller solutions: [CODE] n=5 65766 n=5 69714 n=7 6317056 n=9 169605719 n=11 96528287587[/CODE] There were none for n=13. I haven't looked for patterns with even number of digits.[/QUOTE] the patterns I see that should hold regardless of length are related to the first n must be the end of a square reversed and the rest must match up to give those digits ( so the last has to be a number mod 10 that allows a square to end in the first digit hence the 1 and 0 combination (9^2)%10==1) |
From Ibm Ponder This:
Update (07/03): A solution with more than 20 digits will earn you a '**'. |
[QUOTE=axn;427940]Using brute force exhaustive search (O(10^8)), I was able to find two solutions for n=15.
Here are the smaller solutions: [CODE] n=5 65766 n=5 69714 n=7 6317056 n=9 169605719 n=11 96528287587[/CODE]There were none for n=13. I haven't looked for patterns with even number of digits.[/QUOTE] n=8 90899553 :razz: |
Found the two n=15s
n=1 1 n=1 5 n=1 6 n=3 963 n=4 9,867 n=5 65,766 n=5 69,714 n=7 6,317,056 n=8 90,899,553 n=9 169,605,719 n=10 4,270,981,082 n=11 96,528,287,587 n=12 465,454,256,742 n=12 692,153,612,536 They seem to be getting rarer. Has anyone a clue of how many we should expect to find of a certain size? Running a search upto 18 digits. This should take a while. 20 digits is out of my reach so far. |
Is there an [B]elegant[/B] way to solve this problem or is writing a program and cycling through candidates the only way to go?
Sometimes it is difficult to tell when brute-force is actually the intended solution method. I started playing around with a few examples (and even built a grammar-school 15-digit by 15-digit multiplication problem to build up the product line-by-line in Excel) but things get unwieldy fairly quickly. As in GIMPS, knowing the position and size of potential carries becomes vital...but there is no easy way to really do this here. |
[QUOTE=NBtarheel_33;428924]Is there an [B]elegant[/B] way to solve this problem or is writing a program and cycling through candidates the only way to go?
Sometimes it is difficult to tell when brute-force is actually the intended solution method. I started playing around with a few examples (and even built a grammar-school 15-digit by 15-digit multiplication problem to build up the product line-by-line in Excel) but things get unwieldy fairly quickly. As in GIMPS, knowing the position and size of potential carries becomes vital...but there is no easy way to really do this here.[/QUOTE] [SPOILER]Quadratic residues reduce the candidate pool massively. I will explain my method in full once the deadline is up. Found an 18 digit one last night. I think I may have hit on the way to get to 20 digits today. The squaring was the slowest bit for me. I should be able to go from one square to another though. n^2-(n-x)^2=2*x*n-x^2 which is much easier to calculate and add than do another square.[/SPOILER] |
Some supermod should put your post in SPOILER ALERT.
You actually disclosed the method... :razz: |
Are there no 14 & 18 digit answer to this? My program didn't turn-up anything. I am having doubt whether I am doing it right or not.
Though it did reproduce the 10 & 12 digit ones posted above. My code is for even digits only. |
| All times are UTC. The time now is 00:53. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.