More on Mersenne

I wrote this something like a year and a half ago, but I never actually hit the “publish” button. Well, here it is:

I’ve continued to look into the whole Mersenne factoring issue, and I’ve generalised my equations somewhat.

Suppose that n|2^p-1 and f doesn’t divide 2^p-1. Then, we have

n | \gcd(2^p-1, (nf-a)^p+a^p)

Let a = 2pq+f and n = 2pm+1, so that n | \gcd(2^p-1, (p(mf-q))^p + (2pq+f)^p). If we now assume that mf-q = 2^k c, then we get that

n | \gcd(2^p-1, (pc)^p + (2pq+f)^p)

This is a more general form than seen in the previous post. If we take f=1 and c = 2pr+1, then we get a useful subset:

n | \gcd(2^p-1, p^p (2pr+1)^p + (2pq+1)^p)

To see the power of this, consider that, for p=41, m=163. If we take r=0, then q = 35. But if we take r=7, then q=0.

Of course, p=41 is relatively uninteresting, so we look for a harder example. For p=67, m=1445580, and thus the best q = 397004. But if r=337, then q=492. And because 2pr+1 and 2pq+1 are of the same form, you only need to calculate (2pq+1)^p 492 times in total while searching, and when you calculate for q=337, you can reuse the result in testing r=337. There may be further ways to accelerate or simplify the process, too.

Explore posts in the same categories: Mathematics, Prime Numbers

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.