mersenneforum.org  

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

Reply
 
Thread Tools
Old 2011-12-22, 05:19   #1
devarajkandadai
 
devarajkandadai's Avatar
 
May 2004

22·79 Posts
Default Mangammal primes

I wanted to check whether the exponent in M_47 (12978189 ) is a Mangammal prime A123239-0EIS or not. So I tried to run the following program in pari:


{p(n) = if (Mod(3,12978189)^n = = 2, print(“integer”))}

for (n = 1, 12978188, print p(n)))

However this will take at least some hours .

Two questions: a) Is pari capable of this?

b) If so is there a shorter cut?

A.K. Devaraj
devarajkandadai is offline   Reply With Quote
Old 2011-12-22, 05:30   #2
axn
 
axn's Avatar
 
Jun 2003

2·3·7·112 Posts
Default

1. 12978189 = 3^2*7^2*29429 is not a prime.
2. 47th mersenne prime has an exponent 43112609
3.
Code:
? p=43112609; s=Mod(3,p); z=znorder(s); for(i=2,z, if((s*=3)==2, return(i)))
%7 = 30763196
? ##
  ***   last result computed in 18,347 ms.
? Mod(3,p)^%
%8 = Mod(2, 43112609)
4. Alternately,
Code:
? znlog(2, Mod(3,p))
%9 = 30763196
? ##
  ***   last result computed in 32 ms.

Last fiddled with by axn on 2011-12-22 at 05:39
axn is offline   Reply With Quote
Old 2011-12-23, 11:03   #3
devarajkandadai
 
devarajkandadai's Avatar
 
May 2004

22·79 Posts
Default

Quote:
Originally Posted by axn View Post
1. 12978189 = 3^2*7^2*29429 is not a prime.
2. 47th mersenne prime has an exponent 43112609
3.
Code:
? p=43112609; s=Mod(3,p); z=znorder(s); for(i=2,z, if((s*=3)==2, return(i)))
%7 = 30763196
? ##
  ***   last result computed in 18,347 ms.
? Mod(3,p)^%
%8 = Mod(2, 43112609)
4. Alternately,
Code:
? znlog(2, Mod(3,p))
%9 = 30763196
? ##
  ***   last result computed in 32 ms.
Thank you very much.
A.K. Devaraj
devarajkandadai is offline   Reply With Quote
Old 2011-12-24, 04:22   #4
Christenson
 
Christenson's Avatar
 
Dec 2010
Monticello

5×359 Posts
Default

Small correction: 2^43112609-1 is the 47th KNOWN Mersenne Prime. There's a distinct nonzero (O(1:1000) or better) probability that it's actually the 48th Mersenne Prime.
Christenson is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Distribution of Mersenne primes before and after couples of primes found emily Math 34 2017-07-16 18:44
A particular Mangammal prime devarajkandadai Software 5 2013-09-22 04:24
Mangammal primes devarajkandadai Math 19 2007-04-16 11:04
Mangammal Primes devarajkandadai Math 1 2006-12-18 09:12
possible primes (real primes & poss.prime products) troels munkner Miscellaneous Math 4 2006-06-02 08:35

All times are UTC. The time now is 15:56.


Mon Aug 2 15:56:53 UTC 2021 up 10 days, 10:25, 0 users, load averages: 1.96, 2.11, 2.21

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.