![]() |
![]() |
#45 |
Aug 2006
174916 Posts |
![]()
Sidenote: In this case you seem to be looking at the sum of a linear function, which is of course quadratic. If you want to know when two quadratics will be equal you may find this handy:
https://www.alpertron.com.ar/QUAD.HTM |
![]() |
![]() |
![]() |
#46 |
Romulan Interpreter
Jun 2011
Thailand
100011101100002 Posts |
![]()
Obviously, you have a sum of two arithmetic progressions, which you equate and then you have to solve a diophantine equation, which is equivalent with factorization.
On your particular case where you sum odd numbers, this is the difference of squares factoring method. When you sum odd numbers to n, you get a square number. Summing them from m to n is just a difference of two squares. |
![]() |
![]() |
![]() |
#47 | |
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
![]() Quote:
Last fiddled with by science_man_88 on 2017-10-03 at 11:14 |
|
![]() |
![]() |
![]() |
#48 | ||||
"Ed Hall"
Dec 2009
Adirondack Mtns
33×131 Posts |
![]() Quote:
Quote:
Quote:
Quote:
Thanks to all for your help in this. Off to study... |
||||
![]() |
![]() |
![]() |
#49 | |
Aug 2006
135118 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#50 | |
"Ed Hall"
Dec 2009
Adirondack Mtns
33×131 Posts |
![]() Quote:
The high sequence is made up of the first square, 2704 and each sequential square upward. These are derived by adding the differences between each, which is a progression that increases by 2 for each step. The difference between 2704 and 2809 (532) is 105, the difference between 2809 and 2916 (542) is 107, etc. The low sequence is similar in that it uses sequential squares as well, but is offset by the composite. In this case, 2627+64 gives us the starting value of 2691. The series continues by adding the perfect square differences from 64 upward: 17, 19, 21, 23, etc. The intersection of the two series will be the value of the high square needed to factor 2627. In this case it is reached rather quickly at 2916. The low series has no more interest after is has intersected with the high series to provide the value 2691. 2691-2627=64. The fact that this was the original low square is coincidental for this sample. However, we now have the two squares needed to factor 2627. I have programmatically stepped and checked through progressions one element at a time to look for this coincidence and stepped through the high series only, checking for a difference that is a perfect square, (as suggested by fivemack, earlier). Both are exceptionally slow. So now I'm looking again at a way to calculate directly the intersection. I'm sure someone has studied and tossed this at some time in the past, but I'd like to visit it myself for a bit. Thanks much! |
|
![]() |
![]() |
![]() |
#51 | |
"Michael"
Aug 2006
Usually at home
24·5 Posts |
![]() Quote:
The equation for Y2 where n + Y2 = X2 is- x2 + bx + c = Y2 where b = 2m and c = m2 - n m = ceil(sqrt(n)) I looked at this equation but it is not very useful as x can be very large. It is only marginally better than Fermat's Method which is very slow for large Y^2. Last fiddled with by mgb on 2019-07-19 at 21:35 |
|
![]() |
![]() |
![]() |
#52 | |
Jul 2018
3·13 Posts |
![]() Quote:
=0 so: x=(10**22+117) and y=(10**22+193) an integer solve. https://www.alpertron.com.ar/QUAD.HTM a=3 b=-5 c=7 d=-11 e=13 f=-5*10**44-1856*10**22-190127 please click for mouse or finger for touch-plate: 'solve' button: 112 different solve only 1 second, thank you dario, good work! but if digit > 5e2 then need many time, for example: 101*(10**776+1777)**2-103*(10**776+1777)*(10**776+2037)+107*(10**776+2037)**2-109*(10**776+1777)+127*(10**776+2037)-105*10**1552-402048*10**776-390143971 =0 so: x=(10**776+1777) and y=(10**776+2037) an integer solve. a=101 b=-103 c=107 d=-109 e=127 f=-105*10**1552-402048*10**776-390143971 a few hours, not any result. question: how can we solve 1e16 times faster? Last fiddled with by hal1se on 2019-07-21 at 14:39 |
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
radius of convergence of a complex power series | wildrabbitt | Math | 3 | 2016-08-16 08:38 |
Modification of Fermat's method | rdotson | Miscellaneous Math | 0 | 2007-07-27 10:32 |
Elliptic Curve Method factoring - Fermat numbers | philmoore | Math | 131 | 2006-12-18 06:27 |
Fermat's factoring method with Gauss's inprovement | Carlos | Programming | 0 | 2005-09-11 12:50 |
Convergence of infinite series | LoKI.GuZ | Math | 10 | 2004-11-28 03:07 |