Problem 137
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.
-
Killa
- Posts: 3
- Joined: Wed Jan 26, 2011 7:38 pm
Problem 137
I found out that problem can be solved by finding first 15 integer terms of sequence sqrt(*snip*). I've tried to get then in many different ways, using c++ or mathematica, and always my algorithms are too slow. I could use some hint to find those, or some another idea to solve this problem.
Killa
Killa
- stijn263
- Posts: 1505
- Joined: Sat Sep 15, 2007 11:57 pm
- Location: Netherlands
Re: Problem 137
Can you perhaps spot a pattern among the first few values of n for which sqrt(*snip*) is integer?
Have fun solving!
Have fun solving!
-
Killa
- Posts: 3
- Joined: Wed Jan 26, 2011 7:38 pm
Re: Problem 137
To be honest i've seen this integers first time in my life (and im not new to math; )).
Friend helped me to solve it, so problem is already gone: ).
Friend helped me to solve it, so problem is already gone: ).
- hk
- Administrator
- Posts: 12832
- Joined: Sun Mar 26, 2006 10:34 am
- Location: Haren, Netherlands
Re: Problem 137
If you're not new to math you've probably heard of Pell's equation.
In this case you're asked to find solutions to a Pell-like quadratic diophantine equation
So here are two keywords you can use to solve this kind of problem.
This kind of questions are not uncommon here.
In this case you're asked to find solutions to a Pell-like quadratic diophantine equation
So here are two keywords you can use to solve this kind of problem.
This kind of questions are not uncommon here.

War ruins the life and health of untold numbers of innocent children.
-
Killa
- Posts: 3
- Joined: Wed Jan 26, 2011 7:38 pm
Re: Problem 137
Yeah, i've been thinking some about problem 140, kinda similiar to 137 and i found the connection with pell equasions, in some days i'll certainly find the answers and learn some new things.
Thanks for the hints: )
Thanks for the hints: )
- GenePeer
- Posts: 112
- Joined: Sat Apr 03, 2010 1:14 pm
- Contact:
Re: Problem 137
Can someone who solved the problem send me a PM explaining hyperdex's solution. In particular, I don't understand why he does this:
Why don't we need to check further multiples? His post is the twelfth on the first page. Thank you.hyperdex wrote:if the numerator is (~) mod (~), we check to see if it leads to a solution. If the numerator is (~) mod (~), we check to see if (~) the numerator leads to a solution. (Since we are looking for (~), we don't need to check any further multiples of the numerator.)

- Lord_Farin
- Posts: 239
- Joined: Wed Jul 01, 2009 10:43 am
- Location: Netherlands
- RishadanPort
- Posts: 79
- Joined: Mon Jun 10, 2013 7:31 am
Re: Problem 137
I think there is some mistake on the wording of this question.
The question does say that we are considering only values of x such that Af(x) is a positive integer.
However, there are solutions for negative values of x.
IE x = -2 and x = 1/2 both result in Af(x) = 2
However for the sake of the problem, I guess that Af(x) = 2 is rational for both values of X, positive and negative
The question does say that we are considering only values of x such that Af(x) is a positive integer.
However, there are solutions for negative values of x.
IE x = -2 and x = 1/2 both result in Af(x) = 2
However for the sake of the problem, I guess that Af(x) = 2 is rational for both values of X, positive and negative

Rishada is the gateway to free trade—but the key will cost you.
- RishadanPort
- Posts: 79
- Joined: Mon Jun 10, 2013 7:31 am
Re: Problem 137
I solved this problem...
An amazing problem, props to you guys
An amazing problem, props to you guys

Rishada is the gateway to free trade—but the key will cost you.
-
DJohn
- Posts: 90
- Joined: Sat Oct 11, 2008 12:24 pm
- RishadanPort
- Posts: 79
- Joined: Mon Jun 10, 2013 7:31 am
Re: Problem 137
Oh!
Sorry then. thanks for the reply.
Sorry then. thanks for the reply.

Rishada is the gateway to free trade—but the key will cost you.
-
n2sz
- Posts: 2
- Joined: Sun Aug 12, 2018 4:25 pm
Problem 137
This is to confirm (I am pretty sure this is true) that the first nugget is the 1/2 explained in the problem statement. I have now found (bug in code) that was leading me to question whether this one wasn’t counted in the tally, but it is indeed nugget #1. Maybe that will help another lost soul…
Now off to find 11 thru 15…
Now off to find 11 thru 15…
