![]() |
|
|
#12 | |
|
Nov 2006
Singapore
3×52 Posts |
Quote:
Visu |
|
|
|
|
|
|
#13 | |
|
"Richard B. Woods"
Aug 2002
Wisconsin USA
1E0C16 Posts |
Quote:
If you've found that, then you have a representation of N as the difference of two squares, (http://mathworld.wolfram.com/Fermats...ionMethod.html) (http://en.wikipedia.org/wiki/Fermat'...ization_method) so N has factors a1+n + sqrt(dn) and a1+n - sqrt(dn) (unless I've misread or misinterpreted your PDF). Do you mean something else by "we can find"? -- that you aren't actually proceeding past a1+3 and d3? Last fiddled with by cheesehead on 2008-04-11 at 05:58 |
|
|
|
|
|
|
#14 | |
|
Nov 2006
Singapore
3×52 Posts |
Quote:
Martin Gardner's Colossal Book of Mathematics also has an excellent description of this method. Lets say the quadratic equation you get is Ax^2 + Bx + C. For dn to be a square this equation is also a square so now we can write Ax^2 + Bx + C = y^2 ( replace dn by y^2) . I think skipping slightly ahead to page 2 where I provide a numerical example will make things clearer. Also try substituting in x=0,1,2 into the quadratic equation. You should get d1,d2,d3 |
|
|
|
|
|
|
#15 |
|
Nov 2006
Singapore
3×52 Posts |
This is in addition to my previous post. What Fermat's algorithm does is say find
dn = y^2 . What I'm doing is expressing the d's as Ax^2 + Bx + C and since we know we want a square number stating that we want to solve Ax^2 + Bx + C = y^2. |
|
|
|
|
|
#16 |
|
Jan 2005
Transdniestr
503 Posts |
|
|
|
|
|
|
#17 | |
|
Feb 2007
24·33 Posts |
Quote:
|
|
|
|
|
|
|
#18 |
|
Feb 2007
6608 Posts |
somewhat more precision is needed in mathematics.
As remarked, if N is a difference of 2 squares >0, it's trivially composite, N=(a-b)(a+b). Thus, if N is not composite, you can NOT find a d_k in the list d_k = (a+k)^2-N This clearly shows that the 3rd phrase of your document, "...so that we can find (a1 + n)^2 – (N) = dn where dn is a square number." is WRONG. Thus, there is no "Next,..." possible, from that point on, since it is never reached. You also say "While there are analytical methods to solve this type of equation they involve the use of factorization which we wish to avoid. Hence we will go by the rational point on conics route." But then, in the example, you use again alpertron's QUAD.HTM. All of this does not make sense. As a final note, you don't need to spend years on learning a programming language or on programming. If you have a clear "method", this means "algorithm", and you just can write it in English: Given N, let a = floor( sqrt( N )), d_k = (a+k)^2-N for k=1,2,3 Let ... ; If ... then ... ; etc. Or at least, develop 2 or 3 significant examples "by hand" from the start to the end, without saying "we could... but we want to avoid...": Just use the method and only the method you want to explain. And, don't say "we can find", but say what exactly *how* is to be done. |
|
|
|
|
|
#19 | ||||
|
Nov 2006
Singapore
3·52 Posts |
Agreed I will make the changes in the next draft.
Quote:
4^2 - 3^2 = 7. But a composite number can be expressed as a difference of 2 squares in more ways depending on the number of factors it has. For example the semi-prime 21 can be expressed as 11^2 - 10^2 and 5^2 - 2^2.If the number has 3 factors there are 3 such representations and so on. Quote:
Ceiling(sqrt[97]) = 10 10^2 - 97 = 3 11^2 - 97 = 24 12^2 - 97 = 47 Finding d_k is not dependent on N being composite Quote:
Quote:
|
||||
|
|
|
|
|
#20 | |
|
Nov 2006
Singapore
3×52 Posts |
Quote:
|
|
|
|
|
|
|
#21 | |
|
Nov 2003
164448 Posts |
Quote:
When you talk about "gradient", you are working in R^2. When you talk about rational points, you are working in Q^2. One can represent the conic sections for which you are seeking rational points as a scheme. Factoring now becomes the problem of separating two rings within that scheme. However, the concept of "gradient" does not apply in that scheme. A gradient based descent algorithm does not work in the discrete topology. This is all moot, however, since difference-of-squares methods are purely exponential; Trying to invent a "new & improved" difference of squares method is just trying to reinvent a square wheel. |
|
|
|
|
|
|
#22 | ||
|
Nov 2006
Singapore
3·52 Posts |
Quote:
Quote:
I agree and disagree.All difference of square methods up to now have been iterative and thus exponential.Mine as I have said before is not an iterative process. I am trying to round the edges off of the square to make it circular. |
||
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Alternatively-gifted factoring algorithm | Prime95 | Miscellaneous Math | 72 | 2015-10-26 00:14 |
| Shor's Factoring Algorithm - does it even work? | Citrix | Factoring | 37 | 2008-08-16 14:19 |
| Faster Factoring Algorithm? | Citrix | Factoring | 6 | 2007-12-23 11:36 |
| division/remainder algorithm (trial factoring) | TheJudger | Math | 4 | 2007-10-18 19:01 |
| A new prime factoring algorithm? | Visu | Factoring | 22 | 2006-11-09 10:43 |