Fermat’s small theorem is a number theory theorem that states that [1] :
|
In the language of comparison theory : comparable to 1 modulo simple . Formal Record:
For example, if then and
Fermat’s small theorem is a special case of Euler’s theorem [2] , which, in turn, is a special case of Carmichael ’s theorem and Lagrange’s theorem for groups for finite cyclic groups . Pierre Fermat stated the theorem without proof, the first proof was given by Leonard Euler and Gottfried Wilhelm Leibniz .
Fermat's small theorem has become one of the main theorems for research not only in the theory of integers, but also in wider areas [3] [4] .
Content
History
Pierre Fermat formulated the initial statement of the theorem by 1640 . “I was illuminated with a bright light,” wrote Fermat, first reporting this discovery in his letter (1640) [5] . Interestingly, this phrase - “mi par di veder un gran lume” [6] is written in Italian, although the whole letter is in French.
The letter of October 18, 1640 by Pierre Fermat to the French mathematician Bernard Frenickl contained the following provision [7] :
Each prime number divides [in the original - “measures”] one of the degrees of any progression minus 1, for which the exponent is a divisor of this prime number minus 1; and after the first degree has been found that satisfies this property, all numbers having exponents that are multiples of the first exponent satisfy the same property.
Original text (Fr.)Tout nombre premier mesure infailliblement une des puissances −1 de quelque progression que ce soit, et l'exposant de la dite puissance est sous-multiple du nombre premier donné −1; et, après qu'on a trouvé la première puissance qui satisfait à la question, toutes celles dont les exposants sont multiples de l'exposant de la première satisfont tout de même à la question.
As an example, Fermat gives a progression of 3, 9, 27, 81, 243, 729 ... and a prime number 13. 13 divides 27 - 1 (the exponent for 27 is 3, and 3 divides 13 - 1), which implies that 13 also divides 729 - 1 (exponent for 729 is 6 and a multiple of 3).
Fermat himself left his theorem without proof. The first mathematician to find evidence was Gottfried Wilhelm Leibniz, from the manuscripts of which it follows that he knew the proof until 1683. Leibniz did not know about Fermat's result and discovered the theorem independently [8] . However, Leibniz's work was not published, and Euler published the proof in 1736 in the article Theorematum Quorundam ad Numeros Primos Spectantium Demonstratio [9] . The proof of Fermat’s small theorem, based on the fact that if runs through the complete system of deductions modulo then for any composition also runs through the complete modulus deduction system , was published in 1806 by James Ivory [10] .
Number called Private Farm . Russian mathematician D. A. Grave suggested that the private Fermat is never divided by For primes not exceeding 1000, this is true, but a counterexample was soon discovered: for The private farm is divided into 1093 [11] .
Alternative wording
The following wording is distinguished by the absence of a requirement that the number not divided into :
|
For example, if then and .
It is easy to show that this formulation is reduced to the original. So if divided by then and , i.e. . If not divided by then the expression equivalent to the expression [2] .
Evidence
Consider a homogeneous polynomial of degree p with n variables:
Opening the brackets, we obtain the coefficient of the monomial (where at least two of the degrees are not equal to zero, and the sum of all degrees is equal to p ) is called a multinomial coefficient and is calculated by the formula
Since degrees less than then the denominator of the multinomial coefficient does not contain factors that could be reduced by therefore, all coefficients of the polynomial multiple Thus, the following identity is true:
Where Is a polynomial with positive integer coefficients.
Let now in this identity then (here n is the number of variables in the original polynomial expression), therefore, multiple . If a not divisible by prime it is divided into [12] .
Let us prove that for any prime p and a non-negative integer a , a p - a is divisible by p . We prove by induction on a .
Base. For a = 0 , a p - a = 0 and is divided by p .
Transition. Let the statement be true for a = k . We prove it for a = k + 1 .
But k p - k is divisible by p by the induction hypothesis. The remaining terms contain a factor . For , the numerator of this fraction is divided by p , and the denominator is coprime with p , therefore, divided by p . Since all the individual terms are divided by p , the whole sum also divided by p .
For negative a and odd p, the theorem can easily be proved by substituting b = - a . For negative a and p = 2, the truth of the theorem follows from a 2 - a = a ( a - 1) [13] .
One of the simplest proofs of Fermat’s Little Theorem is based on a corollary of the Lagrange theorem from group theory , which states that the order of an element of a finite group divides the order of the group.
Recall that the order of a finite group called the number of its elements, and the order of the element - the smallest natural indicator of its degree equal to a single element groups .
Let be - finite group of order . From the order of the element divides , follows that .
Consider the field deductions modulo . Integer deduction will be denoted by . Nonzero field elements form a group with respect to multiplication.
The order of this group is obviously equal . Its single element is . It follows that for each number not divisible by , but that just means comparison [one]
Lemma. For any prime and integer not multiple , works and numbers when dividing modulo by in the remainder give the same numbers perhaps recorded in some other order.
Composition and any of the numbers not multiple therefore, the balance cannot be obtained . All residues are different. Let us prove the last statement by contradiction. Let two works and give when divided by identical residues, then the difference multiple which is impossible because not multiple . Total exists different non-zero remainders from dividing by .
Since, according to the above lemma, the remainders from the division of the numbers a , 2 a , 3 a , ..., ( p - 1) a are accurate to the permutation of the numbers 1, 2, 3, ..., p - 1 , then . From here . The last relation can be reduced by ( p - 1)! , since all factors are numbers coprime to the base p , as a result we obtain the required statement [14] .
Consequences and generalizations
- If a Is a prime number then in the field equality holds [15] .
- If a Is a prime number other than 2 and 5, then the number whose decimal notation contains only numbers , divided by . It follows that for any integer , which is not divisible by 2 or 5, we can choose a number consisting of only nine, which is divisible by . This fact is used in the theory of signs of divisibility and periodic fractions [16] .
- Fermat’s small theorem allows us to find prime divisors of numbers of the form and . [17] .
- A generalization of Fermat's small theorem on algebraic numbers is a theorem formulated by in 1839: let - the roots of the normalized polynomial degrees d , and p is a prime. Then [18] .
- From Fermat’s small theorem follows Wilson’s theorem : Natural number is simple if and only if divided by p .
states that if a polynomial of degree divisible by prime with more than incongruent modulo (i.e. having different residues when divided by ) variable values then it is divided into at any value .
Consider a polynomial
- Where - Prime number.
Then we find:
By virtue of Fermat’s small theorem, all these numbers are divisible by a prime therefore comparison It has incongruent decisions. On the other hand, the degree of the polynomial is only it follows that the polynomial divided by for all values and in particular when
Means
And if, in addition to this, prove that for all difficult natural , Besides , then we get the proof of the theorem. [nineteen]
Applications
Pseudo-Simple Farm Numbers and Simplicity Testing
Fermat's small theorem can be used to test the number for simplicity: if not divided by , then p is a composite number . However, the converse of Fermat’s small theorem is generally false: if and Are coprime numbers and divided by p , then the number can be both simple and compound. In the case when is compound, it is called pseudo-simple Fermat at the base of a .
For example, the Chinese hypothesis states that is a prime if and only if [20] . Here is a direct statement that if simple then is a special case of Fermat's little theorem. The converse is that if then simple, there is a special case of reversing Fermat's small theorem. This appeal is false: Sarrus in 1820 found that the number divided by , because divided by . but - composite number : . Thus, 341 is a pseudo-prime number in base 2 [21] .
In the general case, the inverse of Fermat's small theorem also fails. A counterexample in the general case is Carmichael numbers : these are numbers p , which are pseudo-simple with respect to the base a for all a , coprime to p. The smallest Carmichael number is 561.
Since the inverse of Fermat’s small theorem is incorrect, the fulfillment of its condition does not guarantee that p is a prime . Nevertheless, Fermat’s small theorem underlies Fermat ’s simplicity test [22] . The Fermat test is a probabilistic simplicity test: if the theorem is not satisfied, then the number is exactly compound, and if it is true, then the number is prime with some probability . Other probabilistic methods include the Solovey – Strassen test and the Miller – Rabin test ; the latter relies to some extent on Fermat’s small theorem [23] . There is also a deterministic algorithm: Test Agrawala - Kayala - Saxen .
In addition, the following two statements are true. If the pair (2, n ) satisfy the comparison then a couple of numbers also satisfy him. For any prime number n and any a > 2 such that , value is the pseudo-simple Fermat number at base a [24] .
RSA Algorithm
Fermat’s small theorem is also used in proving the correctness of the RSA encryption algorithm [2] .
See also
- Fermat's Great Theorem
- Euler's theorem
- Strong pseudo prime
- RSA
Notes
- ↑ 1 2 Winberg, 2008 , p. 43.
- ↑ 1 2 3 Sagalovich, 2014 , p. 34.
- ↑ Encyclopedia of Elementary Mathematics, Book 1, Arithmetic, P. Aleksandrov, A. I. Markushevich, A. Y. Khinchin, 1961. — P. 280
- ↑ Z. I. Borevich, I.R. Shafarevich. Number theory - M: Science, 1972. - 175 p.
- ↑ Translation of the Encyclopedic Dictionary of the Young Mathematician. Comp. A.P. Savin . - M .: Pedagogy, 1989 .-- 352 p. Article: Fermat's little theorem.
- ↑ Fermat a Mersenne. <juin? 1640> Oeuvres de Fermat. Tome II. Paris: Tannery & Henry, 1904, pp. 195-199.
- ↑ Letter from Pierre Fermat , October 18, 1640, to the French mathematician Bernard Frenikl . Archived December 22, 2006.
- ↑ Danzig, T. Numbers - the language of science, 2008 , p. 231-234.
- ↑ David C. Marshall, Edward Odell, Michael Starbird . Number Theory Through Inquiry Archived September 16, 2012 on Wayback Machine . - 2006. - pp. 62-63.
- ↑ John J. O'Connor and Edmund F. Robertson . Sir James Ivory (English) - biography in the MacTutor archive.
- ↑ Vilenkin N. Ya., Shibasov L.P. Shibasova 3. F. Behind the pages of a mathematics textbook: Arithmetic. Algebra. Geometry. - M .: Education, 1996.- S. 30. - 320 p. - ISBN 5-09-006575-6 .
- ↑ Danzig, T. Numbers - the language of science, 2008 , p. 231-234.
- ↑ Winberg, 2008 , p. 44.
- ↑ QUANTUM, 2000, No. 1, Sender V, Spivak A. Fermat’s Little Theorem.
- ↑ Akritas A. Fundamentals of Computer Algebra with Applications, p. 83.
- ↑ Danzig, T. Numbers - the language of science, 2008 , p. 232-234.
- ↑ QUANTUM, 2000, No. 3, Sender B, Spivak A, Fermat's Small Theorem
- ↑ Winberg, 2008 , p. 49.
- ↑ Danzig, T. Numbers - the language of science, 2008 , p. 234-238.
- ↑ Ribenboim, P. (1996), The New Book of Prime Number Records, New York: Springer-Verlag, pp. 103-105, ISBN 0-387-94457-5 .
- ↑ Weisstein EW Fermat Pseudoprime .. - 2005 ..
- ↑ Gabidulin E.M., Kshevetsky A.S., Kolybelnikov A.I. Information security: a training manual. - M .: MIPT, 2011 .-- S. 236-237. - 262 p. with. - ISBN 978-5-7417-0377-9 .
- ↑ Williams HC Primality testing on a computer (English) // Ars Combin. - 1978. - Vol. T. 5 , no. No. 12 . - P. 127-185 .
- ↑ Shitov Yu.A. Numerical methods in cryptography.
Literature
- Aleksandrov P. C., Markushevich A.I., Khinchin A. Ya. Encyclopedia of Elementary Mathematics. Volume I: Arithmetic. - 1951.
- Borevich Z. I., Shafarevich I. R. Theory of numbers . - M .: Nauka, 1972.- 510 p. Archived January 8, 2011 on Wayback Machine
- Vinberg, E. B. Malaya Fermat's theorem and its generalizations // Mat. drift - M .: Publishing House of the Moscow Center for Scientific and Technical Education, 2008. - V. 12. - P. 43–53.
- Gindikin S. G. "Fermat's Small Theorem" . - Quantum , 1972. - No. 10 . (inaccessible link)
- Danzig, T. Numbers - the language of science . - M .: Technosphere, 2008 .-- ISBN 978-5-94836-172-7 .
- Nesterenko Yu. V. Algorithmic problems of number theory . - 1997. - Vol. 2 . - No. third series .
- Sagalovich Yu. L. Introduction to algebraic codes - 3rd ed., Rev. and add. - M .: IPPI RAS , 2014 .-- 310 p. - ISBN 978-5-901158-24-1
- Senderov V, Spivak A. Malaya Fermat's theorem // Quantum. - 2000. - No. 1 .
- Senderov V, Spivak A. Malaya Fermat's theorem // Quantum. - 2000. - No. 3 .