mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Math

Reply
 
Thread Tools
Old 2016-09-29, 18:35   #111
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

I see you have learned the joy of counterexamples!
CRGreathouse is offline   Reply With Quote
Old 2016-09-29, 18:40   #112
wildrabbitt
 
Jul 2014

3×149 Posts
Default

wildrabbitt is offline   Reply With Quote
Old 2016-09-29, 19:13   #113
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

Quote:
Originally Posted by wildrabbitt View Post
ie 8mp + 1 and (8m - 2)p + 1 ?
see the thread I posted about k values using modular arithmetic you can prove results that can't fit the choice of factor af a mersenne number with prime exponent. take p=4j+1:

we have four cases mod 4:

\begin{cases}<br />
2(4x)(4j+1)+1 = (8x)(4j+1)+1=32xj+8x+1 \equiv 1 \pmod {8} \mbox{ if }k \mbox{ is 0 \pmod{4}}\\<br />
2(4x+1)(4j+1)+1 = (8x+2)(4j+1)+1 = 32xj+8x+8j+3 \equiv 3 \pmod {8} \mbox{ if }k \mbox{ is 1 \pmod{4}}\\<br />
2(4x+2)(4j+1)+1 = (8x+4)(4j+1)+1=32xj+8x+16j+5 \equiv 5 \pmod {8} \mbox{ if }k \mbox{ is 2 \pmod{4}}\\<br />
2(4x+3)(4j+1)+1 = (8x+6)(4j+1)+1 = 32xj+8x+24j+7 \equiv 7 \pmod {8} \mbox{ if }k \mbox{ is 3 \pmod{4}}\\<br />
\end{cases}<br />

and you can generalize this to cases 0,p,-p,2 mod 4.

Last fiddled with by science_man_88 on 2016-09-29 at 19:23
science_man_88 is offline   Reply With Quote
Old 2016-09-29, 19:30   #114
wildrabbitt
 
Jul 2014

1101111112 Posts
Default

I was looking at that thread just before you posted as it happens.


What you've said with those 4 lines is

For p congruent to 1 mod 4, a factor of 2^p - 1 of the form 2kp + 1 can only exist for

k congruent to 0 (mod 4)
k congruent to 3 (mod 4)

as 2kp + 1 must be 1 or 7 (mod 8)

if I understand correctly.

Big thanks for that post scienceman. It's given me an idea for something

Last fiddled with by wildrabbitt on 2016-09-29 at 19:30
wildrabbitt is offline   Reply With Quote
Old 2016-09-29, 19:34   #115
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

Quote:
Originally Posted by wildrabbitt View Post
I was looking at that thread just before you posted as it happens.


What you've said with those 4 lines is

For p congruent to 1 mod 4, a factor of 2^p - 1 of the form 2kp + 1 can only exist for

k congruent to 0 (mod 4)
k congruent to 3 (mod 4)

as 2kp + 1 must be 1 or 7 (mod 8)

if I understand correctly.

Big thanks for that post scienceman. It's given me an idea for something
and the generalization is that:
k congruent to 0 or -p mod 4 are the possible k values that produce possible factors.

you can also use what I talked about above and show for example that for no prime p will k=2p+2 produce a prime.
science_man_88 is offline   Reply With Quote
Old 2016-09-29, 20:48   #116
wildrabbitt
 
Jul 2014

3·149 Posts
Default

Quote:
and the generalization is that:
k congruent to 0 or -p mod 4 are the possible k values that produce possible factors.
So 2kp + 1 divides 2^p - 1 if and only if k is congruent to 0 or -p (mod 4).

That's amazing, if I've understood correctly.

If p is 1 mod 4 then k must be 0 or -p (mod 4) is 0 or -(4k + 1) ie 3 mod 4.
If p is 3 mod 4 then k must be 0 or -p (mod 4) is 0 or -(4k + 3) ie 1 mod 4.
wildrabbitt is offline   Reply With Quote
Old 2016-09-29, 21:04   #117
wildrabbitt
 
Jul 2014

1BF16 Posts
Default

Quote:
and the generalization is that:
k congruent to 0 or -p mod 4 are the possible k values that produce possible factors.
Would the proof of this be like the specific case you gave :

Quote:
we have four cases mod 4:
but Starting with we have p cases (mod p)???

Last fiddled with by wildrabbitt on 2016-09-29 at 21:05 Reason: mistakes
wildrabbitt is offline   Reply With Quote
Old 2016-09-29, 21:04   #118
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

203008 Posts
Default

Quote:
Originally Posted by wildrabbitt View Post
So 2kp + 1 divides 2^p - 1 if and only if k is congruent to 0 or -p (mod 4).

That's amazing, if I've understood correctly.

If p is 1 mod 4 then k must be 0 or -p (mod 4) is 0 or -(4k + 1) ie 3 mod 4.
If p is 3 mod 4 then k must be 0 or -p (mod 4) is 0 or -(4k + 3) ie 1 mod 4.
only k with these properties produce candidates that could be factors of a given mersenne. edit: see CRG's post below having these properties doesn't guarantee it's a divisor.

also since a negative sign out front is multiplication by -1 we get -4k-1 and -4k-3 since 4k divides by 4 regardless we get -1 and -3 and then using the property that -(-x) in modular arithmetic mod n is congruent to n-x we get 3 and 1 respectively so k must be 0 or 3 mod 4 for p that are 1 mod 4 and 0 and 1 for p that are 3 mod 4.

Quote:
Originally Posted by wildrabbitt View Post
Would the proof of this be like the specific case you gave :

but Starting w have p cases (mod p)???
we have 4 cases possible still working mod 4 ( with usefulness dependent on p):

2(4k)p+1 = 1 mod 8
2(4k+1)p = 2p+1 mod 8 ( and since modular math allows you to multiply and get to another remainder mod a different number potentially) we have 2(4k+1)(4j+1)+1 = (8k+2)(4j+1)+1 = 32kj+8k+8j+3 = 3 mod 8 =2(4k+3)(4j+3)+1 = (8k+6)(4j+3)+1 = 32kj+24k+24j+19 = 19 mod 8 = 19-16 mod 8 = 3 mod 8. this is the k=p mod 4 case.
2(4k+1)p = 2p+1 mod 8 ( and since modular math allows you to multiply and get to another remainder mod a different number potentially) we have 2(4k+1)(4j+3)+1 = (8k+2)(4j+3)+1 = 32kj+24k+8j+7 = 7 mod 8 this is the k=-p mod 4 case. one one is shown because when they are opposites they can switch around and have the same algebraic value ( to within the switching places of variable names).
2(4k+2)p+1 = (8k+4)(4j+1)+1 which mod 8 simplifies to 4(4j+1)+1 = 16j+5 = 5 mod 8.

Last fiddled with by science_man_88 on 2016-09-29 at 21:23
science_man_88 is offline   Reply With Quote
Old 2016-09-29, 21:20   #119
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Quote:
Originally Posted by wildrabbitt View Post
So 2kp + 1 divides 2^p - 1 if and only if k is congruent to 0 or -p (mod 4).

That's amazing, if I've understood correctly.

If p is 1 mod 4 then k must be 0 or -p (mod 4) is 0 or -(4k + 1) ie 3 mod 4.
If p is 3 mod 4 then k must be 0 or -p (mod 4) is 0 or -(4k + 3) ie 1 mod 4.
I think sm intended it to be interpreted as "only if", not "if and only if".
CRGreathouse is offline   Reply With Quote
Old 2016-09-29, 21:43   #120
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

260216 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
I think sm intended it to be interpreted as "only if", not "if and only if".
What about not and if?
chalsall is online now   Reply With Quote
Old 2016-09-29, 21:52   #121
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

Quote:
Originally Posted by chalsall View Post
What about not and if?
why don't I just go with necessary but not sufficient. as the conditions are necessary for 2kp+1 to be a divisors for 2^p-1 but they are hardly sufficient.
science_man_88 is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Listen and see how a composite, prime and mersenne responds to the drums ONeil ONeil 0 2018-04-21 02:42
New Factor leaves a C168 Mersenne Composite wblipp ElevenSmooth 7 2013-01-17 02:54
Mersenne primes have highly composite p-1? ATH Math 3 2009-06-15 13:11
Factoring highly composite Mersenne numbers philmoore Factoring 21 2004-11-18 20:00
Mersenne composite using fibonacci TTn Math 5 2002-11-23 03:54

All times are UTC. The time now is 18:18.


Fri Jul 16 18:18:56 UTC 2021 up 49 days, 16:06, 1 user, load averages: 3.25, 2.64, 2.19

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.