Hi all,
I'm working on a personal maths project and have reached a point where a little outside help in the maths department would be extremely welcome ...
and I'm more than certain that we have ATS members who are well versed in mathematics and may be able to provide such assistance and insight
If nothing else, perhaps my question will serve to brush off some of those cobwebs that tend to accumulate over the years on all of our brain cells
!
Ok, what I'm after is some form of mathematical "short cut" to arrive at a required solution given a bit of input to start with. Basically, I use
the staring input and perform some simple calculations and eventually end up with the answer I'm looking for. The problem is that there may be times
when it becomes necessary to have to repeat those simple calculations over and over, maybe for 100's, 1000's or even millions of times before
reaching the solution ... and so I need that "short cut" to effectively bypass as many of those repeated intermediary calculations and thereby save
a heck of a lot of processing time.
Basically, I start of with 2 input values say, 129 and 3154.
I then create a quadratic equation using these values which will look like this:
Now I find the roots of this quadratic which in this example are 32.78 and 96.22
If the roots are BOTH integer values only, then these roots are the solution I was looking for ... and end of story.
But if either or both are NOT integer values, e.g. (23.76 and 57.9) ... or (237.2 and 673.58) ... or (76 and 142.62) then we modify the two starting
numbers by adding 24 to the smaller of the two, and subtracting 1 from the larger of the two as shown here:
129 + 24 = 153 and
3154 - 1 = 3153
Now we repeat the process using these two new numbers of 153 and 3153 by creating a quadratic equation
and trying to find two INTEGER roots.
Again, if we find them ... then success and we stop ... otherwise repeat by adding 24 and subtracting 1 from the two numbers just used and creating
yet again, a new pair of numbers to try.
This process of adding 24 and subtracting 1 continues as many times as necessary (a few times, 100's, 1000's, etc of times) until we find those two
integer roots.
At this point I have to mention that the two original starting numbers will ALWAYS eventually result in two integer roots, because these two starting
numbers have been specifically selected based on the advance knowledge that integer roots DO exist when these numbers (or their 'modified' numbers)
are placed into quadratic form.
Here is an example of the entire process of finding the two integer roots starting with two original numbers of 9 and 3159. It takes only 10
iterations to arrive at the quadratic that produces integer roots.
Note that we're starting at the bottom of the table and working our way up to the top.
I should also mention at this point that if the roots happen to be complex, then they're ignored and the iterations continue ... we're ONLY looking
for those TWO INTEGER roots !
Here is a graphical view of the 2 roots:
So as you can see in this example, it was trivial to find the two integer roots after just 10 iterations. But not all cases are this easy and could
involve 1000's and millions of iterations before those two integer roots eventually pop up ... and this leads back to my original request for
assistance ... to find some "short cut" that will help to eliminate as many of those repeated intermediary iterations as possible and "jump" from
the original starting two numbers to the 'modified" two numbers that will produce the integer roots.
So in summary, and using the above example, I basically need a method or a short cut to go from starting numbers 9 and 3159, to final numbers 225 and
3150 in the most efficient and effective way possible.
If anyone's interested in trying this out for themselves with other pairs of starting numbers, use the following pairs which will definitely
eventually produce integer roots.
7 and 602
10 and 265
23 and 1866
10 and 13215
Ok, that's all there is to it ... so anyone have any brilliant suggestions or ideas ? I'd be incredibly grateful for such help !
[edit on 28/10/09 by tauristercus]