Problem 141
Forum rules
As your posts will be visible to the general public you
are requested to be thoughtful in not posting anything
that might explicitly give away how to solve a particular problem.
This forum is NOT meant to discuss solution methods for a problem.
See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
As your posts will be visible to the general public you
are requested to be thoughtful in not posting anything
that might explicitly give away how to solve a particular problem.
This forum is NOT meant to discuss solution methods for a problem.
In particular don't post any code fragments or results.
Don't start begging others to give partial answers to problems
Don't ask for hints how to solve a problem
Don't start a new topic for a problem if there already exists one
Don't start begging others to give partial answers to problems
Don't ask for hints how to solve a problem
Don't start a new topic for a problem if there already exists one
See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
Problem 141
Hi! I'm trying to resolve the problem 141.
It says that the sum of all progressive perfect squares below one hundred thousand is 124657, but I'm not getting that sum, I can't get more numbers than these: 9, 10404 (< both on the problem) and XXXXX.
Can someone give me another progressive perfect square number below 100,000 with d, q and r numbers?
Thanks!
Axel.
It says that the sum of all progressive perfect squares below one hundred thousand is 124657, but I'm not getting that sum, I can't get more numbers than these: 9, 10404 (< both on the problem) and XXXXX.
Can someone give me another progressive perfect square number below 100,000 with d, q and r numbers?
Thanks!
Axel.
Last edited by daniel.is.fischer on Mon Oct 27, 2008 5:24 am, edited 1 time in total.
Reason: Remove hint
Reason: Remove hint
"think(O(n))+O(n) sometimes is better than think(O(1))+O(1)"
 daniel.is.fischer
 Posts: 2400
 Joined: Sun Sep 02, 2007 10:15 pm
 Location: Bremen, Germany
Re: Problem 141
There's one more than you found. You can determine the square, d, q and r from that.
Il faut respecter la montagne  c'est pourquoi les gypaètes sont là.
Re: Problem 141
Yeah, I've found it, I were to delete my post :)
But you've answered, so thanks!
But you've answered, so thanks!
"think(O(n))+O(n) sometimes is better than think(O(1))+O(1)"
Re: Problem 141
I just made a post in the solution forum for this problem that I think Euler (or anyone else responsible for curating the problem sets) should read.
Re: Problem 141
Post read and commented upon.
 Lord_Farin
 Posts: 239
 Joined: Wed Jul 01, 2009 9:43 am
 Location: Netherlands
Re: Problem 141
After debugging my code for hours, I verified the perfect squares I found are progressive, that there are no overflow problems, and that my bounds are exact. However, the answer my code returns is wrong. I will be not as naive as to state the answer in the database is wrong, but I seriously am out of debugging ideas now. Moreover, since my algo returns correct squares, I am convinced it is correct.
Is there anybody willing to go through my code to see if there is something I overlooked?
Is there anybody willing to go through my code to see if there is something I overlooked?

 Posts: 4
 Joined: Thu Feb 24, 2011 9:23 am
Re: Problem 141
I have the same trouble. Maybe, i got a wrong formula.
Can someone give me another progressive perfect square number below 100,000(I got only three numbers: 9, 10404 and 1xxxx ).
Can someone give me another progressive perfect square number below 100,000(I got only three numbers: 9, 10404 and 1xxxx ).
Re: Problem 141
The problem statement gives their sum, and you have three already. There are four; you can deduce the fourth from that.

 Posts: 4
 Joined: Thu Feb 24, 2011 9:23 am
Re: Problem 141
Now, i got ten numbers, but it's still wrong. I got two formula, i can't post them here.
so, can someone check my algorithm?
so, can someone check my algorithm?
Re: Problem 141
There are a lot more than just ten numbers. You are probably making generalisations just from observing patterns, which you can not absolutely justify. That would explain why you are missing numbers. Try and think it through again. For n to be a square, what forms must q,d, & r take? What is the size of the searchspace?

 Posts: 38
 Joined: Mon Aug 08, 2011 7:49 am
Re: Problem 141
I've run into some minor problem with my algorithm.
Help me debug it, please.
There is a progressive perfect square close to 10^5, but less than it.
Could you tell me common ratio of the geometric sequence corresponding to this number?
Thanks.
UPDATE: Don't bother  I found it.
Help me debug it, please.
There is a progressive perfect square close to 10^5, but less than it.
Could you tell me common ratio of the geometric sequence corresponding to this number?
Thanks.
UPDATE: Don't bother  I found it.
Re: Problem 141
I get thirteen possible values for n, which add up to a number between five hundred million and one billion that ends in 37. My answer is wrong, but I get the right answer for the 10000 case. Am I way under, or is there something I may be doing wrong?
Re: Problem 141
That would be the right answer if the upper limit were one billion.jake223 wrote:I get thirteen possible values for n, which add up to a number between five hundred million and one billion that ends in 37. My answer is wrong, but I get the right answer for the 10000 case. Am I way under, or is there something I may be doing wrong?
But the upper limit in this problem is one trillion (10^{12}).
Re: Problem 141
I get the correct answer for 10^5, but not for 10^12. I guess it could have something to do with low integer precision. Are the following values correct?
10^6: 700738
10^8: 171436696
10^10: 23261047907
10^6: 700738
10^8: 171436696
10^10: 23261047907
 nicolas.patrois
 Posts: 118
 Joined: Fri Jul 26, 2013 3:54 pm
 Contact:
Re: Problem 141
Yes.Erf_Erf wrote: 10^6: 700738
10^8: 171436696
10^10: 23261047907
Yes.
No.

 Posts: 2
 Joined: Mon Mar 31, 2014 9:43 am
Re: Problem 141
[deleted]
Last edited by fabianlischka on Sat Apr 05, 2014 8:48 am, edited 1 time in total.
Re: Problem 141
@Fabianlischka:
The caption of this forum reads:
"A place to air possible concerns or difficulties in understanding ProjectEuler problems. This forum is not meant to publish solutions."
So it's not a place to give hints nobody has been asking for.
The caption of this forum reads:
"A place to air possible concerns or difficulties in understanding ProjectEuler problems. This forum is not meant to publish solutions."
So it's not a place to give hints nobody has been asking for.

 Posts: 4
 Joined: Sat Sep 20, 2014 3:51 pm
Problem 141 English
The title of problem 141 is "Investigating progressive numbers, n, which are also square" but probably should be "Investigating progressive numbers that are perfect squares." The symbol "n" is irrelevant to the title. The word "which" implies that the quality of being square is incidental to the problem. The world "also" would make more sense if the title with "Investigating numbers that are progressive and also square."
The word "which" is used in many other problems where "that" would be more accurate.
The word "which" is used in many other problems where "that" would be more accurate.