SEARCH FOR WIEFERICH PRIMES THROUGH THE USE OF PERIODIC BINARY STRINGS. Jan Dobeš, Miroslav Kureš

Similar documents
4 Number Theory and Cryptography

3 The fundamentals: Algorithms, the integers, and matrices

Arithmetic Statistics Lecture 1

UNIQUE-PERIOD PRIMES. Chris K. Caldwell 5856 Harry Daniels Road Rives, Tennessee

Wilson s Theorem and Fermat s Little Theorem

An integer p is prime if p > 1 and p has exactly two positive divisors, 1 and p.

SQUARE PATTERNS AND INFINITUDE OF PRIMES

On the Composite Terms in Sequence Generated from Mersenne-type Recurrence Relations

SUMS OF SQUARES WUSHI GOLDRING

#A9 INTEGERS 12 (2012) PRIMITIVE PRIME DIVISORS IN ZERO ORBITS OF POLYNOMIALS

Chapter 9 Mathematics of Cryptography Part III: Primes and Related Congruence Equations

Elementary Number Theory

Introduction to Number Theory

History of Mathematics

ON DIVISIBILITY OF SOME POWER SUMS. Tamás Lengyel Department of Mathematics, Occidental College, 1600 Campus Road, Los Angeles, USA.

CONGRUENCES MODULO SQUARES OF PRIMES FOR FU S k DOTS BRACELET PARTITIONS

Part II. Number Theory. Year

cse 311: foundations of computing Fall 2015 Lecture 11: Modular arithmetic and applications

Acta Mathematica Universitatis Ostraviensis

7. Prime Numbers Part VI of PJE

Summary Slides for MATH 342 June 25, 2018

CSE 311: Foundations of Computing. Lecture 12: Two s Complement, Primes, GCD

ECEN 5022 Cryptography

LARGE PRIME NUMBERS (32, 42; 4) (32, 24; 2) (32, 20; 1) ( 105, 20; 0).

cse 311: foundations of computing Fall 2015 Lecture 12: Primes, GCD, applications

PREPARATION NOTES FOR NUMBER THEORY PRACTICE WED. OCT. 3,2012

Know the meaning of the basic concepts: ring, field, characteristic of a ring, the ring of polynomials R[x].

Primality Testing. 1 Introduction. 2 Brief Chronology of Primality Testing. CS265/CME309, Fall Instructor: Gregory Valiant

The New Book of Prime Number Records

arxiv: v1 [math.nt] 1 Sep 2014

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

Adam Blank Spring 2017 CSE 311. Foundations of Computing I. * All slides are a combined effort between previous instructors of the course

MATH 433 Applied Algebra Lecture 4: Modular arithmetic (continued). Linear congruences.

CHARACTERIZING THE NUMBER OF m ARY PARTITIONS MODULO m Mathematics Subject Classification: 05A17, 11P83

Math 412: Number Theory Lecture 3: Prime Decomposition of

10 Problem 1. The following assertions may be true or false, depending on the choice of the integers a, b 0. a "

Solutions of the Diophantine Equation 2 x + p y = z 2 When p is Prime

Disproof MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Disproof Fall / 16

Intermediate Math Circles March 6, 2013 Number Theory I

Sloping Binary Numbers: A New Sequence Related to the Binary Numbers

Chapter 1. Number of special form. 1.1 Introduction(Marin Mersenne) 1.2 The perfect number. See the book.

Applied Cryptography and Computer Security CSE 664 Spring 2018

NUMBER SYSTEMS. Number theory is the study of the integers. We denote the set of integers by Z:

Contest Number Theory

On the characterization of canonical number systems. Author(s) Scheicher, Klaus; Thuswaldner, Jorg M. Osaka Journal of Mathematics. 41(2) P.327-P.

Number Theory Homework.

CS483 Design and Analysis of Algorithms

p = This is small enough that its primality is easily verified by trial division. A candidate prime above 1000 p of the form p U + 1 is

Number Theory. CSS322: Security and Cryptography. Sirindhorn International Institute of Technology Thammasat University CSS322. Number Theory.

1. Algebra 1.7. Prime numbers

Definition 6.1 (p.277) A positive integer n is prime when n > 1 and the only positive divisors are 1 and n. Alternatively

Number Theory. Jason Filippou UMCP. ason Filippou UMCP)Number Theory History & Definitions / 1

Prime Numbers in Generalized Pascal Triangles

Lecture 6: Introducing Complexity

Basic elements of number theory

Basic elements of number theory

Primality Testing- Is Randomization worth Practicing?

Dixon s Factorization method

On Anti-Elite Prime Numbers

arxiv: v1 [math.co] 21 Sep 2015

Sieving 2m-prime pairs

Topics in Computer Mathematics

MINIMAL GENERATING SETS OF GROUPS, RINGS, AND FIELDS

Continuing discussion of CRC s, especially looking at two-bit errors

Math 319 Problem Set #2 Solution 14 February 2002

NUMBER THEORY. Anwitaman DATTA SCSE, NTU Singapore CX4024. CRYPTOGRAPHY & NETWORK SECURITY 2018, Anwitaman DATTA

Pseudoprime Statistics to 10 19

ARITHMETIC OF THE 13-REGULAR PARTITION FUNCTION MODULO 3

Lucas Lehmer primality test - Wikipedia, the free encyclopedia

A MATRIX GENERALIZATION OF A THEOREM OF FINE

Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Spring 2006

With Question/Answer Animations. Chapter 4

CS March 17, 2009

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

The Impossibility of Certain Types of Carmichael Numbers

CPSC 467: Cryptography and Computer Security

CYCLES AND FIXED POINTS OF HAPPY FUNCTIONS

PRIMES Math Problem Set

Number Tree LCM HCF Divisibility Rules Power cycle Remainder Theorem Remainder of powers a n b n Last and Second last digit Power of Exponents Euler s

OEIS A I. SCOPE

EULER S THEOREM KEITH CONRAD

CS1800 Discrete Structures Final Version A

Journal of Number Theory

Counting Prime Numbers with Short Binary Signed Representation

9 Modular Exponentiation and Square-Roots

On New Identities For Mersenne Numbers

Fibonacci Pseudoprimes and their Place in Primality Testing

arxiv: v1 [math.co] 24 Jan 2017

Numbers, Groups and Cryptography. Gordan Savin

Solutions to Problem Set 3 - Fall 2008 Due Tuesday, Sep. 30 at 1:00

FACTORS OF GENERALIZED FERMAT NUMBERS

Mersenne and Fermat Numbers

Congruences for Fishburn numbers modulo prime powers

a the relation arb is defined if and only if = 2 k, k

On the Number of Trace-One Elements in Polynomial Bases for F 2

Discrete Structures, Final Exam

MATH 361: NUMBER THEORY FOURTH LECTURE

Appending Digits to Generate an Infinite Sequence of Composite Numbers

Algebra for error control codes

Congruences modulo high powers of 2 for Sloane s box stacking function

Transcription:

Serdica J. Computing 4 (2010), 293 300 SEARCH FOR WIEFERICH PRIMES THROUGH THE USE OF PERIODIC BINARY STRINGS Jan Dobeš, Miroslav Kureš Abstract. The result of the distributed computing project Wieferich@Home is presented: the binary periodic numbers of bit pseudo-length j 3500 obtained by replication of a bit string of bit pseudo-length k 24 and increased by one are Wieferich primes only for the cases of 1092 or 3510. 1. Introduction. Let p be a Wieferich prime. A main motivation for this research is the periodicity of the binary expression of p 1 (for known Wieferich primes). The question of whether or not this phenomenon necessarily follows from properties of Wieferich primes is open. If we scan and test such periodic numbers, a need of knowledge about their quantity emerges, especially for computer processing. We have answered the problem of a number of B- periodic numbers of given bit pseudo-length n in Proposition 1 and present two tables with some values. ACM Computing Classification System (1998): I.1.4, J.2. Key words: Wieferich prime, periodic bit string, distributed computing.

294 Jan Dobeš, Miroslav Kureš After a brief introduction to Wieferich primes, the main result is presented. Within the distributed computing project Wieferich@Home, the authors have proved (case-by-case, by computer) that the binary periodic numbers of bit pseudo-length j 3500 obtained by replication of a bit string of bit pseudolength k 24 and increased by one are Wieferich primes only for the cases of 1092 or 3510; i.e., there is no new Wieferich prime with the described property in the scanned area. 2. Number of periodic strings. The numbers c(n) of aperiodic binary strings of length n, n N, are tabulated in the OEIS database as the sequence A0275375, see [4]. Nevertheless, the explicit formula is also known, cf. e.g. [3]: c(n) = µ(d)2 n d, d n where µ is the Möbius function. Let us consider a binary string a of the form a = a k a k 1...a 1, a 1,...,a k {0,1}, in which a 1 = 0 and at least one value is non-zero. Hereafter a number x N will be called a B-periodic number, if its binary representation x is a replication of such a string: a...a = x = x j x j 1... x 1, x 1,...,x j {0,1}. Left zeros can occur in x and j is a proper multiple of k, j > k. The number j will be called the bit pseudo-length of x (as the true bit length can be lower just because of possible left zeros). Example 1. The smallest B-periodic number is 10, because its binary representation is 10 10. Further examples of B-periodic numbers are e.g. 1092 with binary representation and 3510 with binary representation 0100 0100 0100 110 110 110 110.

Search for Wieferich Primes through the Use of Periodic Binary Strings 295 Let us denote by τ(n) the number of B-periodic numbers of bit pseudolength n. It is evident that τ(n) = 0 if n is a prime (and, of course, if n = 1); hence the first non-zero value for τ(n) arises with n = 4. Further, let us denote T(n) as a cumulative τ(n), i.e. T(n) = n τ(i). Proposition 1. The number of B-periodic numbers of bit pseudo-length n equals i=4 τ(n) = 1 2 n µ(d)2 n d 2. 2 d n Proof. Very easy: the number of all periodic strings of bit pseudolength n must be 2 n c(n). Then we exclude two periodic strings obtained by replication of one digit strings: the string 111... 1 (its last digit is not 0) and the string 000... 0 (it does not contain any 1). Exactly half of remaining periodic strings have 0 as their last digit. Hence τ(n) = 2n c(n) 2. 2 So we can present the values for small n. n τ(n) T(n) 4 1 1 5 0 1 6 4 5 7 0 5 8 7 12 9 3 15 10 16 31 11 0 31 12 37 68 And now, some higher (approximate) values:

296 Jan Dobeš, Miroslav Kureš n τ(n) T(n) 500 9.0463 10 74 1.8093 10 75 1000 1.6367 10 150 3.2734 10 150 1500 2.9612 10 225 5.9224 10 225 2000 5.3576 10 300 1.0715 10 301 2500 9.6931 10 375 1.9386 10 376 3000 1.7537 10 451 3.5075 10 451 3500 3.1729 10 526 6.3459 10 526 3. Wieferich primes. A Wieferich prime is a prime p which is a solution to the congruence equation 2 p 1 1 (mod p 2 ). Arthur Wieferich has demonstrated a relation between the described primes and the most famous mathematical question (answered by Andrew Wiles on June 23, 1993), Fermat s Last Theorem. Theorem 1 (Wieferich 1909). Let p be an odd prime, and let a, b, c be non-zero integers such that a p + b p + c p = 0. Furthermore, assume that p does not divide the product abc. Then p is a Wieferich prime. There are only two known Wieferich primes, p 1 = 1093 and p 2 = 3511; as we have seen, the numbers p 1 1 and p 2 1 are both B-periodic. This interesting property has been observed by Wells Johnson [2]. Furthermore, it is not known as yet if there exist infinitely or finitely many Wieferich primes (or even only these two). So a conjecture that all Wieferich primes have this periodic property is reasoned and dramatic. Let us observe: Example 2. It is not true that a B-periodic number increment by one is always a prime number. We have 110 110 = 54 as the fifth smallest B-periodic number and 54 + 1 is not a prime.

Search for Wieferich Primes through the Use of Periodic Binary Strings 297 Near-Wieferich primes are defined as primes having the form Z + Ap (mod p 2 ) with both Z and A reduced modulo p values Z = ±1 and A 100. (128 instead of 100 appears in the Wieferich@Home application.) 4. Search for Wieferich primes: the periodic test in Wieferich@Home. The Wieferich prime 1093 was discovered by Waldemar Meissner in 1913 and the Wieferich prime 3511 was discovered by Nicolaas G. W. H. Beeger in 1922. There are projects searching for new Wieferich primes. The newest result is: Theorem 2 (Dorais and Klyve 2009, [1]). Up to 6.7 10 15, only 1093 and 3511 are Wieferich primes. The authors have produced their own original project Wieferich@Home, [5], as a distributed computing project publicly launched on December 29, 2007. The application contains two search algorithms: the complete test and the periodic test. While the complete test tests linearly each successive prime, the periodic test takes B-periodic numbers and checks if these numbers satisfy the congruence condition. The algorithm for the periodic test works with numbers of bit pseudo-lengths up to 3500. It follows that there are T(3500) 6.3459 10 526 B-periodic numbers to scan. The non-primality mentioned in Example 2 suggests a sieving of these numbers. 5. Quick Division Test (QDT). Testing B-periodic numbers without pre-test filters of non-prime numbers could slow down the computing and decrease the count of tested B-periodic numbers. These cases can improve by the following algorithm. The Quick Division Test (QDT) algorithm with a bit parser prepares numbers (j-bit pseudo-length of B-periodic numbers) for the congruence equation (CEq in algorithm). The array M n contains the first 9 Mersenne primes. Finally, B-periodic numbers are increased by 1 and these potential prime numbers are tested by the congruence equation. Require: B-periodic number Ensure: true, if input is not divisible by 3, 5, 7, 31, 127,..., 2305843009213693951 if B is not divisible by 5 then for i = 1 to 9 do e M n [i]

298 Jan Dobeš, Miroslav Kureš c n[i] s 1 u 0 d 0 for j = 1 to the bit pseudo-length(b) do t bit(b,j) if s c then d d + t 2 s 1 s s + 1 else s 2 u u + d d t end for if (u + d) mod e 0 then return f alse end for else return f alse return true 6. Periodic Test (PT). As to the pseudo-code of the algorithm, B- periodic numbers of bit pseudo-length 50 n 3500 are tested. B-periodic numbers of bit pseudo-length n < 50 are ignored, because these primes were tested already by usual linear tests. The congruence equation (CEq) for our purposes returns attributes: 1 Wieferich prime, 2 near Wieferich prime. For processing big integers of bit pseudo-length i > 64 we can use multiple-precision arithmetic. Require: B period, m period count {big integer} {built-up B-period number from m-period B} p Bnumber(B,m)

Search for Wieferich Primes through the Use of Periodic Binary Strings 299 n bitlength(p) while n 3500 do p Bnumber(B,m) {make odd number} p p + 1 n bitlength(p) {numbers with pseudo-length n 50 were already tested} if 50 n 3500 then {Quick Division Test} if QDT(p) then {C: 1 Wieferich prime, 2 near Wieferich prime} C CEq(p) {next B-period} m m + 1 end while We repeat that numbers of a bit pseudo-length up to 50 were scanned by several authors, see e.g. [1] and references mentioned there. With the aid of the periodic test, the first findings for a publishing present an improvement summarized in the following theorem. Theorem 3. Let n be a B-periodic number of a bit pseudo-length j 3500 obtained by a replication of a bit string of bit pseudo-length k 24. If n+1 is a Wieferich prime, then n = 1092 or n = 3510. REFERENCES [1] Dorais F. G., D. W. Klyve. Near Wieferich Primes up to 6.7 10 15. http://www-personal.umich.edu/~dorais/docs/wieferich.pdf [2] Johnson W. On the non-vanishing Fermat quotients. Journal für die reine und angewandte Mathematik, 292 (1977), 196 200. [3] Lothaire M. Combinatorics on words. Addison-Wesley, Reading MA, 1983.

300 Jan Dobeš, Miroslav Kureš [4] The On-Line Encyclopedia of Integer Sequences. http://www.research.att.com/~njas/sequences/ [5] Wieferich@Home. http://www.elmath.org Jan Dobeš Software Development Jiráskova 222/V 38001 Dačice, Czech Republic e-mail: info@dobesoft.cz Miroslav Kureš Institute of Mathematics Brno University of Technology Technická 2 61669 Brno, Czech Republic e-mail: kures@fme.vutbr.cz Received October 10, 2009 Final Accepted March 11, 2010