in reply to Re^2: Triangle Numbers Revisited
in thread Triangle Numbers Revisited
There are choices for k that don't work. I want to eliminate them quickly and move on to the next k in the loop instead of spending time trying all combinations of i and j. Eventually I will find an answer, but that choice of k won't be part of it.N = 8*M + 3 - k^2 i^2 + j^2 = N
For example, if N is a multiple of an odd power of 3, the quadratic problem can't be solved in integers. So I can eliminate about 1/3 of the possible choices for k.
|
---|