Progress Report on a Wilson Prime Search

Total Page:16

File Type:pdf, Size:1020Kb

Progress Report on a Wilson Prime Search Progress report on a Wilson prime search David Harvey (with Edgar Costa and Robert Gerbicz) University of New South Wales 10th July 2012, ANTS X, UC San Diego David Harvey (with Edgar Costa and Robert Gerbicz) Progress report on a Wilson prime search Wilson primes For prime p, define the Wilson quotient (p − 1)! + 1 w = : p p Wilson's theorem: wp 2 Z: A Wilson prime is a prime with wp = 0 (mod p). Equival ly (p − 1)! = −1 (mod p2): David Harvey (with Edgar Costa and Robert Gerbicz) Progress report on a Wilson prime search Previous work Only known Wilson primes: 5, 13, 563. Crandall{Dilcher{Pomerance (1997): no others for p < 500 000 000: Carlisle{Crandall{Rodenkirch (2008, unpublished): p < 6 000 000 000: Heuristically X 1 #fWilson primes p < xg ∼ ∼ log log x: p p<x This does go to infinity... but very slowly. David Harvey (with Edgar Costa and Robert Gerbicz) Progress report on a Wilson prime search Algorithms for computing wp I Naive: O(p1+o(1)) bit operations. I Baby-step/giant-step (Strassen): O(p1=2+o(1)) bit operations. I New algorithm: compute wp for all p < N using only O((log p)4+o(1)) bit operations per prime on average. Polynomial time! David Harvey (with Edgar Costa and Robert Gerbicz) Progress report on a Wilson prime search Current computation At this moment running on 500{1000 cores at NYU & UNSW. We have checked all p < 1 000 000 000 000 and larger p in some intervals. Goal: p < 10 000 000 000 000: About 8% chance of success for 1012 < p < 1013. p wp 11 774 118 061 −1 (largest known p with jwpj = 1) 1 239 053 554 603 −4 (smallest known nonzero jwp=pj) Table: Some close calls David Harvey (with Edgar Costa and Robert Gerbicz) Progress report on a Wilson prime search Another announcement Our new exascale machine arrived about 7 weeks ago: Jesse Oliver Harvey David Harvey (with Edgar Costa and Robert Gerbicz) Progress report on a Wilson prime search.
Recommended publications
  • New Congruences and Finite Difference Equations For
    New Congruences and Finite Difference Equations for Generalized Factorial Functions Maxie D. Schmidt University of Washington Department of Mathematics Padelford Hall Seattle, WA 98195 USA [email protected] Abstract th We use the rationality of the generalized h convergent functions, Convh(α, R; z), to the infinite J-fraction expansions enumerating the generalized factorial product se- quences, pn(α, R)= R(R + α) · · · (R + (n − 1)α), defined in the references to construct new congruences and h-order finite difference equations for generalized factorial func- tions modulo hαt for any primes or odd integers h ≥ 2 and integers 0 ≤ t ≤ h. Special cases of the results we consider within the article include applications to new congru- ences and exact formulas for the α-factorial functions, n!(α). Applications of the new results we consider within the article include new finite sums for the α-factorial func- tions, restatements of classical necessary and sufficient conditions of the primality of special integer subsequences and tuples, and new finite sums for the single and double factorial functions modulo integers h ≥ 2. 1 Notation and other conventions in the article 1.1 Notation and special sequences arXiv:1701.04741v1 [math.CO] 17 Jan 2017 Most of the conventions in the article are consistent with the notation employed within the Concrete Mathematics reference, and the conventions defined in the introduction to the first articles [11, 12]. These conventions include the following particular notational variants: ◮ Extraction of formal power series coefficients. The special notation for formal n k power series coefficient extraction, [z ] k fkz :7→ fn; ◮ Iverson’s convention.
    [Show full text]
  • Elementary Number Theory and Its Applications
    Elementary Number Theory andlts Applications KennethH. Rosen AT&T Informotion SystemsLaboratories (formerly part of Bell Laborotories) A YY ADDISON-WESLEY PUBLISHING COMPANY Read ing, Massachusetts Menlo Park, California London Amsterdam Don Mills, Ontario Sydney Cover: The iteration of the transformation n/2 if n T(n) : \ is even l Qn + l)/2 if n is odd is depicted.The Collatz conjectureasserts that with any starting point, the iteration of ?"eventuallyreaches the integer one. (SeeProblem 33 of Section l.2of the text.) Library of Congress Cataloging in Publication Data Rosen, Kenneth H. Elementary number theory and its applications. Bibliography: p. Includes index. l. Numbers, Theory of. I. Title. QA24l.R67 1984 512',.72 83-l1804 rsBN 0-201-06561-4 Reprinted with corrections, June | 986 Copyright O 1984 by Bell Telephone Laboratories and Kenneth H. Rosen. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical,photocopying, recording, or otherwise,without prior written permission of the publisher. printed in the United States of America. Published simultaneously in Canada. DEFGHIJ_MA_8987 Preface Number theory has long been a favorite subject for studentsand teachersof mathematics. It is a classical subject and has a reputation for being the "purest" part of mathematics, yet recent developments in cryptology and computer science are based on elementary number theory. This book is the first text to integrate these important applications of elementary number theory with the traditional topics covered in an introductory number theory course. This book is suitable as a text in an undergraduatenumber theory courseat any level.
    [Show full text]
  • A Search for Wilson Primes
    MATHEMATICS OF COMPUTATION Volume 83, Number 290, November 2014, Pages 3071–3091 S 0025-5718(2014)02800-7 Article electronically published on January 27, 2014 A SEARCH FOR WILSON PRIMES EDGAR COSTA, ROBERT GERBICZ, AND DAVID HARVEY Abstract. A Wilson prime is a prime p such that (p − 1)! = −1(modp2). We report on a search for Wilson primes up to 2 × 1013, and describe several new algorithms that were used in the search. In particular, we give the first known algorithm that computes (p − 1)! (mod p2) in average polynomial time per prime. 1. Introduction Wilson’s theorem in elementary number theory states that (p − 1)! = −1(modp) for any prime p. The corresponding Wilson quotient is (p − 1)! + 1 ∈ Z, p and we define wp to be its residue modulo p in the interval −p/2 ≤ wp <p/2. A Wilson prime is a prime such that wp = 0 or, equivalently, (p − 1)! = −1(modp2). Only three Wilson primes are known: 5, 13 and 563. All previously published searches for Wilson primes have used algorithms for computing wp whose time complexity is essentially linear in p. (In this paper, un- less otherwise specified, time complexity means number of steps on a multitape Turing machine; see [27].) Since the input size is proportional to log p, these algo- rithms should be regarded as having exponential time complexity. For example, the simplest possible algorithm is to multiply successively by the integers 2, 3,...,p−1, reducing modulo p2 after each multiplication. The best known algorithm for com- 1/2+o(1) puting wp has complexity p (see below), but this is still exponential in log p.
    [Show full text]
  • Lerch Quotients, Lerch Primes, Fermat-Wilson Quotients, and The
    Lerch Quotients, Lerch Primes, Fermat-Wilson Quotients, and the Wieferich-non-Wilson Primes 2, 3, 14771 Jonathan Sondow 209 West 97th Street, New York, NY 10025 e-mail: [email protected] p−1 Abstract The Fermat quotient qp(a) := (a − 1)/p, for prime p ∤ a, and the Wil- son quotient wp := ((p − 1)! + 1)/p are integers. If p | wp, then p is a Wilson prime. ∑p−1 For odd p, Lerch proved that ( a=1 qp(a) − wp)/p is also an integer; we call it the Lerch quotient ℓp. If p | ℓp we say p is a Lerch prime. A simple Bernoulli-number test for Lerch primes is proven. There are four Lerch primes 3,103,839,2237 up to 3 × 106; we relate them to the known Wilson primes 5,13,563. Generalizations are suggested. Next, if p is a non-Wilson prime, then qp(wp) is an integer that we call the Fermat-Wilson quotient of p. The GCD of all qp(wp) is shown to be 24. If p | qp(a), then p is a Wieferich prime base a; we give a survey of them. Taking a = wp, if p | qp(wp) we say p is a Wieferich-non-Wilson prime. There are three up to 107, namely, 2,3,14771. Several open problems are discussed. 1 Introduction By Fermat’s little theorem and Wilson’s theorem, if p is a prime and a is an integer not divisible by p, then the Fermat quotient of p base a, ap−1 − 1 q (a) := , (1) p p arXiv:1110.3113v5 [math.NT] 6 Dec 2012 and the Wilson quotient of p, (p − 1)! + 1 w := , (2) p p are integers.
    [Show full text]
  • Subject Index
    Subject Index Many of these terms are defined in the glossary, others are defined in the Prime Curios! themselves. The boldfaced entries should indicate the key entries. γ 97 Arecibo Message 55 φ 79, 184, see golden ratio arithmetic progression 34, 81, π 8, 12, 90, 102, 106, 129, 136, 104, 112, 137, 158, 205, 210, 154, 164, 172, 173, 177, 181, 214, 219, 223, 226, 227, 236 187, 218, 230, 232, 235 Armstrong number 215 5TP39 209 Ars Magna 20 ASCII 66, 158, 212, 230 absolute prime 65, 146, 251 atomic number 44, 51, 64, 65 abundant number 103, 156 Australopithecus afarensis 46 aibohphobia 19 autism 85 aliquot sequence 13, 98 autobiographical prime 192 almost-all-even-digits prime 251 averaging sets 186 almost-equipandigital prime 251 alphabet code 50, 52, 61, 65, 73, Babbage 18, 146 81, 83 Babbage (portrait) 147 alphaprime code 83, 92, 110 balanced prime 12, 48, 113, 251 alternate-digit prime 251 Balog 104, 159 Amdahl Six 38 Balog cube 104 American Mathematical Society baseball 38, 97, 101, 116, 127, 70, 102, 196, 270 129 Antikythera mechanism 44 beast number 109, 129, 202, 204 apocalyptic number 72 beastly prime 142, 155, 229, 251 Apollonius 101 bemirp 113, 191, 210, 251 Archimedean solid 19 Bernoulli number 84, 94, 102 Archimedes 25, 33, 101, 167 Bernoulli triangle 214 { Page 287 { Bertrand prime Subject Index Bertrand prime 211 composite-digit prime 59, 136, Bertrand's postulate 111, 211, 252 252 computer mouse 187 Bible 23, 45, 49, 50, 59, 72, 83, congruence 252 85, 109, 158, 194, 216, 235, congruent prime 29, 196, 203, 236 213, 222, 227,
    [Show full text]
  • Fermat Versus Wilson Congruences, Arithmetic Derivatives and Zeta Values
    FERMAT VERSUS WILSON CONGRUENCES, ARITHMETIC DERIVATIVES AND ZETA VALUES DINESH S. THAKUR Abstract. We look at two analogs each for the well-known congruences of Fermat and Wilson in the case of polynomials over finite fields. When we look at them modulo higher powers of primes, we find interesting relations linking them together, as well as linking them with derivatives and zeta values. The link with the zeta value carries over to the number field case, with the zeta value at 1 being replaced by Euler's constant. 1. Introduction Since the finite fields occur as the residue fields of global fields (i.e., the number fields and function fields over finite fields), the fundamental and often used proper- q ties of Fq that x = x, for x 2 Fq and that the product of all non-zero elements of Fq is −1, lift to the well-known generalizations of the elementary, but fundamental Fermat and Wilson congruences. The Fermat congruence says that for a 2 Z prime to p, we have ap−1 ≡ 1 mod p (or ap ≡ a mod p for any integer a), and the Wilson congruence says that (p − 1)! ≡ −1 mod p. In this paper, we will describe two different analogs (multiplicative/arithmetic versus additive/geometric: this terminology is explained more in the last section) of these two congruences in the case of polynomials over finite fields. When we look at them modulo higher powers of primes, we discover new interesting relations linking the two congruences together in each of the analogs, as well as linking them with derivatives and arithmetic derivatives for the first analog and with the zeta values for the second analog.
    [Show full text]
  • The United States in Latin America, 1865-1920
    CONSOLODATING EMPIRE: THE UNITED STATES IN LATIN AMERICA, 1865-1920 Matthew Hassett A Thesis Submitted to the University of North Carolina Wilmington in Partial Fulfillment of the Requirements for the Degree of Master of Arts Department of History University of North Carolina Wilmington 2007 Approved by Advisory Committee Kathleen Berkeley Paul Gillingham W. Taylor Fain Chair Accepted by _________________________ Dean, Graduate School TABLE OF CONTENTS ABSTRACT....................................................................................................................... iii ACKNOWLEDGEMENTS............................................................................................... iv DEDICATION.....................................................................................................................v CHAPTER ONE ..................................................................................................................1 CHAPTER TWO ...............................................................................................................20 CHAPTER THREE ...........................................................................................................41 CHAPTER FOUR..............................................................................................................63 CONCLUSION..................................................................................................................82 BIBLIOGRAPHY..............................................................................................................87
    [Show full text]
  • Prime Numbers– Things Long-Known and Things New- Found
    Karl-Heinz Kuhl PRIME NUMBERS– THINGS LONG-KNOWN AND THINGS NEW- FOUND A JOURNEY THROUGH THE LANDSCAPE OF THE PRIME NUMBERS Amazing properties and insights – not from the perspective of a mathematician, but from that of a voyager who, pausing here and there in the landscape of the prime numbers, approaches their secrets in a spirit of playful adventure, eager to experiment and share their fascination with others who may be interested. Third, revised and updated edition (2020) 0 Prime Numbers – things long- known and things new-found A journey through the landscape of the prime numbers Amazing properties and insights – not from the perspective of a mathematician, but from that of a voyager who, pausing here and there in the landscape of the prime numbers, approaches their secrets in a spirit of playful adventure, eager to experiment and share their fascination with others who may be interested. Dipl.-Phys. Karl-Heinz Kuhl Parkstein, December 2020 1 1 + 2 + 3 + 4 + ⋯ = − 12 (Ramanujan) Web: https://yapps-arrgh.de (Yet another promising prime number source: amazing recent results from a guerrilla hobbyist) Link to the latest online version https://yapps-arrgh.de/primes_Online.pdf Some of the text and Mathematica programs have been removed from the free online version. The printed and e-book versions, however, contain both the text and the programs in their entirety. Recent supple- ments to the book can be found here: https://yapps-arrgh.de/data/Primenumbers_supplement.pdf Please feel free to contact the author if you would like a deeper insight into the many Mathematica programs.
    [Show full text]
  • A Generalization of Wilson's Theorem
    A Generalization of Wilson's Theorem R. Andrew Ohana June 3, 2009 Contents 1 Introduction 2 2 Background Algebra 2 2.1 Groups . .2 2.2 Rings . .5 2.3 Quotient Rings . .6 2.4 Homomorphisms and Isomorphisms . .6 2.5 Fields . .7 2.6 Polynomials . .9 2.7 Chinese Remainder Theorem . .9 3 Wilson's Theorem and Gauss' Generalization 10 3.1 Wilson's Theorem . 10 3.2 Gauss' Generalization . 10 4 Wilson Primes 12 5 Conclusion 13 References 13 1 1 Introduction In 1770 Edward Waring published the text Meditationes Algebraicae, in which several original statements in number theory were formed. One of the most famous was what is now referred to as Wilson's Theorem - named after the student who made the conjecture, John Wilson - which states that all primes p divide (p − 1)! + 1. No proof was originally given for the result, as Wilson left the field of mathematics quite early to study law, however the same year in which it was published, J. L. Lagrange gave it proof. In this paper, we will cover the necessary algebra, a proof of Wilson's Theorem, and a proof of Gauss' generalization of Wilson's Theorem. Finally, we'll conclude with a brief discussion of Wilson primes, primes that satisfy a stronger version of Wilson's Theorem. 2 Background Algebra In order to discuss Wilson's Theorem, we will need to develop some background in algebra. Nearly all the proofs in this section will be left for the reader, for more on basic algebra consult [1], [2], or [4].
    [Show full text]
  • INFINITUDE of WILSON PRIMES for Fq[T] 1. Introduction for A
    INFINITUDE OF WILSON PRIMES FOR Fq[t] JIM SAUERBERG*, LINGHSUEH SHU, DINESH S. THAKUR** AND GEORGE TODD** 1. Introduction For a prime p, the well-known Wilson congruence says that (p−1)! ≡ −1 modulo p. A prime p is called a Wilson prime, if the congruence above holds modulo p2. We now quote from [R95, Pa. 346, 350]: `It is not known whether there are infinitely many Wilson primes. In this respect, Vandiver wrote: This question seems to be of such a character that if I should come to life any time after my death and some mathematician were to tell me it had been definitely settled, I think I would immediately drop dead again.' He also mentions that search (by Crandall, Dilcher, Pomerance [CDP]) up to 5 × 108 produced the only known Wilson primes, namely 5, 13, and 563, which was discovered by Goldberg in 1953 (one of the first successful computer searches involving very large numbers). (See [R95, Dic19] for historical references.) Many strong analogies [Gos96, Ro02, Tha04] between number fields and function fields over finite fields have been used to benefit the study of both. These analogies are even stronger in the base case Q; Z $ F (t);F [t], where F is a finite field. We will study the concept of Wilson prime in this function field context, and in contrast to the Z case, we will exhibit infinitely many of them, at least for many F . For 3∗13n 13n example, } = t − t − 1 are Wilson primes for F3[t]. We also show strong connections between Wilson's and Fermat's quotients; be- tween refined Wilson residues and discriminants, and introduce analogs of Bell numbers in F [t] setting.
    [Show full text]
  • Lerch Quotients, Lerch Primes, Fermat-Wilson Quotients, and the Wieferich-Non-Wilson Primes 2, 3, 14771 Jonathan Sondow Jsondow
    Lerch Quotients, Lerch Primes, Fermat-Wilson Quotients, and the Wieferich-non-Wilson Primes 2, 3, 14771 Jonathan Sondow [email protected] 1 INTRODUCTION The Fermat quotient of p base a, if prime p - a, is the integer ap−1 − 1 q (a) := ; p p and the Wilson quotient of p is the integer (p − 1)! + 1 w := : p p 1 2 A prime p is a Wilson prime if p j wp; that is, if the supercongruence (p − 1)! + 1 ≡ 0 (mod p2) holds. (A supercongruence is a congruence whose modulus is a prime power.) For p = 2;3;5;7;11;13, we find that wp ≡ 1;1;0;5;1;0 (mod p) and so the first two Wilson primes are 5 and 13: The third and largest known one is 563; un- covered by Goldberg in 1953: Vandiver in 1955 famously said: It is not known if there are infinitely many Wilson primes. This question seems to be of such a character that if I should come to life any time after my death and some math- ematician were to tell me that it had defi- nitely been settled, I think I would immedi- ately drop dead again. 3 2 LERCH QUOTIENTS AND LERCH PRIMES In 1905 Lerch proved a congruence relat- ing the Fermat and Wilson quotients of an odd prime. Lerch’s Formula. If a prime p is odd, then p−1 ∑ qp(a) ≡ wp (mod p); a=1 that is, p−1 ∑ ap−1 − p − (p − 1)! ≡ 0 (mod p2): a=1 4 2.1 Lerch Quotients Lerch’s formula allows us to introduce the Lerch quotient of an odd prime, by analogy with the classical Fermat and Wilson quo- tients of any prime.
    [Show full text]
  • 1 Conspiracy and Contemporary History: Revisiting MI5 and the Wilson Plot[S] 'I Was an Old Fashioned Radical Liberal and I
    1 Conspiracy and Contemporary History: Revisiting MI5 and the Wilson Plot[s] ‘I was an old fashioned radical liberal and I didn’t believe in all this secrecy. He [Prime Minister James Callaghan] remarked that if I started inquiries I’d only drive the Intelligence Service underground. Well, that was rich, given that they were already underground.’ Tony Benn, Conflict of Interest. Diaries 1977-80 (London: Arrow 1991), 379-80, diary entry, October 25 1978. ‘Every Prime Minister has his own style. But he must know all that is going on.’ Statement by the Prime Minister to the Cabinet, 16 March 1976, on his resignation in Harold Wilson, Final Term. The Labour Government 1974-1976 (London: Weidenfeld and Nicholson, 1979), 303. Abstract This article examines the debates which have taken place again recently concerning the long standing idea of a plot in the 1970s against the elected Labour government under Prime Minister Harold Wilson. Two television programmes in 2006 and Christopher Andrew’s 2009 official history of the UK Security Service (MI5) discussed the plot. Andrew’s history dismissed the possibility of a a conspiracy out of hand. This article critiques this approach and also discusses the continuing power of ideas of right wing plotting against Wilson. The plots remain an interesting and unresolved debate in contemporary intelligence history. Keywords Harold Wilson, MI5, conspiracy, intelligence, British history 2 Introduction The Wilson Plot[s] concern a series of attempts by right wing figures in the British establishment to undermine Harold Wilson, Prime Minister of the Labour governments in the period 1964-70 and 1974-76.
    [Show full text]