The Fibonacci Quarterly 44(2006), no.2, PRIMALITY TESTS FOR NUMBERS OF THE FORM k 2 m ± 1. Zhi-Hong Sun

Similar documents
CONGRUENCES CONCERNING LUCAS SEQUENCES ZHI-HONG SUN

A CRITERION FOR POLYNOMIALS TO BE CONGRUENT TO THE PRODUCT OF LINEAR POLYNOMIALS (mod p) ZHI-HONG SUN

A LLT-like test for proving the primality of Fermat numbers.

Some sophisticated congruences involving Fibonacci numbers

ON THE LEAST SIGNIFICANT p ADIC DIGITS OF CERTAIN LUCAS NUMBERS

Math 4400/6400 Homework #8 solutions. 1. Let P be an odd integer (not necessarily prime). Show that modulo 2,

CONSECUTIVE NUMBERS WITHTHESAMELEGENDRESYMBOL

Legendre polynomials and Jacobsthal sums

Congruences involving Bernoulli and Euler numbers Zhi-Hong Sun

x 2 a mod m. has a solution. Theorem 13.2 (Euler s Criterion). Let p be an odd prime. The congruence x 2 1 mod p,

Around Prime Numbers And Twin Primes

On the number of representations of n by ax 2 + by(y 1)/2, ax 2 + by(3y 1)/2 and ax(x 1)/2 + by(3y 1)/2

CERIAS Tech Report The period of the Bell numbers modulo a prime by Peter Montgomery, Sangil Nahm, Samuel Wagstaff Jr Center for Education

Mersenne and Fermat Numbers

DIVISIBILITY CRITERIA FOR CLASS NUMBERS OF IMAGINARY QUADRATIC FIELDS

A Proof of the Lucas-Lehmer Test and its Variations by Using a Singular Cubic Curve

On the Diophantine Equation x 2 = 4q n 4q m + 9

arxiv: v5 [math.nt] 22 Aug 2013

#A47 INTEGERS 15 (2015) QUADRATIC DIOPHANTINE EQUATIONS WITH INFINITELY MANY SOLUTIONS IN POSITIVE INTEGERS

Arithmetic Consequences of Jacobi s Two-Squares Theorem

A FEW EQUIVALENCES OF WALL-SUN-SUN PRIME CONJECTURE

Advances in Applied Mathematics 48(2012), Constructing x 2 for primes p = ax 2 + by 2

BOUNDS FOR THE SIZE OF SETS WITH THE PROPERTY D(n) Andrej Dujella University of Zagreb, Croatia

Then we characterize primes and composite numbers via divisibility

Diophantine Equations and Congruences

arxiv: v2 [math.nt] 9 Oct 2018

On the Multiplicative Order of a n Modulo n

Verifying Two Conjectures on Generalized Elite Primes

p 4 )(α p ) p 5 p

Representing Integers as the Sum of Two Squares in the Ring Z n

A CLASS OF ALGEBRAIC-EXPONENTIAL CONGRUENCES MODULO p. 1. Introduction

Gaps in Semigroups. Université Pierre et Marie Curie, Paris 6, Equipe Combinatoire - Case 189, 4 Place Jussieu Paris Cedex 05, France.

MATH 3240Q Introduction to Number Theory Homework 7

Small Zeros of Quadratic Forms Mod P m

QUADRATIC RECIPROCITY

MATH342 Practice Exam

PRIMALITY TEST FOR FERMAT NUMBERS USING QUARTIC RECURRENCE EQUATION. Predrag Terzic Podgorica, Montenegro

Turán s problem and Ramsey numbers for trees. Zhi-Hong Sun 1, Lin-Lin Wang 2 and Yi-Li Wu 3

On generalizing happy numbers to fractional base number systems

QUADRATIC RECIPROCITY

Almost All Palindromes Are Composite

Characteristics of Fibonacci-type Sequences

When do Fibonacci invertible classes modulo M form a subgroup?

Lenny Jones Department of Mathematics, Shippensburg University, Shippensburg, Pennsylvania Daniel White

An Estimate For Heilbronn s Exponential Sum

Primality tests for specific classes ofn = k 2 m ±1

Introduction to Lucas Sequences

LARGE GAPS BETWEEN CONSECUTIVE PRIME NUMBERS CONTAINING SQUARE-FREE NUMBERS AND PERFECT POWERS OF PRIME NUMBERS

Equivalence of Pepin s and the Lucas-Lehmer Tests

#A45 INTEGERS 12 (2012) SUPERCONGRUENCES FOR A TRUNCATED HYPERGEOMETRIC SERIES

ON THE DISTRIBUTION OF THE PARTIAL SUM OF EULER S TOTIENT FUNCTION IN RESIDUE CLASSES

Math 261 Exam 2. November 7, The use of notes and books is NOT allowed.

Math 104B: Number Theory II (Winter 2012)

ON FREIMAN S 2.4-THEOREM

arxiv:math/ v2 [math.nt] 21 Oct 2004

DIRICHLET S THEOREM ON PRIMES IN ARITHMETIC PROGRESSIONS. 1. Introduction

Department of Mathematics, Nanjing University Nanjing , People s Republic of China

PRIME NUMBERS YANKI LEKILI

The sum of squares for primes

p-adic Properties of Lengyel s Numbers

Maths 4 Number Theory Notes 2012 Chris Smyth, University of Edinburgh ed.ac.uk

Notes on Systems of Linear Congruences

p-regular functions and congruences for Bernoulli and Euler numbers

Zhi-Wei Sun Department of Mathematics, Nanjing University Nanjing , People s Republic of China

Dedekind sums and continued fractions

The inverse Goldbach problem

Algebraic number theory LTCC Solutions to Problem Sheet 2

6 Binary Quadratic forms

Jonathan Sondow 209 West 97th Street, New York, New York

CONGRUENCE PROPERTIES MODULO 5 AND 7 FOR THE POD FUNCTION

Infinitely Many Quadratic Diophantine Equations Solvable Everywhere Locally, But Not Solvable Globally

CONGRUENCES SATISFIED BY APÉRY-LIKE NUMBERS

1. INTRODUCTION. Fn 2 = F j F j+1 (1.1)

THE DIOPHANTINE EQUATION x 4 +1=Dy 2

March 4, :21 WSPC/INSTRUCTION FILE FLSpaper2011

The Hasse Minkowski Theorem Lee Dicker University of Minnesota, REU Summer 2001

Aliquot sums of Fibonacci numbers

arxiv:math/ v1 [math.nt] 3 Dec 2004

ANALYTIC NUMBER THEORY AND DIRICHLET S THEOREM

A CONCRETE EXAMPLE OF PRIME BEHAVIOR IN QUADRATIC FIELDS. 1. Abstract

BEST POSSIBLE DENSITIES OF DICKSON m-tuples, AS A CONSEQUENCE OF ZHANG-MAYNARD-TAO

Corollary 4.2 (Pepin s Test, 1877). Let F k = 2 2k + 1, the kth Fermat number, where k 1. Then F k is prime iff 3 F k 1

1. Introduction. Let P and Q be non-zero relatively prime integers, α and β (α > β) be the zeros of x 2 P x + Q, and, for n 0, let

1. Introduction. = (2n)! (n N)

Ernie Croot 1. Department of Mathematics, Georgia Institute of Technology, Atlanta, GA Abstract

Quadratic Residues, Quadratic Reciprocity. 2 4 So we may as well start with x 2 a mod p. p 1 1 mod p a 2 ±1 mod p

Divisibility in the Fibonacci Numbers. Stefan Erickson Colorado College January 27, 2006

University of Bristol - Explore Bristol Research. Peer reviewed version. Link to published version (if available): 10.

MODULAR FORMS, HYPERGEOMETRIC FUNCTIONS AND CONGRUENCES

On arithmetic functions of balancing and Lucas-balancing numbers

Predictive criteria for the representation of primes by binary quadratic forms

Introductory Number Theory

Primes - Problem Sheet 5 - Solutions

192 VOLUME 55, NUMBER 5

EXPLICIT PRIMALITY CRITERIA FOR h 2k ± 1

Jacobi symbols and application to primality

On the irreducibility of a polynomial associated with the Strong Factorial Conjecture

Fermat s Little Theorem. Fermat s little theorem is a statement about primes that nearly characterizes them.

Nanjing Univ. J. Math. Biquarterly 32(2015), no. 2, NEW SERIES FOR SOME SPECIAL VALUES OF L-FUNCTIONS

HENSEL S LEMMA KEITH CONRAD

Transcription:

The Fibonacci Quarterly 44006, no., 11-130. PRIMALITY TESTS FOR NUMBERS OF THE FORM k m ± 1 Zhi-Hong Sun eartment of Mathematics, Huaiyin Teachers College, Huaian, Jiangsu 3001, P.R. China E-mail: zhsun@hytc.edu.cn Homeage: htt://www.hytc.edu.cn/xsjl/szh Abstract. Let k, m Z, m, 0 < k < m and - k. In the aer we give a general rimality criterion for numbers of the form k m ± 1, which can be viewed as a generalization of the Lucas-Lehmer test for Mersenne rimes. In articular, for k = 3, 9 we obtain exlicit rimality tests, which are simler than current known results. We also give a new rimality test for Fermat numbers and criteria for 9 4n+3 ± 1, 3 0n+6 ± 1 or 3 36n+6 ± 1 to be twin rimes. 1. Introduction. For nonnegative integers n, the numbers F n = n +1 are called the Fermat numbers. In 1878 Pein showed that F n n 1 is rime if and only if 3 Fn/ mod F n. For rimes, let M = 1. The famous Lucas-Lehmer test states that M is a Mersenne rime if and only if M S, where {S n } is given by S 0 = 4 and S k+1 = Sk k = 0, 1,,.... In [1], [], [6] and [9], W. Borho, W. Bosma, H. Riesel and H.C. Williams extended the above two tests to numbers of the form k m ± 1, where 0 < k < m and k is odd. For examle, we have the following known results. Theorem 1.1 Let = k m + 1 with m, 0 < k < m, k and Z with the Jacobi symbol =. Then is rime if and only if / mod. In articular, if 3 k we may take = 3. Let {S n x} be given by S 0 x = x and S k+1 x = S k x k 0. Then we have Theorem 1. Let = k m 1 with m 3, 0 < k < m and k ±1 mod 6, and let x = + 3 k + 3 k. Then is rime if and only if S m x. Here we oint out that the x in Theorem 1. is also given by x = k/ k r=0 k r k r r r 4 k r. In this aer we rove the following main result. 1.1 For m let = k m ± 1 with 0 < k < m and k odd. If b is an integer such that +b = b =, then is rime if and only if S m k/ k k r r=0 k r r r b k r. As alications of 1.1 we have many new simle rimality criteria for numbers of the form k m ± 1k = 1, 3, 9. Here are some tyical results. 1. For n 1 the Fermat number F n is rime if and only if F n S n. 1

1.3 Let m 3 be a ositive integer. If m 0 mod or m, 11 mod 1, then 9 m 1 is comosite. If m 1, 3, 7, 9 mod 1, then 9 m 1 is rime if and only if 9 m 1 S m x, where 778 if m 1, 9 mod 1, x = 1330670 if m 3 mod 1, 186871698 if m 7 mod 1. 1.4 Let n be a nonnegative integer. Then 9 4n+3 1 and 9 4n+3 + 1 are twin rimes if and only if 9 4n+3 1 S 4n+1 367 10674981. Throughout this aer we use the following notations: Z the set of integers, N the set of ositive integers, d the Jacobi symbol, m, n the greatest common divisor of m and n, S n x the sequence defined by S 0 x = x and S k+1 x = S k x k 0.. Basic Lemmas. For P, Q Z the Lucas sequences {U n P, Q} and {V n P, Q} are defined by and U 0 P, Q = 0, U 1 P, Q = 1, U n+1 P, Q = P U n P, Q QU n P, Q n 1 V 0 P, Q =, V 1 P, Q = P, V n+1 P, Q = P V n P, Q QV n P, Q n 1. Let = P 4Q. It is well known that U n P, Q = 1 { P + n P n } 0.1 and P + n P n. V n P, Q = +. Set U n = U n P, Q and V n = V n P, Q. From the above one can easily check that From [] we also have V n = P U n QU n = U n+1 P U n..3 U n = U n V n, V n = V n Q n and V n U n = 4Q n..4 If is an odd rime not dividing Q, it is well known that [] U P, Q 0 mod and U P, Q mod.. Let be an odd rime such that Q = 1 and. following stronger congruence see [4] or [9,.8]:. H. Lehmer roved the U /P, Q 0 mod..6 efinition.1 Let P, Q Z, and be an odd rime such that Q. efine r P, Q to be the smallest ositive integer n such that U n P, Q. From [, IV.17] or [9,.87] we know that U m P, Q if and only if r P, Q m. This can also be deduced from [9, 4..9,.81]. Using. and.6 we have

Lemma.1. Let P and Q be integers, = P 4Q, and let be an odd rime such that Q. Then r P, Q. Moreover, if Q = 1 and, then r P, Q. From.4 and induction we have Lemma.. Let P, Q Z, Q 0 and n N. Then S n P Q = Q n V np, Q. Lemma.3. Let P, Q Z and n N. Let be an odd rime such that QP 4Q and S n P/ Q 0 mod. Then P 4Q mod n+3+ Q /. Proof. In view of Lemma. we have V np, Q and so U n+1p, Q by.4. From.4 we see that U np, Q. Thus, r P, Q = n+1. This together with Lemma.1 gives the result. Lemma.4. Let P, Q Z and n N, and let > 1 be an odd integer such that, QP 4Q = 1 and S n P/ Q 0 mod. Let α = n + or n + 1 according as Q is a square or not. If < α 1, then is rime. Proof. If is comosite, then has a rime divisor q such that q. Since q and S n P/ Q 0 mod we see that S n P/ Q 0 mod q. It follows from Lemma.3 that q P 4Q q mod n+3+ Q q / and so q n+3+ Q q / 1. Thus, q n+3+ Q q / 1. This contradicts the assumtion. So must be rime. Let [x] denote the greatest integer not exceeding x. Using induction one can easily rove Lemma. [9, 4..36]. Let P, Q Z and n N. Then V n P, Q = [n/] r=0 n n r n r r P n r Q r. 3. The general rimality test for numbers of the form k m ± 1. Lemma 3.1. Let P, Q Z and = P 4Q. Let be an odd rime such that Q. Suose Q = 1 and so c Q mod for some integer c. Then P + c i V P, Q P + c ii V + P, Q P Proof. For b, c Z it is clear that 1 c mod, c mod. b ± b 4bc b c ± b c 4c = b. 3

Thus, alying. we see that V n b, bc = b n V n b c, c. 3.1 Hence, if is an odd rime such that b 4bc and ε = b 4bc, by [9, 4.3.4] we obtain V ε b c, c = b ε V ε b, bc b ε 1 ε bc = b 1 ε c b c 1 ε mod. Now suose b = P + c and c Q mod. Then b 4bc = P 4c P 4Q mod and so ε =. From the above we see that V ε P, Q V ε b c, c P + c 1 ε c mod. This roves i. From.1 and. we see that V + /P, Q = 1 { P V Q 1 / Thus, by i and.6 we obtain V + /P, Q 1 P Q 1 / P + c /P, Q + 1 c P U /P, Q }. P + c c mod. This roves ii and hence the roof is comlete. Remark 3.1 Lemma 3.1 can also be easily deduced from [7, Lemma 3.4] or [8, Lemma 3.1]. Lemma 3.. Let P, Q Z and be an odd rime with QP 4Q. = 1 and so c Q mod for some integer c. Then Q Suose V 4 P, Q 0 mod if and only if Q + cp Q cp = =. Proof. From Lemma 3.1 we have V P, Q P 1 P +c c c P +c mod if 4Q P = 1, 1+ 4 mod if 4Q P =.

Thus, alying.4 we obtain V 4 P, Q = V c 1 c 1+ P, Q + Q 4 V { P +c { P P +c P, Q + c 1 c + c } mod if 4Q P = 1, + c c } mod if 4Q P =. Since P 4Q and c Q mod we see that P P +c c c mod. Hence, V 4 This roves the lemma. P, Q 4Q P P + c = 1 and Q + cp Q cp = =. Lemma 3.3. Suose P, Q, k, n Z with k, n 0. Then V kn P, Q = V n V k P, Q, Q k. Proof. Set V m = V m P, Q. From [9, 4..8] we know that c = V r+k = V k V r Q k V r k and so V km+1 = V k V km Q k V km. Now we rove the result by induction on n. Clearly the result is true for n = 0, 1. Suose the result holds for 1 n m. By the above and the inductive hyothesis we have V km+1 = V k V m V k, Q k Q k V m V k, Q k = V m+1 V k, Q k. So the result holds for n = m + 1. Hence, the lemma is roved by induction. Theorem 3.1. For m {, 3, 4,... } let = k m ± 1 with 0 < k < m and k odd. If b, c Z,, c = 1 and c+b = c b = c, then is rime if and only if S m x, where x = c k V k b, c = k/ r=0 r b/c k r. Proof. Set U n = U n b, c and V n = V n b, c. From Lemmas 3.3,. and. we have k k r k r r V /4 = V k m = V m V k, c k = c k m S m V k /c k = c k m S m x. If is rime, it follows from Lemma 3. that V /4. So S m x 0 mod. Now suose S m x = S m V k /c k 0 mod. From.4 we have Vn b 4c Un = 4c n. Thus, U n, V n 4c n. As, c = 1 and V k m we find, U k m = 1. It is well known that see [] and [9] U r U rn for any ositive integers

r and n. Thus, U k U k m and so, U k = 1. Hence,, V k 4ck = 1 by.4. Set P = V k, Q = c k and n = m. If 0 < k < m, then clearly = k m ±1 < m. By Lemma.4, is rime. If = m 1 m ± 1 is comosite, by Lemma.3 we know that any rime divisor q of satisfying q ±1 mod m. It is easy to check that m ± 1. Thus m 1 m + 1. This is imossible. So is rime. This comletes the roof. Taking b = 4 and c = 1 in Theorem 3.1 we obtain the Lucas-Lehmer test for Mersenne rimes and Theorem 1.. From Theorem 3.1 we also have the following criterion for Fermat rimes, which is similar to the Lucas-Lehmer test. Corollary 3.1. For n N the Fermat number F n is rime if and only if F n S n. Proof. Since F n mod 3 and F n 3, mod 7 we see that 3 = F n 7 = and = F n F n 3 F n 7 =. Thus utting = F n, k = 1, b = and c = 1 in Theorem 3.1 we obtain the result. Remark 3. In 1960 K. Inkeri[3] showed that the Fermat number F n n is rime if and only if F n S n 8. 4. The rimality criterion for numbers of the form 9 m ± 1. In the section we use Theorem 3.1 to obtain exlicit rimality criterion for numbers of the form 9 m ± 1. Theorem 4.1. Let m 3 be a ositive integer. If m 0 mod or m, 11 mod 1, then 9 m 1 is comosite. If m 1, 3, 7, 9 mod 1, then 9 m 1 is rime if and only if 9 m 1 S m x, where 778 if m 1, 9 mod 1, x = 1330670 if m 3 mod 1, 186871698 if m 7 mod 1. Proof. Clearly the result is true for m = 3. Now assume m 4. If m = n for some integer n, then 9 m 1 = 3 n + 13 n 1 and so 9 m 1 is comosite. If m, 11 mod 1, then 7 9 m 1 since 3 1 mod 7. If m 1, 3, 7, 9 mod 1, once setting 3 if m 1, 9 mod 1, b = if m 3 mod 1, 11 if m 7 mod 1 one can easily check that + b 9 m = 1 From Lemma. we know that b 9 m =. 1 V 9 b, 1 = b 9 9b 7 + 7b 30b 3 + 9b = b 3 3bb 3 3b 3 = x. Alying Theorem 3.1 in the case c = 1 we get the result. In a similar way, alying Theorem 3.1 we have 6

Theorem 4.. Let m 3 be a ositive integer. If m 0 mod 4, then 9 m + 1. If m 10 mod 1, then 13 9 m + 1. If m mod 8, then 17 9 m + 1. If m 0 mod 4, m 10 mod 1 and m mod 8, then 9 m + 1 is rime if and only if 9 m + 1 S m x, where x is given by Table 4.1. Table 4.1 m b x = V 9 b, 1 = b 3 3bb 3 3b 3 m 1, 9 mod 4 37 04 4493761 m mod 1 8 1868 4780941 m 3, 6, 7 mod 1 1 169 86861 m 11 mod 1 3 367 10674981 m 17, 6 mod 7 10 33740 33740 3 m 41 mod 7 167 167 3 601 167 3 601 3 Remark 4.1 For m 4 let = 9 m + 1 and if m 0,, 3 mod 4, 7 if m 1, 9, 13, 1 mod 4, = 17 if m mod 4, 41 if m 17 mod 4. In [] W. Bosma showed that is rime if and only if / mod. Theorem 4.3. Let n be a ositive integer. Then 9 4n+3 1 and 9 4n+3 + 1 are twin rimes if and only if 9 4n+3 1 S 4n+1 367 10674981. Proof. Let b = 3. Then + b = 17 and b = 3. Since 3 9 4n+3 ±1 = 1 and 4 mod 17 we find 9 4n+3 ±1 = + b 17 9 4n+3 ± 1 4 n ± 1 9 4n+3 = ± 1 9 4n+3 = = =, ± 1 17 17 b 9 4n+3 ± 1 7 ± 1 9 4n+3 = ± 1 9 4n+3 = ± = ± =. ± 1 Thus, alying Theorem 3.1 we see that 9 4n+3 ±1 is rime if and only if 9 4n+3 ±1 S 4n+1 V 9 b, 1. To see the result, we note that 9 4n+3 + 1, 9 4n+3 1 = 1 and that V 9 b, 1 = b 9 9b 7 + 7b 30b 3 + 9b = b 3 3bb 3 3b 3 = 367 10674981. Remark 4. If 9 m ± 1m > 1 are twin rimes, then m 3 mod 4. If m 11 mod 1, then 7 9 m and so 9 m ±1 cannot be twin rimes. If m 3 mod 1, by taking b = 1 and c = 1 in Theorem 3.1 we can rove that 9 m and 9 m +1 are twin rimes if and only if 9 m 1 S m 484396081. It is known that 9 m 1 and 9 m + 1 are twin rimes when m = 1, 3, 7, 43, 63, 11. o there exist only finitely many such twin rimes? 7

. The rimality criterion for numbers of the form 3 m ± 1. Theorem.1. Let m 3 be a ositive integer such that m mod 10080. If m 1 mod 4, m 46 mod 7 or m 86 mod 1440, then 3 m 1 is comosite. If m 1 mod 4, m 46 mod 7 and m 86 mod 1440, then 3 m 1 is rime if and only if 3 m 1 S m x, where x is given by Table.1. Table.1 m b x = V 3 b, 1 = b 3 3b m 0, 3 mod 4 3 18 m, 6 mod 1 110 m 10 mod 4 1 3330 m mod 7 17 486 m 70 mod 144 19 707731 m 14 mod 88 63 63 3 3 63 m 86, 74 mod 1440 9 70 m 110 mod 1440 9 430 m 1438, 878, 4318, 7198 mod 10080 7 1960 m 78 mod 10080 41 68798 m 8638 mod 10080 1 1970 Proof. If m 1 mod 4, then 3 m ; if m 46 mod 7, then 37 3 m ; if m 86 mod 1440, then 11 3 m. Now suose m 1 mod 4, m 46 mod 7 and m 86 mod 1440. Let b be given by Table.1. One can easily check that + b b 3 m = 1 3 m =. 1 Thus the result follows from Theorem 3.1 by taking c = 1 and = 3 m 1. Remark.1 If m N and m 0, mod 3, in 1993 W. Bosma[] showed that 3 m is rime if and only if 3 m 1 S m 1004 3m. In a similar way, using Theorem 3.1 we can rove Theorem.. Let m 3 be a ositive integer such that 180 m. If m 1 mod 3, then 7 3 m + 1; if m 3 mod 4, then 3 m + 1; if m mod 1, then 13 3 m + 1; if m 144 mod 180, then 61 3 m + 1. If m 1 mod 3, m 3 mod 4, m mod 1 and m 144 mod 180, then 3 m + 1 is rime if and only if 3 m + 1 S m x, where x is given by Table.. Table. m b x = V 3 b, 1 = b 3 3b m mod 1 1 169 m 6 mod 1 8 1868 m 8 mod 1 37 04 m 9 mod 1 3 367 m 1, 4 mod 36 10 33740 m 36 mod 180 07 88691 m 7 mod 180 64 619 m 108 mod 180 8 8 78991 8

Theorem.3. Let n be a nonnegative integer. Then 3 0n+6 1 and 3 0n+6 + 1 are twin rimes if and only if 3 0n+6 1 S 0n+4 7396. Proof. Let b = 4. Then + b = 44 and b = 40. Since 3 0n+6 ±1 = 1 and mod 11 we find + b 11 3 0n+6 ± 1 6 ± 1 3 0n+6 = ± 1 3 0n+6 = ± = ± =, ± 1 11 11 b 3 0n+6 ± 1 1 ± 1 3 0n+6 = ± ± 1 3 0n+6 = ± = ± =. ± 1 Thus, alying Theorem 3.1 in the case b = 4 and c = 1 we see that 3 0n+6 ± 1 is rime if and only if 3 0n+6 ± 1 S 0n+4 V 3 b, 1. To see the result, we note that 3 0n+6 + 1, 3 0n+6 1 = 1 and that V 3 b, 1 = b 3 3b = 4 3 3 4 = 7396. In the same way, utting b = 17 and c = 1 in Theorem 3.1 we get Theorem.4. Let n be a nonnegative integer. Then 3 36n+6 1 and 3 36n+6 + 1 are twin rimes if and only if 3 36n+6 1 S 36n+4 486. References k r mod m 1. W. Borho, Grosse Primzahlen und befreundete Zahlen: über den Lucas-test und Thabit Regeln, Mitt. Math. Ges. Hamburg 1983, 3-6.. W. Bosma, Exlicit rimality criteria for h k ± 1, Math. Com. 61 1993, 97-109, MR94c:1100. 3. K. Inkeri, Tests for rimality, Ann. Acad. Sci. Fenn. Ser. A 1 1960, 1-19, MR#7984. 4.. H. Lehmer, An extended theory of Lucas functions, Ann. Math. 31 1930, 419-448.. P. Ribenboim, The Book of Prime Number Records, nd ed., Sringer, Berlin, 1989,. 44-0. 6. H. Riesel, Lucasian criteria for the rimality P of N = h n 1, Math. Com. 3 1969, 869-87. n 7. Z.-H. Sun, Combinatorial sum k and its alications in number theory III, J. Nanjing Univ. Math. Biquarterly 1 199, 90-10, MR96g:11017. 8., Values of Lucas sequences modulo rimes, Rocky Moun. J. Math. 33 003, 113-114. 9. H.C. Williams, Édouard Lucas and Primality Testing, Canadian Mathematical Society Series of Monograhs and Advanced Texts V ol., Wiley, New York, 1998,. 74-9. AMS Classification Numbers: 11Y11,11B39,11B0. 9