![]() |
|
|
#1 |
|
Jun 2003
The Computer
23×72 Posts |
Can they do that instead of 2p-1?
|
|
|
|
|
|
#2 |
|
May 2003
25·3 Posts |
Could you please fully state your question, because I don't unerstand what you're trying to ask ?
|
|
|
|
|
|
#3 |
|
22·3·5·7·13 Posts |
Cunningham chains of the first and second kind:
2p+1 & 2p-1 respectively |
|
|
|
#4 |
|
May 2003
25×3 Posts |
Oh, sorry, I don't know anything about that.
|
|
|
|
|
|
#5 | |
|
"Richard B. Woods"
Aug 2002
Wisconsin USA
11110000011002 Posts |
Quote:
2^p -1 is a Mersenne number, but 2*p-1 is usually not. Sometimes 2^p is written with the p as a superscript, but without a "^". When copied from that form into a text file that doesn't support superscripts, it comes out as "2p", looking like it means "2 times p" rather than "2 to the power p". |
|
|
|
|
|
|
#6 |
|
Jun 2003
The Computer
23×72 Posts |
It's 2 superscript p +1 so it would be 2p+1 just with the p superscript and there are no minus signs.
|
|
|
|
|
|
#7 |
|
Jan 2003
far from M40
53 Posts |
Exept of p=2, 2^p+1=5, all these numbers can be divided by 3 = 2 + 1.
This is just a special case of this formula: (a + b) * Sum(0 <= k <= 2n)[(-1)^k * a^(2n-k) * b^k] = a^(2n + 1) + b^(2n + 1) |
|
|
|
|
|
#8 | |
|
"William"
May 2003
New Haven
2·7·132 Posts |
Quote:
2^6+1=65 2^8+1=257 Only the odd powers are divisible by 3. Half the evens, those not divisible by 4, are divisible by 5. |
|
|
|
|
|
|
#9 |
|
Jan 2003
far from M40
12510 Posts |
True. But as the question was stated 2^p+1, I expect the p to be prime.
Nevertheless, testing 16^n+1 might be interesting. Benjamin |
|
|
|
|
|
#10 |
|
"Richard B. Woods"
Aug 2002
Wisconsin USA
22·3·641 Posts |
Folks,
Whenever someone asks about the primality of 2^n+1, remember the Fermat numbers F(i) = 2^(2^i)+1. F(0) = 3 is prime, F(1) = 5 is prime, F(2) = 17 is prime, and so are F(3) = 257 and F(4) = 65537, but no others are known to be prime. And you probably know thet for years there have been searches for another Fermat prime, with no success so far. So, you ask, why should we recall the Fermat primes when we're facing the more general case of 2^n+1, where n is not necessarily a power of 2? Because it's been proven that 2^n+1 can never be prime unless n is a power of 2, that's why. Any 2^n+1 that is prime must have n eqial to some power of 2. Links to a couple of proofs: http://www.bearnol.pwp.blueyonder.co...th/fermatp.htm http://www.matheprisma.uni-wuppertal...m/FermPri2.htm |
|
|
|
|
|
#11 |
|
Jun 2003
The Computer
1100010002 Posts |
You can just test powers of two, right?
In the first 6 tries with 2^p+1 and 16^p+1 it's 3 composites and 3 primes, while with the usual 2^p-1 all of the first four tries there all primes (I start to the 1st power and go up) So can you test S80780's and my theory? Also when you multiply 16 by itself two or more times it seems to always end with 6, is that always true? |
|
|
|