![]() |
|
|
#1299 | |
|
"Mark"
Apr 2003
Between here and the
2·3·1,223 Posts |
Quote:
|
|
|
|
|
|
|
#1300 |
|
Mar 2023
Canada
11112 Posts |
Thanks for the quick fix. It still seems to have some issues with Newpgen format though.
Code:
.\twinsieve.exe -i newpgen.txt -o out2.txt twinsieve v1.6.3, a program to find factors of k*b^n+1/-1 numbers for fixed b and n and variable k Sieve started: 9650251852537 <= p <= 2^62 with 465320 terms Code:
9650251852537:T:0:2:3 1293 333330 |
|
|
|
|
|
#1301 |
|
"Mark"
Apr 2003
Between here and the
1CAA16 Posts |
|
|
|
|
|
|
#1302 |
|
Mar 2023
Canada
3×5 Posts |
|
|
|
|
|
|
#1303 | |
|
"Gary"
May 2007
Overland Park, KS
300716 Posts |
Quote:
Below are some test cases. It should have removed all terms on these: 343*8^n+1 only removed terms divisible by 3. 125*216^n+1 only removed terms divisible by 3. 243*32^n+1 only removed terms divisible by 5. 3125*1024^n+1 only removed terms divisible by 5. This is for version 1.7.2 from the last update of mtsieve a few days ago. I did not see a new executable at SourceForge for your latest fix. I only saw where the source for AlgebraicFactorHelper.cpp had been changed earlier today. Maybe I'm missing something. Last fiddled with by gd_barnes on 2023-06-27 at 21:42 |
|
|
|
|
|
|
#1304 | |
|
"Mark"
Apr 2003
Between here and the
2·3·1,223 Posts |
Quote:
In short if we have k*b^n+1 where k = x^g and b = y^g and g is odd, then all terms would be GFN as they could be written as (x*y)^(g*n)+1. This is what I need to do to derive algebraic factorizations. |
|
|
|
|
|
|
#1305 | |
|
"Gary"
May 2007
Overland Park, KS
110000000001112 Posts |
Quote:
More specifically, all terms should be removed if: g has an odd prime factor where itself counts as a prime factor Stated in a different way, all terms should be removed if: g is not a power of 2 Maybe you were getting at this but I wasn't clear on it. Last fiddled with by gd_barnes on 2023-06-28 at 00:24 |
|
|
|
|
|
|
#1306 |
|
"Mark"
Apr 2003
Between here and the
162528 Posts |
I misstated. Hopefully this is correct. If k = x^f and b = y^g and gcd(f,g) > 1 then k*b^n+1 can only be prime if k*b^n+1 is a GFN. srsieve2 is not intended for sieving GFNs.
Last fiddled with by rogue on 2023-06-28 at 12:14 |
|
|
|
|
|
#1307 | |
|
"Gary"
May 2007
Overland Park, KS
5·2,459 Posts |
Quote:
Specifically on the Sierpinski side, all n-values should be removed if: ( f = g and f,g >= 3 -and- f,g are not a power-of-2 ) -or- ( f,g >= 3 and gcd(f,g) >= 3 ) This expands on what I stated earlier, which wasn't inclusive enough. I had stated that the powers (f & g) had to be equal. But that's not enough. They can be unequal if they have a gcd >= 3. I hope that covers all of the cases of the form x^f*(y^g)^n+1 where all n-values should be removed. But I wouldn't be surprised if there's something more out there. Last fiddled with by gd_barnes on 2023-06-28 at 13:07 |
|
|
|
|
|
|
#1308 |
|
"Mark"
Apr 2003
Between here and the
1CAA16 Posts |
It is my mistake if we are talking past one another. This algebraic factor stuff can be quite confusing.
If k = x^f and b = y^g and x = y and c = +1, then it is GFN. This is already handled. Regarding your case I need to identify the divisors and dump them to the alg.txt file so they can be independently verified by pfgw (to ensure no coding errors in srsieve2. This is not handled: If k = x^f and b = y^g and gcd(x,y) > 2 and gcd(x,y) != 2^n for any n > 0 and c = +1, then each term has the factor of x*y+1. These are handled: If k = x^f and c = +1 and f is odd then each term where n%f = 0 has the factor x*b^(n/f)+1. If k = x^f and c = -1 then each term where n%f = 0 has the factor x*b^(n/f)-1. k = x^f and b = y^g and gcd(x,y) > 2 and c = -1 is handled incorrectly in the current release causing it to remove all terms but output a divisor that is equal to the term itself. This is how it should be handled: If k = x^f and b = y^g and gcd(x,y) > 2 and c = -1, then each term has the factor of x*y^n-1. |
|
|
|
|
|
#1309 | |
|
"Mark"
Apr 2003
Between here and the
2×3×1,223 Posts |
Quote:
For example for 64*36^n-1 we have factors of the form 8*6^n-1 I am in the process of testing to verify that no invalid factors are found for all b <= 1001 and all k <=1001 for a small range of n. Testing higher b and k will have to be done on a case-by-case basis. Last fiddled with by kruoli on 2023-06-29 at 18:21 Reason: Fixed quote. |
|
|
|
|