![]() |
![]() |
#1 |
"Mike"
Aug 2002
5·1,607 Posts |
![]() |
![]() |
![]() |
![]() |
#2 | |
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#3 |
Jun 2003
32×5×109 Posts |
![]()
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 |
![]() |
![]() |
![]() |
#4 | |
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#5 |
"Robert Gerbicz"
Oct 2005
Hungary
26618 Posts |
![]()
From Ibm Ponder This:
Update (07/03): A solution with more than 20 digits will earn you a '**'. |
![]() |
![]() |
![]() |
#6 | |
Romulan Interpreter
Jun 2011
Thailand
100100100110012 Posts |
![]() Quote:
![]() |
|
![]() |
![]() |
![]() |
#7 |
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
16DF16 Posts |
![]()
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. |
![]() |
![]() |
![]() |
#8 |
"Nathan"
Jul 2008
Maryland, USA
5·223 Posts |
![]()
Is there an elegant 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. |
![]() |
![]() |
![]() |
#9 | |
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
5·1,171 Posts |
![]() Quote:
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. Last fiddled with by henryzz on 2016-03-13 at 14:31 |
|
![]() |
![]() |
![]() |
#10 |
Romulan Interpreter
Jun 2011
Thailand
33×347 Posts |
![]()
Some supermod should put your post in SPOILER ALERT.
You actually disclosed the method... ![]() |
![]() |
![]() |
![]() |
#11 |
"Ram Shanker"
May 2015
Delhi
458 Posts |
![]()
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. Last fiddled with by ramshanker on 2016-03-16 at 01:58 |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
March 2018 | Xyzzy | Puzzles | 2 | 2018-04-08 13:45 |
March 2017 | R. Gerbicz | Puzzles | 1 | 2017-04-03 10:57 |
March 2015 | Xyzzy | Puzzles | 15 | 2015-04-02 02:19 |
March Madness 2006 | Prime95 | Lounge | 20 | 2006-03-21 04:35 |
gmp 4.2 due in March | Mystwalker | GMP-ECM | 4 | 2006-02-01 12:00 |