Exploring Numbers

Total Page:16

File Type:pdf, Size:1020Kb

Exploring Numbers MATH36032 Problem Solving by Computer Exploring numbers I There are infinitely many prime numbers I (Fermat's Last Theorem:) There is not no non-trivial integer solutions to x n + y n = zn for n ≥ 3 I (Fermat's Little Theorem:) if p is a prime, then for any number a co-prime to p, then ap−1 ≡ 1 (mod p). I Famous (proved) theorems in number theory I Special numbers: Mersenne prime 2p − 1, Fermat number 2n Fn = 2 + 1, ··· I Important applications: Random number generation, cryptography (RSA public-key algorithm) Integers and prime numbers I Many problems are simple to state, yet difficult to prove or refute I Special numbers: Mersenne prime 2p − 1, Fermat number 2n Fn = 2 + 1, ··· I Important applications: Random number generation, cryptography (RSA public-key algorithm) Integers and prime numbers I Many problems are simple to state, yet difficult to prove or refute I Famous (proved) theorems in number theory I There are infinitely many prime numbers I (Fermat's Last Theorem:) There is not no non-trivial integer solutions to x n + y n = zn for n ≥ 3 I (Fermat's Little Theorem:) if p is a prime, then for any number a co-prime to p, then ap−1 ≡ 1 (mod p). I Important applications: Random number generation, cryptography (RSA public-key algorithm) Integers and prime numbers I Many problems are simple to state, yet difficult to prove or refute I Famous (proved) theorems in number theory I There are infinitely many prime numbers I (Fermat's Last Theorem:) There is not no non-trivial integer solutions to x n + y n = zn for n ≥ 3 I (Fermat's Little Theorem:) if p is a prime, then for any number a co-prime to p, then ap−1 ≡ 1 (mod p). I Special numbers: Mersenne prime 2p − 1, Fermat number 2n Fn = 2 + 1, ··· Integers and prime numbers I Many problems are simple to state, yet difficult to prove or refute I Famous (proved) theorems in number theory I There are infinitely many prime numbers I (Fermat's Last Theorem:) There is not no non-trivial integer solutions to x n + y n = zn for n ≥ 3 I (Fermat's Little Theorem:) if p is a prime, then for any number a co-prime to p, then ap−1 ≡ 1 (mod p). I Special numbers: Mersenne prime 2p − 1, Fermat number 2n Fn = 2 + 1, ··· I Important applications: Random number generation, cryptography (RSA public-key algorithm) Unproved conjectures in number theory I Goldbach Conjecture: every even integer greater than two is the sum of two prime numbers (tested by for all integer up to 1020) I Twin Prime Conjecture: are there infinitely many pairs of twin primes like (5; 7); (29; 31); ··· ? Largest twin prime pair known 2996863034895 · 21290000 ± 1 (388; 342 digits) I Collatz Conjectures: For any integer n, the iteration ( 3n + 1; if n is odd; n 7! n=2; if n is even; eventually contains 1. I Riemann Hypothesis: All non-trivial zeroes of the zeta function 1 X ζ(s) = n−s n=1 have real part 1=2 (on the complex plane). Two "simple" questions in the introduction Q1: what is the smallest (in absolute value) integer solutions to x3 + y 3 + z3 = 42? x = −80538738812075974; y = 80435758145817515; z = 12602123297335631: Q2: what is the smallest non-negative integer solutions to x y z + + = 4? y + z z + x x + y x = 154476802108746166441951315019919837485664325669565431700026634898253202035277999; y = 36875131794129999827197811565225474825492979968971970996283137471637224634055579; z = 4373612677928697257861252602371390152816537558161613618621437993378423467772036: Some related built-in functions I primes(N): return all primes up to N I isprime: whether a number is prime I factor: factorize the number I gcd: greatest common divisor I lcm: least common multiplier Each type has its own range, for example: I int8: [−27; 27 − 1] = [−128; 127] I int64: [−263; 263 − 1] = [−9223372036854775808; 9223372036854775807] (19 digits) I uint16: [0; 216 − 1] = [0; 65535] I double: about [−253; 253](≈ 9 × 1015) I Many operations (like sqrt) can not be applied to integers. I Make sure the number stays in the right range (otherwise the number is shrinked to the range) I Use symbolic numbers (though slower), if outside this range, like the factorization of 20!: factor(factorial(sym(20))) Representing numbers in MATLAB I double: the default type for any decimal number, like the output for rand I int8, int16, int32, int64: signed integers I uint8, uint16, uint32, uint64: unsigned integers I Many operations (like sqrt) can not be applied to integers. I Make sure the number stays in the right range (otherwise the number is shrinked to the range) I Use symbolic numbers (though slower), if outside this range, like the factorization of 20!: factor(factorial(sym(20))) Representing numbers in MATLAB I double: the default type for any decimal number, like the output for rand I int8, int16, int32, int64: signed integers I uint8, uint16, uint32, uint64: unsigned integers Each type has its own range, for example: I int8: [−27; 27 − 1] = [−128; 127] I int64: [−263; 263 − 1] = [−9223372036854775808; 9223372036854775807] (19 digits) I uint16: [0; 216 − 1] = [0; 65535] I double: about [−253; 253](≈ 9 × 1015) Representing numbers in MATLAB I double: the default type for any decimal number, like the output for rand I int8, int16, int32, int64: signed integers I uint8, uint16, uint32, uint64: unsigned integers Each type has its own range, for example: I int8: [−27; 27 − 1] = [−128; 127] I int64: [−263; 263 − 1] = [−9223372036854775808; 9223372036854775807] (19 digits) I uint16: [0; 216 − 1] = [0; 65535] I double: about [−253; 253](≈ 9 × 1015) I Many operations (like sqrt) can not be applied to integers. I Make sure the number stays in the right range (otherwise the number is shrinked to the range) I Use symbolic numbers (though slower), if outside this range, like the factorization of 20!: factor(factorial(sym(20))) Prime number theorem Problem: verify that the number of prime up N is about N= log N, when N is large? How do you use the built-in function primes to accomplish this? Related Problem: find the largest twin primes both less than or equal to N Twin prime conjecture: are there infinitely many twin primes? Twin primes Problem: List all twin primes up to N Find all pairs of consecutive primes in the output of primes, with gap exactly two. Twin prime conjecture: are there infinitely many twin primes? Twin primes Problem: List all twin primes up to N Find all pairs of consecutive primes in the output of primes, with gap exactly two. Related Problem: find the largest twin primes both less than or equal to N Twin primes Problem: List all twin primes up to N Find all pairs of consecutive primes in the output of primes, with gap exactly two. Related Problem: find the largest twin primes both less than or equal to N Twin prime conjecture: are there infinitely many twin primes? Largest gap between consecutive primes 1 Problems: what is the largest gap between two consecutive primes that are less than or equal to a given number N 1More on wiki: https://en.wikipedia.org/wiki/Prime_gap Unfortunate, Fn with n ≤ 4 are the only known prime numbers; the conjecture was refuted first by Euler in 1732 by showing that 32 F5 = 2 + 1 = 4294967297 = 641 × 6700417: Current Fn is completely factorized up to n = 11, and incompletely factorized for a few more (only one or more factors of Fn are known). 2n Fermat prime number: Fn = 2 + 1 Observations made by Pierre de Fermat: 1 F0 = 2 + 1 =3 is prime 2 F1 = 2 + 1 =5 is prime 22 F2 = 2 + 1=17 is prime 23 F3 = 2 + 1=257 is prime 24 F4 = 2 + 1=65537 is prime He concluded all such numbers are prime. Current Fn is completely factorized up to n = 11, and incompletely factorized for a few more (only one or more factors of Fn are known). 2n Fermat prime number: Fn = 2 + 1 Observations made by Pierre de Fermat: 1 F0 = 2 + 1 =3 is prime 2 F1 = 2 + 1 =5 is prime 22 F2 = 2 + 1=17 is prime 23 F3 = 2 + 1=257 is prime 24 F4 = 2 + 1=65537 is prime He concluded all such numbers are prime. Unfortunate, Fn with n ≤ 4 are the only known prime numbers; the conjecture was refuted first by Euler in 1732 by showing that 32 F5 = 2 + 1 = 4294967297 = 641 × 6700417: 2n Fermat prime number: Fn = 2 + 1 Observations made by Pierre de Fermat: 1 F0 = 2 + 1 =3 is prime 2 F1 = 2 + 1 =5 is prime 22 F2 = 2 + 1=17 is prime 23 F3 = 2 + 1=257 is prime 24 F4 = 2 + 1=65537 is prime He concluded all such numbers are prime. Unfortunate, Fn with n ≤ 4 are the only known prime numbers; the conjecture was refuted first by Euler in 1732 by showing that 32 F5 = 2 + 1 = 4294967297 = 641 × 6700417: Current Fn is completely factorized up to n = 11, and incompletely factorized for a few more (only one or more factors of Fn are known). Make sure the right operation is applied on the string or vector (convert back into numbers), like the built-in function str2num. Numbers and Digits num2str: conversion of a number like 2020 into string (sequence of characters). You can convert digital string back to numbers, like 1 str2num('2020'); % the output is the number 2020 Equivalently, how to convert a number into a vector of number (from the number 2020 to [2, 0, 2, 0])? 1 function dig = num2dig(n) 2 % convert a number into a vector of digits 3 % for example: num2dig(2020) --> [2 0 2 0] Numbers and Digits num2str: conversion of a number like 2020 into string (sequence of characters).
Recommended publications
  • Mersenne and Fermat Numbers 2, 3, 5, 7, 13, 17, 19, 31
    MERSENNE AND FERMAT NUMBERS RAPHAEL M. ROBINSON 1. Mersenne numbers. The Mersenne numbers are of the form 2n — 1. As a result of the computation described below, it can now be stated that the first seventeen primes of this form correspond to the following values of ra: 2, 3, 5, 7, 13, 17, 19, 31, 61, 89, 107, 127, 521, 607, 1279, 2203, 2281. The first seventeen even perfect numbers are therefore obtained by substituting these values of ra in the expression 2n_1(2n —1). The first twelve of the Mersenne primes have been known since 1914; the twelfth, 2127—1, was indeed found by Lucas as early as 1876, and for the next seventy-five years was the largest known prime. More details on the history of the Mersenne numbers may be found in Archibald [l]; see also Kraitchik [4]. The next five Mersenne primes were found in 1952; they are at present the five largest known primes of any form. They were announced in Lehmer [7] and discussed by Uhler [13]. It is clear that 2" —1 can be factored algebraically if ra is composite; hence 2n —1 cannot be prime unless w is prime. Fermat's theorem yields a factor of 2n —1 only when ra + 1 is prime, and hence does not determine any additional cases in which 2"-1 is known to be com- posite. On the other hand, it follows from Euler's criterion that if ra = 0, 3 (mod 4) and 2ra + l is prime, then 2ra + l is a factor of 2n— 1.
    [Show full text]
  • Primes and Primality Testing
    Primes and Primality Testing A Technological/Historical Perspective Jennifer Ellis Department of Mathematics and Computer Science What is a prime number? A number p greater than one is prime if and only if the only divisors of p are 1 and p. Examples: 2, 3, 5, and 7 A few larger examples: 71887 524287 65537 2127 1 Primality Testing: Origins Eratosthenes: Developed “sieve” method 276-194 B.C. Nicknamed Beta – “second place” in many different academic disciplines Also made contributions to www-history.mcs.st- geometry, approximation of andrews.ac.uk/PictDisplay/Eratosthenes.html the Earth’s circumference Sieve of Eratosthenes 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 Sieve of Eratosthenes We only need to “sieve” the multiples of numbers less than 10. Why? (10)(10)=100 (p)(q)<=100 Consider pq where p>10. Then for pq <=100, q must be less than 10. By sieving all the multiples of numbers less than 10 (here, multiples of q), we have removed all composite numbers less than 100.
    [Show full text]
  • Arxiv:1412.5226V1 [Math.NT] 16 Dec 2014 Hoe 11
    q-PSEUDOPRIMALITY: A NATURAL GENERALIZATION OF STRONG PSEUDOPRIMALITY JOHN H. CASTILLO, GILBERTO GARC´IA-PULGAR´IN, AND JUAN MIGUEL VELASQUEZ-SOTO´ Abstract. In this work we present a natural generalization of strong pseudoprime to base b, which we have called q-pseudoprime to base b. It allows us to present another way to define a Midy’s number to base b (overpseudoprime to base b). Besides, we count the bases b such that N is a q-probable prime base b and those ones such that N is a Midy’s number to base b. Furthemore, we prove that there is not a concept analogous to Carmichael numbers to q-probable prime to base b as with the concept of strong pseudoprimes to base b. 1. Introduction Recently, Grau et al. [7] gave a generalization of Pocklignton’s Theorem (also known as Proth’s Theorem) and Miller-Rabin primality test, it takes as reference some works of Berrizbeitia, [1, 2], where it is presented an extension to the concept of strong pseudoprime, called ω-primes. As Grau et al. said it is right, but its application is not too good because it is needed m-th primitive roots of unity, see [7, 12]. In [7], it is defined when an integer N is a p-strong probable prime base a, for p a prime divisor of N −1 and gcd(a, N) = 1. In a reading of that paper, we discovered that if a number N is a p-strong probable prime to base 2 for each p prime divisor of N − 1, it is actually a Midy’s number or a overpseu- doprime number to base 2.
    [Show full text]
  • Appendix a Tables of Fermat Numbers and Their Prime Factors
    Appendix A Tables of Fermat Numbers and Their Prime Factors The problem of distinguishing prime numbers from composite numbers and of resolving the latter into their prime factors is known to be one of the most important and useful in arithmetic. Carl Friedrich Gauss Disquisitiones arithmeticae, Sec. 329 Fermat Numbers Fo =3, FI =5, F2 =17, F3 =257, F4 =65537, F5 =4294967297, F6 =18446744073709551617, F7 =340282366920938463463374607431768211457, Fs =115792089237316195423570985008687907853 269984665640564039457584007913129639937, Fg =134078079299425970995740249982058461274 793658205923933777235614437217640300735 469768018742981669034276900318581864860 50853753882811946569946433649006084097, FlO =179769313486231590772930519078902473361 797697894230657273430081157732675805500 963132708477322407536021120113879871393 357658789768814416622492847430639474124 377767893424865485276302219601246094119 453082952085005768838150682342462881473 913110540827237163350510684586298239947 245938479716304835356329624224137217. The only known Fermat primes are Fo, ... , F4 • 208 17 lectures on Fermat numbers Completely Factored Composite Fermat Numbers m prime factor year discoverer 5 641 1732 Euler 5 6700417 1732 Euler 6 274177 1855 Clausen 6 67280421310721* 1855 Clausen 7 59649589127497217 1970 Morrison, Brillhart 7 5704689200685129054721 1970 Morrison, Brillhart 8 1238926361552897 1980 Brent, Pollard 8 p**62 1980 Brent, Pollard 9 2424833 1903 Western 9 P49 1990 Lenstra, Lenstra, Jr., Manasse, Pollard 9 p***99 1990 Lenstra, Lenstra, Jr., Manasse, Pollard
    [Show full text]
  • A Clasification of Known Root Prime-Generating
    Two exciting classes of odd composites defined by a relation between their prime factors Marius Coman Bucuresti, Romania email: [email protected] Abstract. In this paper I will define two interesting classes of odd composites often met (by the author of this paper) in the study of Fermat pseudoprimes, which might also have applications in the study of big semiprimes or in other fields. This two classes of composites n = p(1)*...*p(k), where p(1), ..., p(k) are the prime factors of n are defined in the following way: p(j) – p(i) + 1 is a prime or a power of a prime, respectively p(i) + p(j) – 1 is a prime or a power of prime for any p(i), p(j) prime factors of n such that p(1) ≤ p(i) < p(j) ≤ p(k). Definition 1: We name the odd composites n = p(1)*...*p(k), where p(1), ..., p(k) are the prime factors of n, with the property that p(j) – p(i) + 1 is a prime or a power of a prime for any p(i), p(j) prime factors of n such that p(1) ≤ p(i) < p(j) ≤ p(k), Coman composites of the first kind. If n = p*q is a squarefree semiprime, p < q, with the property that q – p + 1 is a prime or a power of a prime, then n it will be a Coman semiprime of the first kind. Examples: : 2047 = 23*89 is a Coman semiprime of the first kind because 89 – 23 + 1 = 67, a prime; : 4681 = 31*151 is a Coman semiprime of the first kind because 151 – 31 + 1 = 121, a power of a prime; : 1729 = 7*13*19 is a Coman composite of the first kind because 19 – 7 + 1 = 13, a prime, 19 – 13 + 1 = 7, a prime, and 13 – 7 + 1 = 7, a prime.
    [Show full text]
  • Fermat Padovan and Perrin Numbers
    1 2 Journal of Integer Sequences, Vol. 23 (2020), 3 Article 20.6.2 47 6 23 11 Fermat Padovan And Perrin Numbers Salah Eddine Rihane Department of Mathematics Institute of Science and Technology University Center of Mila Algeria [email protected] Ch`efiath Awero Adegbindin Institut de Math´ematiques et de Sciences Physiques Dangbo B´enin [email protected] Alain Togb´e Department of Mathematics, Statistics, and Computer Science Purdue University Northwest 1401 S., U.S. 421 Westville, IN 46391 USA [email protected] Abstract In this paper, we determine all the Padovan and Perrin numbers that are also Fermat numbers. 1 1 Introduction The Padovan sequence Pm m 0 is defined by { } ≥ Pm+3 = Pm+1 + Pm, (1) for m 0, where P0 = P1 = P2 = 1. This is the sequence A000931 in the On-Line Encyclopedia≥ of Integer Sequences (OEIS). A few terms of this sequence are 1, 1, 1, 2, 2, 3, 4, 5, 7, 9, 12, 16, 21, 28, 37, 49, 65, 86, 114, 151, 200, ··· Let Em m 0 be the Perrin sequence given by { } ≥ Em+3 = Em+1 + Em, (2) for m 0, where E = 3, E = 0, and E = 2. Its first few terms are ≥ 0 1 2 3, 0, 2, 3, 2, 5, 5, 7, 10, 12, 17, 22, 29, 39, 51, 68, 90, 119, 158, 209, 277, 367, 486, 644, 853, ··· It is the sequence A001608 in the OEIS. Let us also recall that a Fermat number is a number of the form m =22 +1, Fm where m is a nonnegative integer.
    [Show full text]
  • Integer Sequences
    UHX6PF65ITVK Book > Integer sequences Integer sequences Filesize: 5.04 MB Reviews A very wonderful book with lucid and perfect answers. It is probably the most incredible book i have study. Its been designed in an exceptionally simple way and is particularly just after i finished reading through this publication by which in fact transformed me, alter the way in my opinion. (Macey Schneider) DISCLAIMER | DMCA 4VUBA9SJ1UP6 PDF > Integer sequences INTEGER SEQUENCES Reference Series Books LLC Dez 2011, 2011. Taschenbuch. Book Condition: Neu. 247x192x7 mm. This item is printed on demand - Print on Demand Neuware - Source: Wikipedia. Pages: 141. Chapters: Prime number, Factorial, Binomial coeicient, Perfect number, Carmichael number, Integer sequence, Mersenne prime, Bernoulli number, Euler numbers, Fermat number, Square-free integer, Amicable number, Stirling number, Partition, Lah number, Super-Poulet number, Arithmetic progression, Derangement, Composite number, On-Line Encyclopedia of Integer Sequences, Catalan number, Pell number, Power of two, Sylvester's sequence, Regular number, Polite number, Ménage problem, Greedy algorithm for Egyptian fractions, Practical number, Bell number, Dedekind number, Hofstadter sequence, Beatty sequence, Hyperperfect number, Elliptic divisibility sequence, Powerful number, Znám's problem, Eulerian number, Singly and doubly even, Highly composite number, Strict weak ordering, Calkin Wilf tree, Lucas sequence, Padovan sequence, Triangular number, Squared triangular number, Figurate number, Cube, Square triangular
    [Show full text]
  • Hypothetical Elite Primes for Mersenne Numbers and Repunits
    1 2 Journal of Integer Sequences, Vol. 24 (2021), 3 Article 21.1.7 47 6 23 11 Hypothetical Elite Primes for Mersenne Numbers and Repunits Amin Witno Department of Basic Sciences Philadelphia University 19392 Jordan [email protected] Abstract We study prime numbers p that have the property that the numbers (bq −1)/(b−1) are quadratic residues modulo p for all sufficiently large primes q. We give a practical criterion for testing for such primes with respect to the base b and, for certain values of n b, we find a connection between these primes and anti-elite primes, i.e., where b2 + 1 are quadratic residues modulo p for all large n. 1 Introduction 2n Aigner [1] called a prime number p elite if the Fermat numbers Fn := 2 + 1 are quadratic non-residues modulo p for all sufficiently large values of n. Such primes p play a role in Pepin’s Fn−1 primality criterion for Fermat numbers, i.e., that Fn is prime if and only if p 2 ≡−1 (mod Fn). M¨uller [5] defined a prime p to be anti-elite if the numbers Fn are quadratic residues modulo p for all large n. Despite their name, anti-elite primes are still elite in the sense of being rare, as their elite counterparts are, but without the privilege of having a role in primality testing. Meanwhile, the counterparts to the Fermat numbers are the Mersenne numbers Mq := 2q − 1, where q is a prime. Both Fermat and Mersenne numbers belong to the simplest class of the Cunningham numbers bN ± 1, in this case with b = 2, which are of great interest as far as primality and factorization are concerned.
    [Show full text]
  • Parallel Strategy to Factorize Fermat Numbers with Implementation in Maple Software
    Journal of Software Parallel Strategy to Factorize Fermat Numbers with Implementation in Maple Software Jianhui Li*, Manlan Liu Foshan Polytechnic, Foshan City, PRC, 528000, China. * Corresponding author. Tel.: +86075787263015; email: [email protected] Manuscript submitted October 08, 2020; accepted December 11, 2020. doi: 10.17706/jsw.16.4.167-173 Abstract: In accordance with the traits of parallel computing, the paper proposes a parallel algorithm to factorize the Fermat numbers through parallelization of a sequential algorithm. The kernel work to parallelize a sequential algorithm is presented by subdividing the computing interval into subintervals that are assigned to the parallel processes to perform the parallel computing. Maple experiments show that the parallelization increases the computational efficiency of factoring the Fermat numbers, especially to the Fermat number with big divisors. Key words: Integer factorization, fermat number, parallel computing, algorithm. 1. Introduction Factorization of big integer has been a hard problem and has been paid attention to in mathematics and cryptography. Any factoring algorithm is both scientifically valuable and practically applicable, as stated in [1]. Historically, factorization of big integer always took huge computing resources and involved in parallel computing. For example, it took half a year and 80 4-cored CPUs of AMD Opteron @ 2.2GHz to factorize RSA768 [2]. Actually, Brent R P began to study the possibility of parallel computing early in 1990 since Pollard Rho algorithm came into being [3]. And then parallel approaches for the elliptic curve method (ECM), continued fraction, quadric sieve (QS) and number field sieve (NFS) were developed respectively [4]-[7]. Now the NFS has been regarded to be the most efficient method.
    [Show full text]
  • Paper on the Cunningham Project, In
    Fields Institute Communications Volume 00, 0000 The Cunningham Project Samuel S. Wagstaff, Jr. Center for Education and Research in Information Assurance and Security and Department of Computer Sciences, Purdue University West Lafayette, IN 47907-1398 USA [email protected] Abstract. The goal of the Cunningham Project is to factor numbers of the form bn 1 for small b. We explain why people factor these particular numbers, tell about those who have factored them, list some methods they used and describe some of their outstanding successes. 1 Introduction The goal of the Cunningham Project is to factor numbers of the form bn 1 for integers 2 b 12. The factors of these numbers are important ingredientsin solving many ≤problems≤ in number theory. We will mention some of these problems in the next section. Then we will tell the stories of some of the people who have factored these num- bers over the past two centuries. Naturally, one of them was named Cunningham; we will say a great deal about him. The fourth section explains some of the methods used to factor these numbers. In order to know whether a factorization is complete, we must be able to determine whether a large number is prime or composite. For a long time, primality testing was about as hard as factoring. However, in the past quarter century primality testing has become much easier than factoring. We will discuss the new advances as well as the older methods. Computers and other devices have aided the Cun- ningham Project immeasurably. We will mention some of their achievements and also tell how people factored before computers.
    [Show full text]
  • Overpseudoprimes, and Mersenne and Fermat Numbers As Primover Numbers
    1 2 Journal of Integer Sequences, Vol. 15 (2012), 3 Article 12.7.7 47 6 23 11 Overpseudoprimes, and Mersenne and Fermat Numbers as Primover Numbers Vladimir Shevelev Department of Mathematics Ben-Gurion University of the Negev Beer-Sheva 84105 Israel [email protected] Gilberto Garc´ıa-Pulgar´ın Universidad de Antioquia Calle 67 No. 53–108 Medell´ın, Antioquia Colombia [email protected] Juan Miguel Vel´asquez-Soto Departamento de Matem´aticas Universidad del Valle Calle 13 No. 100-00 Cali, Valle del Cauca Colombia [email protected] John H. Castillo Departamento de Matem´aticas y Estad´ıstica Universidad de Nari˜no Calle 18 Carrera 50 San Juan de Pasto, Nari˜no Colombia [email protected] Abstract We introduce a new class of pseudoprimes, that we call “overpseudoprimes to base b”, which is a subclass of the strong pseudoprimes to base b. Letting |b|n denote the 1 multiplicative order of b modulo n, we show that a composite number n is an overpseu- doprime if and only if |b|d is invariant for all divisors d> 1 of n. In particular, we prove that all composite Mersenne numbers 2p − 1, where p is prime, are overpseudoprimes to base 2 and squares of Wieferich primes are overpseudoprimes to base 2. Finally, we show that some kinds of well-known numbers are “primover to base b”; i.e., they are primes or overpseudoprimes to base b. 1 Introduction We recall some definitions and fix some notation. Let b an integer greater than 1 and N a positive integer relatively prime to b.
    [Show full text]
  • Elementary Number Theory WISB321
    Elementary Number Theory WISB321 = F.Beukers 2012 Department of Mathematics UU ELEMENTARY NUMBER THEORY Frits Beukers Fall semester 2013 Contents 1 Integers and the Euclidean algorithm 4 1.1 Integers . 4 1.2 Greatest common divisors . 7 1.3 Euclidean algorithm for Z ...................... 8 1.4 Fundamental theorem of arithmetic . 10 1.5 Exercises . 12 2 Arithmetic functions 15 2.1 Definitions, examples . 15 2.2 Convolution, M¨obiusinversion . 18 2.3 Exercises . 20 3 Residue classes 21 3.1 Basic properties . 21 3.2 Chinese remainder theorem . 22 3.3 Invertible residue classes . 24 3.4 Periodic decimal expansions . 27 3.5 Exercises . 29 4 Primality and factorisation 33 4.1 Prime tests and compositeness tests . 33 4.2 A polynomial time primality test . 38 4.3 Factorisation methods . 39 4.4 The quadratic sieve . 41 4.5 Cryptosystems, zero-knowledge proofs . 44 5 Quadratic reciprocity 47 5.1 The Legendre symbol . 47 5.2 Quadratic reciprocity . 48 5.3 A group theoretic proof . 51 5.4 Applications . 52 5.5 Jacobi symbols, computing square roots . 55 5.6 Class numbers . 59 1 2 CONTENTS 5.7 Exercises . 60 6 Dirichlet characters and Gauss sums 62 6.1 Characters . 62 6.2 Gauss sums, Jacobi sums . 65 6.3 Applications . 67 6.4 Exercises . 71 7 Sums of squares, Waring's problem 72 7.1 Sums of two squares . 72 7.2 Sums of more than two squares . 74 7.3 The 15-theorem . 77 7.4 Waring's problem . 78 7.5 Exercises . 81 8 Continued fractions 82 8.1 Introduction .
    [Show full text]