Wilson's Theorem Modulo P^ 2 Derived from Faulhaber Polynomials
Total Page:16
File Type:pdf, Size:1020Kb
Wilson's theorem modulo p2 derived from Faulhaber polynomials Claire Levaillant December 17, 2019 Abstract. First, we present a new proof of Glaisher's formula dating from 1900 and concerning Wilson's theorem modulo p2. Our proof uses p-adic numbers and Faulhaber's formula for the sums of powers (17th century), as well as more recent results on Faulhaber's coefficients obtained by Gessel and Viennot. Second, by using our method, we find a simpler proof than Sun's proof regarding a formula for (p − 1)! modulo p3, and one that can be generalized to higher powers of p. Third, we can derive from our method a way to compute the Stirling numbers p modulo p3, thus improving Glaisher and Sun's own results from 120 s years ago and 20 years ago respectively. Last, our method allows to find new congruences on convolutions of divided Bernoulli numbers and convolutions of divided Bernoulli numbers with Bernoulli numbers. 1 Introduction The paper arose from an analogy between two polynomials, namely p−1 p−1 f(X) = X − 1 2 Z=p Z[X] and g(X) = X + (p − 1)! 2 Zp[X]; where p is a prime number, Z=p Z denotes the field with p elements and Zp denotes the ring of p-adic integers, see [23]. The analogy is concerned with the way each polynomial factors and with the congruences properties that can be derived in each case from the relations be- arXiv:1912.06652v1 [math.CO] 13 Dec 2019 tween the coefficients and the roots. Below, we describe the analogy in details. • First we look at the factorization of f(X) and the properties modulo p that can be derived from it. By Fermat's little theorem we have, p−1 k = 1 in Z=p Z 1 for all integers k with 1 ≤ k ≤ p − 1. It provides the p − 1 roots of f, and so f factors in Z=p Z[X] as f(X) = (X − 1)(X − 2) ::: (X − (p − 1)) Let us introduce some notations concerning the divided factorial which shall be useful throughout the paper. Notation 1. Let r be an integer with 1 ≤ r ≤ p − 2 and let i1; i2; : : : ; ir be r integers with 1 ≤ ik ≤ p − 1 for all k with 1 ≤ k ≤ r. We define the divided factorial (p − 1)!i1;:::; ir as (p − 1)! i1;:::; ir (p − 1)! := Qr k=1 ik From looking at the constant coefficient of f in both factored and expanded forms, we retrieve Wilson's theorem which reads (p − 1)! = −1 mod p This constitutes one of many proofs for Wilson's theorem. By looking at the other coefficients in both factored and expanded forms, we derive more relations, namely, p−1 X (p − 1)!k = 0 mod p (Coefficient in X) k=1 X (p − 1)!i;j = 0 mod p (Coefficient in X2) 1≤i<j≤p−1 . X (p − 1)!i1;:::; ir = 0 mod p (Coefficient in Xr) 1≤i1<i2<···<ir ≤p−1 . X (p − 1)!i1;:::; ip−2 = 0 mod p (Coefficient in Xp−2) 1≤i1<i2<···<ip−2≤p−1 The numbers to the left hand side are also the respective unsigned coeffi- cients of x2; x3; : : : ; xr+1; : : : ; xp−1 in the falling factorial x(x − 1)(x − 2) ::: (x − (p − 1)); that is the unsigned Stirling numbers of the first kind. p p p p ; ;:::; ;:::; 2 3 r + 1 p − 1 2 We summarize the preceding equalities by p 82 ≤ k ≤ p − 1; p j k These numbers were introduced by James Stirling in the 18th century. The bracket notation gets promoted by Donald Knuth by analogy with binomial coefficients. Namely, we have the well-known divisibility relations p 81 ≤ k ≤ p − 1; p j ; k a straightforward consequence of the definition of the binomial coefficients and of the Gauss lemma. Note that another equivalent definition for the unsigned Stirling numbers n of the first kind is the following: counts the number of permutations s of n elements that decompose into a product of s disjoint cycles, see [37] for a quantum combinatorial proof. While there exist lots of proofs for Wilson's theorem, little is advertised about Wilson's theorem modulo p2 or higher powers. It is even said at the end of 2 [25]: "There is no explicit formula for (p − 1)! mod p , ie the integer n1 in 2 (p − 1)! ≡ −1 + n1p mod p is no evident function of p". In [26], Wilson's theorem modulo p2 is only stated as 2 p−1 2p−2 p − 1 2 (p − 1)! ≡ (−1) 2 2 ! (mod p ) 2 However, British mathematician J.W.L. Glaisher, son of meteorologist and pi- oneer both of weather forecasting and of photography James Glaisher who in particular held the world record for the highest altitude reached in a balloon, found a formula for (p − 1)! mod p2 in 1900 [22] that uses Bernoulli numbers. His method is elegant, smart and straightforward, but does not generalize to higher powers of p. A hundred years later, in 2000, Z-H Sun provides a different perspective, see [49]. His method even allows him to compute (p − 1)! mod p3, thus generalizing Glaisher's result whose work had only led to a formula for (p−1)! mod p2. Sun's result modulo p3 is expressed in terms of divided Bernoulli numbers. Sun's ma- chinery is heavy but really beautiful and well exposed. First, he determines the 3 generalized harmonic numbers Hp−1;k modulo p . For that, he uses a battery of tools, namely: Euler's theorem ; Bernoulli's formula for the sums of powers modulo p3 together with von Staudt{Clausen theorem [53][13] that determines the fractional part of Bernoulli numbers ; K¨ummer'scongruences from 1851 involving Bernoulli numbers [36] and their generalizations modulo p2 by Sun himself [49] in the case when k ≤ p − 3, and an unpublished result of [50] giving 2 3 formulas for p Bk(p−1) modulo p and p respectively for dealing with k = p − 2 and k = p − 1 respectively. Second, he uses Newton's formulas together with 3 Bernoulli's formula modulo p2 in order to derive the Stirling numbers modulo p2. From there he obtains in particular a congruence for (p−1)! mod p3 that was first proven by Carlitz [9]. Likewise, by using Newton's formulas with general- ized harmonic numbers and what Sun denotes as the conjugates of the Stirling numbers, he finds a formula for the conjugate Stirling numbers modulo p2 fol- lowed by a "conjugate Carlitz congruence". By combining the various identities, he then derives a pioneering formula for (p − 1)! mod p3 that is expressed only in terms of Bernoulli numbers. Yet another twenty years later, we offer a third perspective which does not make any use of the Newton formulas. The polynomial g with p-adic integer coeffi- cients introduced earlier happens to be an even more powerful tool than the polynomial f for better prime precision. It highlights once again the beauty and efficiency of p-adic numbers when investigating local properties at powers of primes. Explicitly: • We now investigate the factorization of g(X). Let k be an integer with 1 ≤ k ≤ p − 1. First and foremost, we have p−1 g(k) = k + (p − 1)! 2 p Zp (1) by definition of g and by using Wilson's theorem modulo p. Moreover, we have 0 p−2 g (k) = (p − 1) k 62 p Zp (2) as kp−2 = k−1 6= 0 in Z=p Z. By Hensel's lemma [23], each nonzero k of Z=p Z lifts to a unique root xk of g such that k − xk 2 p Zp Write xk = k + p tk with tk 2 Zp Then g factors in Zp[X] as follows. g(X) = (X − 1 − p t1) ::: (X − (p − 1) − p tp−1) 2 We will see that by looking at the constant coefficient of g modulo p Zp, we obtain the next coefficient in the p-adic expansion of (p − 1)!, namely Theorem 1. p−1 X 2 (p − 1)! = −1 + p δ0(k) mod p ; k=1 with δ0(k) defined for each 1 ≤ k ≤ p − 1 by p−1 2 k = 1 + p δ0(k) mod p 4 Working out the sum of Theorem 1 modulo p2 by using the Faulhaber poly- nomials for the sums of powers and by using Faulhaber's neat statement on the relationship between the two trailing coefficients of the polynomial for odd powers (work done in the 17th century, [17]), we obtain Wilson's theorem one step further, namely modulo p2. p(p−1) Theorem 2. Let p be an odd prime number. Set p = 2l+1 and a = 2 . Let c1(l) be the trailing coefficient in the Faulhaber polynomial p−1 X p l+1 3 2 k = cl(l) a + ::: + c2(l) a + c1(l) a (3) k=1 We have, (i) 8 i 2 f 1; : : : ; lg; ci(l) 2 Zp 1 2 (ii)(p − 1)! = 2 c1(l) − p mod p Corollary 1. (Glaisher 1900 [22]) 2 (p − 1)! = p Bp−1 − p mod p Corollary 1 can be derived directly from Theorem 1 by using the Bernoulli formula for the sum of powers smartly modulo p2 (like Sun did in [49], see the proof of his congruence (5:1)) together with von Staudt{Clausen theorem. For future reference, Bernoulli's formula for the sums of powers reads: p m X 1 X m + 1 km = B pm+1−j; m + 1 j j k=1 j=0 where we wrote the formula using Bernoulli numbers of the second type, 1 1 that is B1 = 2 instead of B1 = − 2 .