Manifest. This is an answer to MathOverflow question #68595 (which also gives a new answer to #66959). It was produced by GPT-6 Astra (Researcher subscription). The main proof was found in one 3-minute shot, and expanded and polished over several rounds of edits. I have proofread the whole text except for Section § 8 . This text is in the public domain. –Darij
Statement and finite differences
Start with an integer-valued function on the integers. Replace each value by the average of that value and the next p − 1 p-1 p − 1 values, where p p p is a prime. The new values need not be integers. If they are, we can repeat the operation and ask whether they remain integers at each stage. A classical olympiad problem, proposed by D. Tamarkin at the All-Russian Mathematical Olympiad 1993 [9 ] , concerns this process for p = 2 p = 2 p = 2 : It claims that if every stage is integer-valued, then the same is true when we start with the squares of the original values. In this note, we consider the case of general p p p and taking the entries to the p p p th power; we also ask what happens when we assume integrality for only finitely many stages. The results revealed are weaker but no less beautiful.
We begin by fixing the notation. We consider the Q \mathbb{Q} Q -vector space Q Z \mathbb{Q}^{\mathbb{Z}} Q Z , which consists of all functions f : Z → Q f : \mathbb{Z} \to\mathbb{Q} f : Z → Q . These functions can be regarded as infinite sequences
( … , f ( − 2 ) , f ( − 1 ) , f ( 0 ) , f ( 1 ) , f ( 2 ) , … ) (\ldots, f(-2), f(-1), f(0), f(1), f(2), \ldots) ( … , f ( − 2 ) , f ( − 1 ) , f ( 0 ) , f ( 1 ) , f ( 2 ) , … )
(infinite in both directions). Such a function f : Z → Q f:\mathbb{Z}\to\mathbb{Q} f : Z → Q is said to be integral if all its values f ( n ) f(n) f ( n ) are integers, i.e., if f ∈ Z Z f\in\mathbb{Z}^{\mathbb{Z}} f ∈ Z Z . Sums, differences, and integer multiples of integral functions are again integral; in other words, Z Z \mathbb{Z}^{\mathbb{Z}} Z Z is a Z \mathbb{Z} Z -submodule of Q Z \mathbb{Q}^{\mathbb{Z}} Q Z .
We shall consider linear (that is, Q \mathbb{Q} Q -linear) operators on Q Z \mathbb{Q}^{\mathbb{Z}} Q Z such as the shift and finite-difference operators defined below. Here linearity means that A ( a f + b g ) = a A f + b A g A(af+bg)=aAf+bAg A ( a f + b g ) = a A f + b A g for rational numbers a , b a,b a , b and functions f , g f,g f , g . If A A A is such an operator and f ∈ Q Z f\in\mathbb{Q}^{\mathbb{Z}} f ∈ Q Z is a function, then we will write A f ( n ) Af(n) A f ( n ) for the value ( A f ) ( n ) (Af)(n) ( A f ) ( n ) .
Fix a prime p p p . Define a linear operator F p : Q Z → Q Z F_p:\mathbb{Q}^{\mathbb{Z}}\to\mathbb{Q}^{\mathbb{Z}} F p : Q Z → Q Z (called the averaging operator ) by
( F p f ) ( n ) = 1 p ∑ r = 0 p − 1 f ( n + r ) for all f ∈ Q Z and n ∈ Z . (F_pf)(n)=\frac{1}{p}\sum_{r=0}^{p-1}f(n+r)\qquad\text{for all }f\in\mathbb{Q}^{\mathbb{Z}}\text{ and }n\in\mathbb{Z}. ( F p f ) ( n ) = p 1 r = 0 ∑ p − 1 f ( n + r ) for all f ∈ Q Z and n ∈ Z .
That is, F p F_p F p acts on a function f f f by replacing each value f ( n ) f(n) f ( n ) by the average of p p p consecutive values (starting with f ( n ) f(n) f ( n ) ). Furthermore, for a function f : Z → Q f:\mathbb{Z}\to\mathbb{Q} f : Z → Q , define the function f p : Z → Q f^p:\mathbb{Z}\to\mathbb{Q} f p : Z → Q by
f p ( n ) = f ( n ) p for all n ∈ Z . f^p(n)=f(n)^p\qquad\text{for all }n\in\mathbb{Z}. f p ( n ) = f ( n ) p for all n ∈ Z .
Operator powers mean repeated application: F p 2 f = F p ( F p f ) F_p^2f=F_p(F_pf) F p 2 f = F p ( F p f ) , and F p 0 f = f F_p^0f=f F p 0 f = f . These are different from the pointwise powers f p f^p f p .
A function f : Z → Q f:\mathbb{Z}\to\mathbb{Q} f : Z → Q will be called ℓ \ell ℓ -average-integral for a given nonnegative integer ℓ \ell ℓ if F p k f F_p^kf F p k f is integral for every 0 ≤ k ≤ ℓ 0\leq k\leq\ell 0 ≤ k ≤ ℓ . Note that an ℓ \ell ℓ -average-integral function f f f is thus automatically integral (since we can take k = 0 k=0 k = 0 and obtain the integrality of F p k f = F p 0 f = f F_p^kf=F_p^0f=f F p k f = F p 0 f = f ). Thus the parameter ℓ \ell ℓ in “ℓ \ell ℓ -average-integral” records how many successive averaging steps we require to give integers.
We say that f : Z → Q f:\mathbb{Z}\to\mathbb{Q} f : Z → Q is average-integral if F p k f F_p^kf F p k f is integral for every k ≥ 0 k\geq0 k ≥ 0 . Of course, this is the same as being ℓ \ell ℓ -average-integral for all ℓ ≥ 0 \ell\geq0 ℓ ≥ 0 simultaneously. For example, when p = 2 p=2 p = 2 , the function f : n ↦ 2 n f:n\mapsto2n f : n ↦ 2 n is average-integral: its k k k th average-iterate F p k f F_p^kf F p k f is n ↦ 2 n + k n\mapsto2n+k n ↦ 2 n + k .
We will prove the following two properties of ℓ \ell ℓ -average-integrality:
Theorem 1.1. Let 0 ≤ ℓ ≤ p 0\leq\ell\leq p 0 ≤ ℓ ≤ p . If f : Z → Z f:\mathbb{Z}\to\mathbb{Z} f : Z → Z is ℓ \ell ℓ -average-integral, then f p f^p f p is ℓ \ell ℓ -average-integral.
Theorem 1.2. Let ℓ ≥ 0 \ell\geq0 ℓ ≥ 0 be arbitrary.
For p = 2 p=2 p = 2 , the ℓ \ell ℓ -average-integral functions form a ring under pointwise addition and pointwise multiplication.
For p = 3 p=3 p = 3 , if f f f is ℓ \ell ℓ -average-integral, then f 3 f^3 f 3 is ℓ \ell ℓ -average-integral.
Corollary 1.3. The set of all average-integral functions is closed under pointwise products for p = 2 p=2 p = 2 and under pointwise cubes (i.e., under the map f ↦ f 3 f\mapsto f^3 f ↦ f 3 ) for $p=3.
Theorem 1.1 answers a question asked in [1 ] . Corollary 1.3 was already discussed in [2 ] . For primes p > 3 p>3 p > 3 , the bound in Theorem 1.1 cannot be increased: Proposition 6.1 gives a function whose p p p th power first fails at round p + 1 p+1 p + 1 .
Our proofs use several ideas suggested by Zarathustra Brady (“zeb” on MathOverflow) in his answer to [2 ] . They have two major ingredients in common. First we translate integrality of averages into divisibility of finite differences. Then we use polynomial interpolation to study these divisibilities on a finite interval. This proves Theorem 1.1 in § 3 . To handle arbitrarily many rounds for p = 2 , 3 p=2,3 p = 2 , 3 (and thus prove Theorem 1.2 and Corollary 1.3), we will need a fuller description of the polynomials that remain integral under averaging. Our main tool is the finite difference operator Δ : Q Z → Q Z \Delta:\mathbb{Q}^{\mathbb{Z}}\to\mathbb{Q}^{\mathbb{Z}} Δ : Q Z → Q Z defined by
Δ f ( n ) = f ( n + 1 ) − f ( n ) for all f ∈ Q Z and n ∈ Z . \Delta f(n)=f(n+1)-f(n) \qquad\text{for all } f\in\mathbb{Q}^{\mathbb{Z}}\text{ and }n\in\mathbb{Z}. Δ f ( n ) = f ( n + 1 ) − f ( n ) for all f ∈ Q Z and n ∈ Z .
Unlike averaging, taking a finite difference always preserves integrality; i.e., we have Δ f ∈ Z Z \Delta f\in\mathbb{Z}^{\mathbb{Z}} Δ f ∈ Z Z for each f ∈ Z Z f\in\mathbb{Z}^{\mathbb{Z}} f ∈ Z Z . We will express the condition on repeated averages as a condition on the divisibility of repeated differences.
Define the shift operator E : Q Z → Q Z E:\mathbb{Q}^{\mathbb{Z}}\to\mathbb{Q}^{\mathbb{Z}} E : Q Z → Q Z by
E f ( n ) = f ( n + 1 ) for all f ∈ Q Z and n ∈ Z . Ef(n)=f(n+1) \qquad\text{for all } f\in\mathbb{Q}^{\mathbb{Z}}\text{ and }n\in\mathbb{Z}. E f ( n ) = f ( n + 1 ) for all f ∈ Q Z and n ∈ Z .
Thus, Δ = E − id \Delta=E-\operatorname{id} Δ = E − id . All three operators F p F_p F p , E E E , and Δ \Delta Δ are Q \mathbb{Q} Q -linear endomorphisms of Q Z \mathbb{Q}^{\mathbb{Z}} Q Z . The latter two preserve Z Z \mathbb{Z}^{\mathbb{Z}} Z Z . The first few differences of a function f : Z → Q f:\mathbb{Z}\to\mathbb{Q} f : Z → Q are
Δ f ( n ) = f ( n + 1 ) − f ( n ) , Δ 2 f ( n ) = f ( n + 2 ) − 2 f ( n + 1 ) + f ( n ) . \Delta f(n)=f(n+1)-f(n), \qquad\Delta^2f(n)=f(n+2)-2f(n+1)+f(n). Δ f ( n ) = f ( n + 1 ) − f ( n ) , Δ 2 f ( n ) = f ( n + 2 ) − 2 f ( n + 1 ) + f ( n ) .
Set q = p − 1 q=p-1 q = p − 1 . All divisibility statements about functions below are pointwise: for example, Δ j f ∈ p k Z Z \Delta^j f\in p^k\mathbb{Z}^{\mathbb{Z}} Δ j f ∈ p k Z Z means that p k p^k p k divides Δ j f ( n ) \Delta^j f(n) Δ j f ( n ) for every integer n n n . The next lemma says that – as far as integrality is concerned – one averaging step “corresponds” to a block of q = p − 1 q=p-1 q = p − 1 difference steps. For instance, when p = 3 p=3 p = 3 and f f f is integral, two integral averaging steps are equivalent to the two conditions 3 ∣ Δ 2 f ( n ) 3\mid\Delta^2f(n) 3 ∣ Δ 2 f ( n ) and 9 ∣ Δ 4 f ( n ) 9\mid\Delta^4f(n) 9 ∣ Δ 4 f ( n ) for every n n n .
Lemma 1.4 (Difference criterion). For a function f : Z → Q f:\mathbb{Z}\to\mathbb{Q} f : Z → Q and any nonnegative integer ℓ ≥ 0 \ell\geq0 ℓ ≥ 0 , the following conditions are equivalent:
The function f f f is ℓ \ell ℓ -average-integral.
We have Δ k q f ∈ p k Z Z \Delta^{kq}f\in p^k\mathbb{Z}^{\mathbb{Z}} Δ k q f ∈ p k Z Z for all 0 ≤ k ≤ ℓ 0\leq k\leq\ell 0 ≤ k ≤ ℓ .
We have Δ j f ∈ p ⌊ j / q ⌋ Z Z \Delta^j f\in p^{\lfloor j/q\rfloor}\mathbb{Z}^{\mathbb{Z}} Δ j f ∈ p ⌊ j / q ⌋ Z Z for all 0 ≤ j ≤ ℓ q 0\leq j\leq\ell q 0 ≤ j ≤ ℓ q .
Proof. We assume that f f f is integral, since all three of the ostensibly equivalent conditions imply this.2
We first compare one averaging step with q q q difference steps. If A ( X ) = ∑ i a i X i A(X)=\sum_i a_iX^i A ( X ) = ∑ i a i X i is a polynomial, then A ( E ) A(E) A ( E ) means the operator ∑ i a i E i \sum_i a_iE^i ∑ i a i E i . Since ( E i f ) ( n ) = f ( n + i ) (E^i f)(n)=f(n+i) ( E i f ) ( n ) = f ( n + i ) , we can rewrite the definition of F p F_p F p as
F p = 1 p ( id + E + ⋯ + E p − 1 ) . (1) F_p=\frac{1}{p}\left(\operatorname{id}+E+\cdots+E^{p-1}\right). \tag*{(1)} F p = p 1 ( id + E + ⋯ + E p − 1 ) . (1)
Hence,
p F p = id + E + ⋯ + E p − 1 . (2) pF_p=\operatorname{id}+E+\cdots+E^{p-1}. \tag*{(2)} p F p = id + E + ⋯ + E p − 1 . (2)
Moreover, from Δ = E − i d \Delta= E - \mathrm{id} Δ = E − id and q = p − 1 q = p - 1 q = p − 1 , we obtain Δ q = ( E − i d ) p − 1 \Delta^{q} = (E - \mathrm{id})^{p-1} Δ q = ( E − id ) p − 1 . These formulas explain why the following polynomial congruence is useful:
1 + X + ⋯ + X p − 1 ≡ ( X − 1 ) p − 1 ( m o d p ) . (3) 1 + X + \cdots+ X^{p-1} \equiv(X - 1)^{p-1} \pmod{p}. \tag*{(3)} 1 + X + ⋯ + X p − 1 ≡ ( X − 1 ) p − 1 ( mod p ) . (3)
To see this congruence, reduce modulo p p p and use X p − 1 = ( X − 1 ) p X^{p} - 1 = (X - 1)^{p} X p − 1 = ( X − 1 ) p . Dividing both sides by X − 1 X - 1 X − 1 in the polynomial ring F p [ X ] \mathbb{F}_{p}[X] F p [ X ] gives the congruence (3) . That is, in Z [ X ] \mathbb{Z}[X] Z [ X ] , we have
1 + X + ⋯ + X p − 1 = ( X − 1 ) p − 1 + p B ( X ) for some B ( X ) ∈ Z [ X ] . 1 + X + \cdots+ X^{p-1} = (X - 1)^{p-1} + pB(X) \qquad\text{for some } B(X) \in\mathbb{Z}[X]. 1 + X + ⋯ + X p − 1 = ( X − 1 ) p − 1 + pB ( X ) for some B ( X ) ∈ Z [ X ] .
Now substitute the shift operator E E E for X X X in this equality. This gives the operator identity
p F p = Δ q + p B ( E ) pF_{p} = \Delta^{q} + pB(E) p F p = Δ q + pB ( E )
(since p F p = i d + E + ⋯ + E p − 1 pF_{p} = \mathrm{id} + E + \cdots+ E^{p-1} p F p = id + E + ⋯ + E p − 1 and Δ q = ( E − i d ) p − 1 \Delta^{q} = (E - \mathrm{id})^{p-1} Δ q = ( E − id ) p − 1 ). Putting
D = Δ q p (4) D = \frac{\Delta^{q}}{p} \tag*{(4)} D = p Δ q (4)
and dividing by p p p , we obtain
F p = D + B ( E ) , (5) F_{p} = D + B(E), \tag*{(5)} F p = D + B ( E ) , (5)
so that D = F p − B ( E ) D = F_{p} - B(E) D = F p − B ( E ) and B ( E ) = F p − D B(E) = F_{p} - D B ( E ) = F p − D . The important point is that B ( E ) B(E) B ( E ) preserves Z Z \mathbb{Z}^{\mathbb{Z}} Z Z : it is an integer linear combination of shifts. For a given integral function f f f , the identity (5) therefore shows that F p f F_{p}f F p f is integral if and only if D f Df D f is integral. For example, when p = 3 p = 3 p = 3 , we have B ( X ) = X B(X) = X B ( X ) = X and
F 3 f ( n ) = f ( n + 1 ) + f ( n + 2 ) − 2 f ( n + 1 ) + f ( n ) 3 . F_{3}f(n) = f(n + 1) + \frac{f(n + 2) - 2f(n + 1) + f(n)}{3}. F 3 f ( n ) = f ( n + 1 ) + 3 f ( n + 2 ) − 2 f ( n + 1 ) + f ( n ) .
The numerator in the fraction is Δ 2 f ( n ) \Delta^{2}f(n) Δ 2 f ( n ) , making the one-step divisibility condition particularly transparent.
The same comparison works for every iterate. All three operators F p F_{p} F p , D D D , B ( E ) B(E) B ( E ) are polynomials in E E E , so they commute, and the binomial theorem applies. If F p i f F_{p}^{i}f F p i f is integral for 0 ≤ i ≤ k 0 \leq i \leq k 0 ≤ i ≤ k , then (from D = F p − B ( E ) D = F_{p} - B(E) D = F p − B ( E ) ) we see that
D k f = ( F p − B ( E ) ) k f = ∑ i = 0 k ( k i ) ( − B ( E ) ) k − i F p i f D^{k}f = (F_{p} - B(E))^{k}f = \sum_{i=0}^{k} \binom{k}{i} \left(-B(E)\right)^{k-i}F_{p}^{i}f D k f = ( F p − B ( E ) ) k f = i = 0 ∑ k ( i k ) ( − B ( E ) ) k − i F p i f
is integral as well: each summand is obtained from an integral function (viz., F p i f F_{p}^{i}f F p i f ) by applications of the operator B ( E ) B(E) B ( E ) (which preserves Z Z \mathbb{Z}^{\mathbb{Z}} Z Z ) and integer linear combinations. Conversely, suppose that D i f D^{i}f D i f is integral for every 0 ≤ i ≤ k 0 \leq i \leq k 0 ≤ i ≤ k . Using F p = D + B ( E ) F_{p} = D + B(E) F p = D + B ( E ) and the commutativity of D D D and B ( E ) B(E) B ( E ) , we obtain
F p k f = ( D + B ( E ) ) k f = ∑ i = 0 k ( k i ) B ( E ) k − i D i f . F_{p}^{k}f = (D + B(E))^{k}f = \sum_{i=0}^{k} \binom{k}{i} B(E)^{k-i}D^{i}f. F p k f = ( D + B ( E ) ) k f = i = 0 ∑ k ( i k ) B ( E ) k − i D i f .
Each D i f D^i f D i f is integral by assumption, and applying B ( E ) B(E) B ( E ) any number of times preserves integrality. Multiplication by the integer ( k i ) \binom{k}{i} ( i k ) also preserves integrality, as does summing the resulting functions. Thus F p k f F_p^k f F p k f is integral. Altogether, we thus have shown that F p k f F_p^k f F p k f is integral for every 0 ≤ k ≤ ℓ 0 \le k \le\ell 0 ≤ k ≤ ℓ if and only if D k f D^k f D k f is integral for every 0 ≤ k ≤ ℓ 0 \le k \le\ell 0 ≤ k ≤ ℓ . Since D k f = Δ k q f / p k D^k f = \Delta^{kq}f/p^k D k f = Δ k q f / p k , this proves the equivalence of conditions 1 and 2 in the lemma.
It remains to show that conditions 2 and 3 are equivalent. Clearly, condition 3 implies condition 2 (by applying it to j = k q j=kq j = k q ). Conversely, consider a difference order j j j that is not necessarily a multiple of q q q . Dividing j j j by q q q with remainder, we write j j j as j = k q + r j=kq+r j = k q + r , where 0 ≤ r < q 0 \le r < q 0 ≤ r < q ; then k = ⌊ j / q ⌋ ≤ ℓ k=\lfloor j/q\rfloor\le\ell k = ⌊ j / q ⌋ ≤ ℓ . Condition 2 thus says that Δ k q f = p k g \Delta^{kq}f=p^k g Δ k q f = p k g for an integral function g g g . Taking r r r more differences then gives Δ j f = p k Δ r g \Delta^j f=p^k\Delta^r g Δ j f = p k Δ r g (since j = k q + r j=kq+r j = k q + r ), which is still divisible by p k p^k p k at every integer. That is, Δ j f ∈ p k Z Z = p ⌊ j / q ⌋ Z Z \Delta^j f \in p^k\mathbb{Z}^{\mathbb{Z}}=p^{\lfloor j/q\rfloor}\mathbb{Z}^{\mathbb{Z}} Δ j f ∈ p k Z Z = p ⌊ j / q ⌋ Z Z . This yields condition 3.
The polynomial congruence
Our next step is a statement about polynomials. We will later use it on a polynomial that agrees with f f f on a finite interval. A small amount of notation lets us keep track of powers of p p p without being concerned about other prime factors.
Let R = Z ( p ) R=\mathbb{Z}_{(p)} R = Z ( p ) , the subring of Q \mathbb{Q} Q consisting of fractions (of the form r / s r/s r / s with r , s ∈ Z r,s\in\mathbb{Z} r , s ∈ Z ) whose denominators are not divisible by p p p . For example, if p = 3 p=3 p = 3 , then 1 / 2 1/2 1/2 belongs to R R R , whereas 1 / 3 1/3 1/3 does not. A statement such as a ∈ p k R a\in p^kR a ∈ p k R (for a given nonnegative integer k k k ) means that, after cancellation, the numerator of a a a has at least k k k factors of p p p and its denominator has none. When a a a is an integer, this is just the usual divisibility by p k p^k p k .
For a nonzero rational number a a a , write v p ( a ) v_p(a) v p ( a ) for the exponent of p p p in its numerator minus the exponent in its denominator, and set v p ( 0 ) = + ∞ v_p(0)=+\infty v p ( 0 ) = + ∞ . Thus a ∈ p k R a\in p^kR a ∈ p k R is equivalent to v p ( a ) ≥ k v_p(a)\ge k v p ( a ) ≥ k . We will use Legendre’s formula (also known as de Polignac’s formula)
v p ( t ! ) = ∑ i ≥ 1 ⌊ t p i ⌋ for all t ≥ 0. (6) v_p(t!)=\sum_{i\ge1}\left\lfloor\frac{t}{p^i}\right\rfloor\qquad\text{for all }t\ge0. \tag*{(6)} v p ( t !) = i ≥ 1 ∑ ⌊ p i t ⌋ for all t ≥ 0. (6)
Indeed, among 1 , … , t 1,\ldots,t 1 , … , t , each multiple of p p p contributes one factor of p p p , each multiple of p 2 p^2 p 2 contributes a further factor, and so on. The sum counts every factor exactly once.
We use the same operators E E E , Δ \Delta Δ , F p F_p F p on polynomials as on functions:
( E H ) ( x ) = H ( x + 1 ) , ( Δ H ) ( x ) = H ( x + 1 ) − H ( x ) , ( F p H ) ( x ) = 1 p ∑ r = 0 p − 1 H ( x + r ) . (EH)(x)=H(x+1),\qquad(\Delta H)(x)=H(x+1)-H(x),\qquad(F_pH)(x)=\frac{1}{p}\sum_{r=0}^{p-1}H(x+r). ( E H ) ( x ) = H ( x + 1 ) , ( Δ H ) ( x ) = H ( x + 1 ) − H ( x ) , ( F p H ) ( x ) = p 1 r = 0 ∑ p − 1 H ( x + r ) .
These definitions are compatible with evaluation at integers. More precisely, for any H ∈ Q [ x ] H\in\mathbb{Q}[x] H ∈ Q [ x ] , let ev ( H ) ∈ Q Z \operatorname{ev}(H)\in\mathbb{Q}^{\mathbb{Z}} ev ( H ) ∈ Q Z be the function n ↦ H ( n ) n\mapsto H(n) n ↦ H ( n ) . Then
ev ( A H ) = A ev ( H ) for A = E , Δ , F p . (7) \operatorname{ev}(AH)=A\operatorname{ev}(H)\qquad\text{for }A=E,\Delta,F_p. \tag*{(7)} ev ( A H ) = A ev ( H ) for A = E , Δ , F p . (7)
For example, both sides for A = Δ A=\Delta A = Δ , evaluated at n n n , equal H ( n + 1 ) − H ( n ) H(n+1)-H(n) H ( n + 1 ) − H ( n ) . Thus it makes no difference whether we first take a polynomial difference and then evaluate, or first evaluate and then take the difference of the resulting function. The same holds for any number of iterations. We will use this compatibility when passing between polynomials and functions.
For finite differences, a convenient R R R -module basis of the polynomial ring R [ x ] R[x] R [ x ] is given by the falling factorials
( x ) j = x ( x − 1 ) ⋯ ( x − j + 1 ) for all j ≥ 0. (x)_j = x(x-1)\cdots(x-j+1) \qquad\text{for all } j \ge0. ( x ) j = x ( x − 1 ) ⋯ ( x − j + 1 ) for all j ≥ 0.
The first few are ( x ) 0 = 1 (x)_0 = 1 ( x ) 0 = 1 , ( x ) 1 = x (x)_1 = x ( x ) 1 = x , ( x ) 2 = x ( x − 1 ) (x)_2 = x(x-1) ( x ) 2 = x ( x − 1 ) , and ( x ) 3 = x ( x − 1 ) ( x − 2 ) (x)_3 = x(x-1)(x-2) ( x ) 3 = x ( x − 1 ) ( x − 2 ) . Each has leading coefficient 1 1 1 , with one polynomial of each degree. We can therefore expand any polynomial in R [ x ] R[x] R [ x ] uniquely in this basis: subtract a multiple of the falling factorial of highest degree, then repeat with the remainder. For example,
x 2 = ( x ) 2 + ( x ) 1 , x 3 = ( x ) 3 + 3 ( x ) 2 + ( x ) 1 . x^2 = (x)_2 + (x)_1,\qquad x^3 = (x)_3 + 3(x)_2 + (x)_1. x 2 = ( x ) 2 + ( x ) 1 , x 3 = ( x ) 3 + 3 ( x ) 2 + ( x ) 1 .
So each polynomial P ∈ R [ x ] P \in R[x] P ∈ R [ x ] can be written uniquely as ∑ j ≥ 0 c j ( x ) j \sum_{j\ge0} c_j(x)_j ∑ j ≥ 0 c j ( x ) j with c j ∈ R c_j \in R c j ∈ R (such that c j = 0 c_j = 0 c j = 0 for all but finitely many j j j ). The coefficients c j c_j c j are called the falling-factorial coefficients of P P P . This holds equally well for any commutative ring in place of R R R .
The falling factorials also satisfy Δ ( x ) 0 = 0 \Delta(x)_0 = 0 Δ ( x ) 0 = 0 and
Δ ( x ) j = j ( x ) j − 1 for all j ≥ 1. (8) \Delta(x)_j = j(x)_{j-1} \qquad\text{for all } j \ge1. \tag*{(8)} Δ ( x ) j = j ( x ) j − 1 for all j ≥ 1. (8)
This follows by factoring ( x ) j − 1 (x)_{j-1} ( x ) j − 1 out of ( x + 1 ) j − ( x ) j (x+1)_j - (x)_j ( x + 1 ) j − ( x ) j ; the remaining factor is ( x + 1 ) − ( x − j + 1 ) = j (x+1) - (x-j+1) = j ( x + 1 ) − ( x − j + 1 ) = j . Iterating (8) and setting x = 0 x = 0 x = 0 shows that, if H ( x ) = ∑ j ≥ 0 c j ( x ) j H(x) = \sum_{j\ge0} c_j(x)_j H ( x ) = ∑ j ≥ 0 c j ( x ) j , then
Δ m H ( 0 ) = m ! c m for all m ≥ 0. (9) \Delta^m H(0) = m!c_m \qquad\text{for all } m \ge0. \tag*{(9)} Δ m H ( 0 ) = m ! c m for all m ≥ 0. (9)
Indeed, terms c j ( x ) j c_j(x)_j c j ( x ) j with j < m j < m j < m have disappeared after m m m differences, and those with j > m j > m j > m still have a factor x x x , so only the term for j = m j = m j = m remains when we evaluate at x = 0 x = 0 x = 0 .
We first isolate a fact about falling-factorial coefficients over F p \mathbb{F}_p F p , the field of residues modulo p p p . The falling factorials form a basis of F p [ x ] \mathbb{F}_p[x] F p [ x ] by the same leading-coefficient argument as above. For P ∈ F p [ x ] P \in\mathbb{F}_p[x] P ∈ F p [ x ] , write [ ( x ) i ] P [(x)_i]P [( x ) i ] P for the ( x ) i (x)_i ( x ) i -coefficient of P P P in this basis. We set [ ( x ) i ] P = 0 [(x)_i]P = 0 [( x ) i ] P = 0 when i < 0 i < 0 i < 0 ; this is a convention for coefficients and does not define falling factorials with negative indices.
Multiplication by x p − x x^p-x x p − x has a particularly simple effect on this basis: it shifts every index up by p p p .
Lemma 2.1. Put y = x p − x ∈ F p [ x ] y = x^p-x \in\mathbb{F}_p[x] y = x p − x ∈ F p [ x ] . Then:
We have
y ( x ) i = ( x ) p + i for all i ≥ 0. (10) y(x)_i = (x)_{p+i} \qquad\text{for all } i \ge0. \tag*{(10)} y ( x ) i = ( x ) p + i for all i ≥ 0. (10) More generally, we have
y a ( x ) j = ( x ) a p + j for all a , j ≥ 0. (11) y^a(x)_j = (x)_{ap+j} \qquad\text{for all } a,j \ge0. \tag*{(11)} y a ( x ) j = ( x ) a p + j for all a , j ≥ 0. (11) For every P ∈ F p [ x ] P \in\mathbb{F}_p[x] P ∈ F p [ x ] , we have
[ ( x ) i ] ( y P ) = [ ( x ) i − p ] P for all integers i . (12) [(x)_i](yP) = [(x)_{i-p}]P \qquad\text{for all integers } i. \tag*{(12)} [( x ) i ] ( y P ) = [( x ) i − p ] P for all integers i . (12)
More generally, for every P ∈ F p [ x ] P \in\mathbb{F}_p[x] P ∈ F p [ x ] , we have
[ ( x ) i ] ( y a P ) = [ ( x ) i − a p ] P for all a ≥ 0 and all integers i . (13) [(x)_i](y^aP)=[(x)_{i-ap}]P\qquad\text{for all }a\ge0\text{ and all integers }i. \tag*{(13)} [( x ) i ] ( y a P ) = [( x ) i − a p ] P for all a ≥ 0 and all integers i . (13)
Proof. We first recall the classical finite-field property
x ( x − 1 ) ⋯ ( x − p + 1 ) = x p − x , x(x-1)\cdots(x-p+1)=x^p-x, x ( x − 1 ) ⋯ ( x − p + 1 ) = x p − x ,
which holds because both sides are monic polynomials of degree p p p whose roots are precisely the elements of F p \mathbb{F}_p F p . This identity is also known as Lagrange’s congruence; see [8 Section 10] , where it is used in an umbral proof of Touchard’s congruence for Bell numbers. Now, we study the product ( x ) p + i = x ( x − 1 ) ⋯ ( x − p − i + 1 ) (x)_{p+i}=x(x-1)\cdots(x-p-i+1) ( x ) p + i = x ( x − 1 ) ⋯ ( x − p − i + 1 ) . Its first p p p factors have product
x ( x − 1 ) ⋯ ( x − p + 1 ) = x p − x = y . x(x-1)\cdots(x-p+1)=x^p-x=y. x ( x − 1 ) ⋯ ( x − p + 1 ) = x p − x = y .
Its remaining i i i factors are x − p , x − p − 1 , … , x − p − i + 1 x-p,x-p-1,\ldots,x-p-i+1 x − p , x − p − 1 , … , x − p − i + 1 , which (because we are in characteristic p p p ) are precisely the same as x , x − 1 , … , x − i + 1 x,x-1,\ldots,x-i+1 x , x − 1 , … , x − i + 1 ; thus their product is ( x ) i (x)_i ( x ) i . So we obtain y ( x ) i = ( x ) p + i y(x)_i=(x)_{p+i} y ( x ) i = ( x ) p + i . This proves (10) (including the case i = 0 i=0 i = 0 , when the remaining product is empty). Applying (10) successively a a a times yields (11) .
To prove (12) , write P = ∑ j ≥ 0 c j ( x ) j P=\sum_{j\ge0}c_j(x)_j P = ∑ j ≥ 0 c j ( x ) j . Part (1) gives
y P = ∑ j ≥ 0 c j ( x ) p + j . yP=\sum_{j\ge0}c_j(x)_{p+j}. y P = j ≥ 0 ∑ c j ( x ) p + j .
Thus the ( x ) i (x)_i ( x ) i -coefficient is c i − p c_{i-p} c i − p if i ≥ p i\ge p i ≥ p , and is zero otherwise. This is exactly (12) , with our convention for negative indices. To prove (13) , apply (12) successively a a a times. □
We now use this shift to describe which coefficients of a p p p th power can occur at indices less than p 2 p^2 p 2 .
Lemma 2.2. Let H ∈ F p [ x ] H\in\mathbb{F}_p[x] H ∈ F p [ x ] , and let Q Q Q be the remainder when H H H is divided by x p − x x^p-x x p − x . Suppose that deg Q ≤ d \deg Q\le d deg Q ≤ d , where 0 ≤ d < p 0\le d<p 0 ≤ d < p , and write
H ( x ) p = ∑ j ≥ 0 γ j ( x ) j with γ j ∈ F p H(x)^p=\sum_{j\ge0}\gamma_j(x)_j\qquad\text{with }\gamma_j\in\mathbb{F}_p H ( x ) p = j ≥ 0 ∑ γ j ( x ) j with γ j ∈ F p (so that γ j \gamma_j γ j is the ( x ) j (x)_j ( x ) j -coefficient of H ( x ) p H(x)^p H ( x ) p for each j ≥ 0 j\ge0 j ≥ 0 ). Then
γ a p + b = 0 for all 0 ≤ a , b < p with a + b > d . \gamma_{ap+b}=0\qquad\text{for all }0\le a,b<p\text{ with }a+b>d. γ a p + b = 0 for all 0 ≤ a , b < p with a + b > d . Thus a nonzero ( x ) j (x)_j ( x ) j -coefficient at an index j < p 2 j<p^2 j < p 2 can occur only when the quotient and remainder of j j j upon division by p p p sum to at most d d d .
Proof. Put y = x p − x y=x^p-x y = x p − x and write H = Q + y T H=Q+yT H = Q + y T . We use the Frobenius endomorphism of F p [ x ] \mathbb{F}_p[x] F p [ x ] , namely the map U ↦ U p U\mapsto U^p U ↦ U p . This map preserves sums and products: in particular, ( U + V ) p = U p + V p (U+V)^p=U^p+V^p ( U + V ) p = U p + V p , by the binomial theorem in characteristic p p p . Also, it fixes every coefficient in F p \mathbb{F}_p F p , so Q ( x ) p = Q ( x p ) Q(x)^p=Q(x^p) Q ( x ) p = Q ( x p ) . Thus, from H = Q + y T H=Q+yT H = Q + y T , we obtain
H ( x ) p = Q ( x ) p + y p T ( x ) p = Q ( x p ) + y p T ( x ) p = Q ( x + y ) + y p T ( x ) p (14) H(x)^p=Q(x)^p+y^pT(x)^p=Q(x^p)+y^pT(x)^p=Q(x+y)+y^pT(x)^p \tag*{(14)} H ( x ) p = Q ( x ) p + y p T ( x ) p = Q ( x p ) + y p T ( x ) p = Q ( x + y ) + y p T ( x ) p (14) :::`
(since x p = x + y x^p=x+y x p = x + y ). We examine the falling-factorial coefficients of the two terms separately; each time we will show that the ( x ) a p + b (x)_{ap+b} ( x ) a p + b -coefficient is 0 0 0 whenever 0 ≤ a , b < p 0 \le a,b < p 0 ≤ a , b < p with a + b > d a+b>d a + b > d .
For the second term, apply the coefficient-shift identity (13) with a = p a=p a = p and P = T ( x ) p P=T(x)^p P = T ( x ) p . It gives
[ ( x ) i ] ( y p T ( x ) p ) = [ ( x ) i − p 2 ] ( T ( x ) p ) = 0 for all 0 ≤ i < p 2 . [(x)_i]\left(y^pT(x)^p\right)=[(x)_{i-p^2}]\left(T(x)^p\right)=0 \qquad\text{for all }0\le i<p^2. [( x ) i ] ( y p T ( x ) p ) = [( x ) i − p 2 ] ( T ( x ) p ) = 0 for all 0 ≤ i < p 2 .
The last equality holds because i − p 2 < 0 i-p^2<0 i − p 2 < 0 . Thus the second term contributes nothing at any of the indices under consideration.
It remains to examine Q ( x + y ) Q(x+y) Q ( x + y ) . Expand it first as a polynomial in two formal variables x x x and y y y , before making the substitution y = x p − x y=x^p-x y = x p − x . Because deg Q ≤ d \deg Q\le d deg Q ≤ d , every term is a multiple of x b y a x^b y^a x b y a with a + b ≤ d a+b\le d a + b ≤ d . Express x b x^b x b as a linear combination of ( x ) t (x)_t ( x ) t for 0 ≤ t ≤ b 0\le t\le b 0 ≤ t ≤ b . Multiplication by y a y^a y a then turns these into ( x ) a p + t (x)_{ap+t} ( x ) a p + t , by (11) . Thus, Q ( x + y ) Q(x+y) Q ( x + y ) is expanded as an F p \mathbb{F}_p F p -linear combination of falling factorials ( x ) a p + t (x)_{ap+t} ( x ) a p + t whose indices a p + t ap+t a p + t satisfy
a , t ≥ 0 and a + t ≤ d . a,t\ge0 \quad\text{and}\quad a+t\le d. a , t ≥ 0 and a + t ≤ d .
Since d < p d<p d < p , we have a , t < p a,t<p a , t < p , so a a a and t t t are precisely the quotient and remainder when the index is divided by p p p . This proves the claimed vanishing.
Lemma 2.3. Suppose P ∈ R [ x ] P\in R[x] P ∈ R [ x ] satisfies
∑ r = 0 p − 1 P ( r ) ∈ p R . (15) \sum_{r=0}^{p-1}P(r)\in pR. \tag*{(15)} r = 0 ∑ p − 1 P ( r ) ∈ pR . (15) Then
Δ k ( p − 1 ) ( P p ) ( 0 ) ∈ p k R for all 1 ≤ k ≤ p . \Delta^{k(p-1)}(P^p)(0)\in p^kR \qquad\text{for all }1\le k\le p. Δ k ( p − 1 ) ( P p ) ( 0 ) ∈ p k R for all 1 ≤ k ≤ p .
Proof. Write P ( x ) p = ∑ j ≥ 0 c j ( x ) j P(x)^p=\sum_{j\ge0}c_j(x)_j P ( x ) p = ∑ j ≥ 0 c j ( x ) j with c j ∈ R c_j\in R c j ∈ R . For m = k ( p − 1 ) m=k(p-1) m = k ( p − 1 ) and 1 ≤ k ≤ p 1\le k\le p 1 ≤ k ≤ p , we have m < p 2 m<p^2 m < p 2 and thus, by (6) , we have
v p ( m ! ) = ⌊ m p ⌋ = k − 1. (16) v_p(m!)=\left\lfloor\frac{m}{p}\right\rfloor=k-1. \tag*{(16)} v p ( m !) = ⌊ p m ⌋ = k − 1. (16)
(For the last equality, note that m / p = k − k / p m/p=k-k/p m / p = k − k / p . Since 1 ≤ k ≤ p 1\le k\le p 1 ≤ k ≤ p , we have 0 < k / p ≤ 1 0<k/p\le1 0 < k / p ≤ 1 , and hence k − 1 ≤ m / p < k k-1\le m/p<k k − 1 ≤ m / p < k . Thus ⌊ m / p ⌋ = k − 1 \lfloor m/p\rfloor=k-1 ⌊ m / p ⌋ = k − 1 .) By (9) , the difference we want to study is
Δ m ( P p ) ( 0 ) = m ! c m . \Delta^m(P^p)(0)=m!c_m. Δ m ( P p ) ( 0 ) = m ! c m .
We need this product to be divisible by p k p^k p k . Formula (16) says that m ! m! m ! already supplies exactly k − 1 k-1 k − 1 factors of p p p . Thus we need just one more factor from c m c_m c m : our remaining task is to show c m ∈ p R c_m\in pR c m ∈ pR for m = k ( p − 1 ) m=k(p-1) m = k ( p − 1 ) .
This is a question modulo p p p . Fractions in R R R can be reduced modulo p p p by inverting their denominators in F p \mathbb{F}_p F p (there is a canonical ring isomorphism R / p R ≅ Z / p Z = F p R/pR\cong\mathbb{Z}/p\mathbb{Z}=\mathbb{F}_p R / pR ≅ Z / p Z = F p ), so we may now work in F p [ x ] \mathbb{F}_p[x] F p [ x ] . Here F p \mathbb{F}_p F p is the field of residues modulo p p p , and P ‾ \overline{P} P denotes the reduction of P P P . The coefficients in the falling-factorial expansion also reduce modulo p p p : reducing the identity P ‾ p = ∑ j ≥ 0 c j ( x ) j \overline{P}^{p}=\sum_{j\ge0}c_j(x)_j P p = ∑ j ≥ 0 c j ( x ) j modulo p p p gives P ‾ p = ∑ j ≥ 0 c j ‾ ( x ) j \overline{P}^{p}=\sum_{j\ge0}\overline{c_j}(x)_j P p = ∑ j ≥ 0 c j ( x ) j , so that the falling-factorial coefficients of P ‾ p \overline{P}^{p} P p are the c j ‾ \overline{c_j} c j . That is, c j ‾ = [ ( x ) j ] ( P ‾ p ) \overline{c_j}=[(x)_j](\overline{P}^{p}) c j = [( x ) j ] ( P p ) for each j ≥ 0 j\ge0 j ≥ 0 .
We first replace P ‾ \overline{P} P by a polynomial of degree less than p p p that takes the same values on F p \mathbb{F}_p F p . Put y = x p − x y=x^p-x y = x p − x and divide P ‾ \overline{P} P by this monic polynomial y y y to obtain
P ‾ = Q + y T , where Q , T ∈ F p [ x ] with deg Q < p . \overline{P}=Q+yT,\qquad\text{where }Q,T\in\mathbb{F}_p[x]\text{ with }\deg Q<p. P = Q + y T , where Q , T ∈ F p [ x ] with deg Q < p .
Fermat’s little theorem says that y ( r ) = 0 y(r)=0 y ( r ) = 0 for every r ∈ F p r\in\mathbb{F}_p r ∈ F p . Hence Q ( r ) = P ‾ ( r ) Q(r)=\overline{P}(r) Q ( r ) = P ( r ) for every r ∈ F p r\in\mathbb{F}_p r ∈ F p , and thus our hypothesis (15) rewrites as
∑ r ∈ F p Q ( r ) = 0. (17) \sum_{r\in\mathbb{F}_p}Q(r)=0. \tag*{(17)} r ∈ F p ∑ Q ( r ) = 0. (17)
This forces the coefficient of x p − 1 x^{p-1} x p − 1 in Q Q Q to vanish. The reason is the famous power-sum identity
∑ r ∈ F p r b = { 0 , if 0 ≤ b < p − 1 , − 1 , if b = p − 1 for every 0 ≤ b < p . (18) \sum_{r\in\mathbb{F}_p}r^b=
\begin{cases}
0, & \text{if }0\le b<p-1,\\
-1, & \text{if }b=p-1
\end{cases}
\qquad\text{for every }0\le b<p. \tag*{(18)} r ∈ F p ∑ r b = { 0 , − 1 , if 0 ≤ b < p − 1 , if b = p − 1 for every 0 ≤ b < p . (18)
which we prove in Appendix § 9 . Applying (18) term by term to Q Q Q shows that ∑ r ∈ F p Q ( r ) \sum_{r\in\mathbb{F}_p}Q(r) ∑ r ∈ F p Q ( r ) is the negative of the x p − 1 x^{p-1} x p − 1 -coefficient of Q Q Q (since deg Q < p \deg Q<p deg Q < p ). Thus, (17) tells us that the latter coefficient is 0. In other words,
deg Q ≤ p − 2. \deg Q\le p-2. deg Q ≤ p − 2.
We can therefore apply Lemma 2.2 to H = P ‾ H=\overline{P} H = P and d = p − 2 d=p-2 d = p − 2 . It says that the falling-factorial coefficient [ ( x ) a p + b ] ( P ‾ p ) [(x)_{ap+b}](\overline{P}^{p}) [( x ) a p + b ] ( P p ) at an index a p + b ap+b a p + b vanishes whenever 0 ≤ a , b < p 0\le a,b<p 0 ≤ a , b < p and a + b > p − 2 a+b>p-2 a + b > p − 2 . Our desired indices k ( p − 1 ) k(p-1) k ( p − 1 ) (for 1 ≤ k ≤ p 1\le k\le p 1 ≤ k ≤ p ) have exactly this property, since they can be written as
k ( p − 1 ) = a p + b for a = k − 1 and b = p − k . k(p-1)=ap+b\qquad\text{for }a=k-1\text{ and }b=p-k. k ( p − 1 ) = a p + b for a = k − 1 and b = p − k .
(and these values a a a and b b b satisfy 0 ≤ a < p 0\le a<p 0 ≤ a < p and 0 ≤ b < p 0\le b<p 0 ≤ b < p and a + b = ( k − 1 ) + ( p − k ) = p − 1 > p − 2 a+b=(k-1)+(p-k)=p-1>p-2 a + b = ( k − 1 ) + ( p − k ) = p − 1 > p − 2 ). Consequently, [ ( x ) k ( p − 1 ) ] ( P ‾ p ) [(x)_{k(p-1)}](\overline{P}^{p}) [( x ) k ( p − 1 ) ] ( P p ) vanishes. This says exactly that c k ( p − 1 ) ∈ p R c_{k(p-1)}\in pR c k ( p − 1 ) ∈ pR , supplying the one factor of p p p still needed to complete the proof. □
Remark 2.4. For example, when p = 5 p=5 p = 5 and deg Q ≤ 3 \deg Q\le3 deg Q ≤ 3 , the possible indices less than 25 in the falling-factorial expansion of P ‾ 5 \overline{P}^{5} P 5 are
0 , 1 , 2 , 3 , 5 , 6 , 7 , 10 , 11 , 15. 0,1,2,3,\quad5,6,7,\quad10,11,\quad15. 0 , 1 , 2 , 3 , 5 , 6 , 7 , 10 , 11 , 15.
None is one of 4, 8, 12, 16, 20, the indices needed for the first five averaging depths. The factorials at these latter indices have respective 5-adic valuations 0, 1, 2, 3, 4; the lemma supplies one further factor of 5.
From local interpolation to arbitrary functions
Recall that our interest lies in functions f : Z → Q f:\mathbb{Z}\to\mathbb{Q} f : Z → Q , not in polynomials. However, a value of the m m m -th finite difference Δ m f \Delta^m f Δ m f depends on only m + 1 m+1 m + 1 values of f f f . Thus, even though our function f f f need not itself be a polynomial, we can replace it by a polynomial separately on each interval of the required length. To be precise, expanding
Δ m = ( E − id ) m = ∑ r = 0 m ( − 1 ) m − r ( m r ) E r \Delta^m=(E-\operatorname{id})^m=\sum_{r=0}^{m}(-1)^{m-r}\binom{m}{r}E^r Δ m = ( E − id ) m = r = 0 ∑ m ( − 1 ) m − r ( r m ) E r
gives
Δ m f ( n ) = ∑ r = 0 m ( − 1 ) m − r ( m r ) f ( n + r ) . (19) \Delta^m f(n)=\sum_{r=0}^{m}(-1)^{m-r}\binom{m}{r}f(n+r). \tag*{(19)} Δ m f ( n ) = r = 0 ∑ m ( − 1 ) m − r ( r m ) f ( n + r ) . (19)
This formula makes precise how an interval of agreement shrinks when we take differences. Suppose two functions f , g : Z → Q f,g:\mathbb{Z}\to\mathbb{Q} f , g : Z → Q agree at every integer in an interval [ a , b ] [a,b] [ a , b ] , where a ≤ b a\le b a ≤ b are integers. Then
Δ j f ( t ) = Δ j g ( t ) for all 0 ≤ j ≤ b − a and a ≤ t ≤ b − j . (20) \Delta^j f(t)=\Delta^j g(t)\qquad\text{for all }0\le j\le b-a\text{ and }a\le t\le b-j. \tag*{(20)} Δ j f ( t ) = Δ j g ( t ) for all 0 ≤ j ≤ b − a and a ≤ t ≤ b − j . (20)
Indeed, the formula for Δ j f ( t ) \Delta^j f(t) Δ j f ( t ) uses only the values at t , t + 1 , … , t + j t,t+1,\ldots,t+j t , t + 1 , … , t + j . All these arguments lie in [ a , b ] [a,b] [ a , b ] , so each value of f f f in the sum can be replaced by the corresponding value of g g g . Thus each further application of Δ \Delta Δ loses the rightmost point of the interval of agreement, and j j j iterations of Δ \Delta Δ lose its last j j j points.
In particular, suppose a polynomial P ∈ Q [ x ] P\in\mathbb{Q}[x] P ∈ Q [ x ] satisfies P ( r ) = f ( n + r ) P(r)=f(n+r) P ( r ) = f ( n + r ) for all 0 ≤ r ≤ m 0\le r\le m 0 ≤ r ≤ m (where n n n and m ≥ 0 m\ge0 m ≥ 0 are two fixed integers). Applying the same observation to the functions r ↦ P ( r ) r\mapsto P(r) r ↦ P ( r ) and r ↦ f ( n + r ) r\mapsto f(n+r) r ↦ f ( n + r ) gives
( Δ j P ) ( r ) = ( Δ j f ) ( n + r ) for all 0 ≤ j ≤ m and 0 ≤ r ≤ m − j . (21) (\Delta^jP)(r)=(\Delta^j f)(n+r)\qquad\text{for all }0\le j\le m\text{ and }0\le r\le m-j. \tag*{(21)} ( Δ j P ) ( r ) = ( Δ j f ) ( n + r ) for all 0 ≤ j ≤ m and 0 ≤ r ≤ m − j . (21)
Here polynomial differences agree with differences of the evaluated function by (7) . For j = m j=m j = m , only r = 0 r=0 r = 0 remains: Δ m P ( 0 ) = Δ m f ( n ) \Delta^mP(0)=\Delta^m f(n) Δ m P ( 0 ) = Δ m f ( n ) . The same reasoning applies to P p P^p P p and f p f^p f p , since taking pointwise powers preserves the original equalities of values.
Newton interpolation constructs the polynomial we need directly from these differences. Recall that for each j ≥ 0 j\ge0 j ≥ 0 , the polynomial ( x j ) = ( x ) j / j ! ∈ Q [ x ] \binom{x}{j}=(x)_j/j!\in\mathbb{Q}[x] ( j x ) = ( x ) j / j ! ∈ Q [ x ] is integer-valued.3 For any function f : Z → Q f:\mathbb{Z}\to\mathbb{Q} f : Z → Q , the polynomial
P ( x ) = ∑ j = 0 m Δ j f ( n ) ( x j ) (22) P(x)=\sum_{j=0}^{m}\Delta^j f(n)\binom{x}{j} \tag*{(22)} P ( x ) = j = 0 ∑ m Δ j f ( n ) ( j x ) (22)
(known as the m m m -th Newton interpolant of f f f based at n n n ) agrees with f ( n + x ) f(n+x) f ( n + x ) at the integers x = 0 , … , m x=0,\ldots,m x = 0 , … , m . For example, to match three values u = f ( n ) u=f(n) u = f ( n ) , v = f ( n + 1 ) v=f(n+1) v = f ( n + 1 ) , and w = f ( n + 2 ) w=f(n+2) w = f ( n + 2 ) , the formula gives
P ( x ) = u + ( v − u ) x + ( w − 2 v + u ) x ( x − 1 ) 2 . P(x)=u+(v-u)x+(w-2v+u)\frac{x(x-1)}{2}. P ( x ) = u + ( v − u ) x + ( w − 2 v + u ) 2 x ( x − 1 ) .
Substitution of x = 0 , 1 , 2 x=0,1,2 x = 0 , 1 , 2 gives u , v , w u,v,w u , v , w , respectively. In the general case, the formula
P ( r ) = f ( n + r ) for all 0 ≤ r ≤ m (23) P(r)=f(n+r)\qquad\text{for all }0\le r\le m \tag*{(23)} P ( r ) = f ( n + r ) for all 0 ≤ r ≤ m (23)
is verified by the same binomial theorem we used for the operators: since E = id + Δ E=\operatorname{id}+\Delta E = id + Δ , for 0 ≤ r ≤ m 0\le r\le m 0 ≤ r ≤ m we have
f ( n + r ) = ( E r f ) ( n ) = ( ( id + Δ ) r f ) ( n ) = ∑ j = 0 r ( r j ) Δ j f ( n ) = P ( r ) f(n+r)=(E^r f)(n)=((\operatorname{id}+\Delta)^r f)(n)=\sum_{j=0}^{r}\binom{r}{j}\Delta^j f(n)=P(r) f ( n + r ) = ( E r f ) ( n ) = (( id + Δ ) r f ) ( n ) = j = 0 ∑ r ( j r ) Δ j f ( n ) = P ( r )
(here, all addends with j > r j>r j > r in P ( r ) P(r) P ( r ) vanish because ( r j ) = 0 \binom{r}{j}=0 ( j r ) = 0 ). We apply this formula using the divisibility supplied by Lemma 1.4 .
Proof of Theorem 1.1 . The case ℓ = 0 \ell=0 ℓ = 0 says only that f p f^p f p is integral, which is clear since f f f is integral. Suppose 1 ≤ ℓ ≤ p 1\le\ell\le p 1 ≤ ℓ ≤ p . Set q = p − 1 q=p-1 q = p − 1 . By Lemma 1.4 (equivalence of the first two conditions, applied to f p f^p f p instead of f f f ), our goal is to show that Δ k q ( f p ) ∈ p k Z \Delta^{kq}(f^p)\in p^k\mathbb{Z} Δ k q ( f p ) ∈ p k Z for all 0 ≤ k ≤ ℓ 0\le k\le\ell 0 ≤ k ≤ ℓ . In other words, we must prove that
p k ∣ Δ k q ( f p ) ( n ) for all n ∈ Z and 0 ≤ k ≤ ℓ . (24) p^k\mid\Delta^{kq}(f^p)(n)\qquad\text{for all }n\in\mathbb{Z}\text{ and }0\le k\le\ell. \tag*{(24)} p k ∣ Δ k q ( f p ) ( n ) for all n ∈ Z and 0 ≤ k ≤ ℓ . (24)
Fix such n n n and k k k , and put m = k q m=kq m = k q ; thus, m = k q ≤ ℓ q ≤ p q = p ( p − 1 ) < p 2 m=kq\le\ell q\le pq=p(p-1)<p^2 m = k q ≤ ℓ q ≤ pq = p ( p − 1 ) < p 2 . We assume that k ≥ 1 k\ge1 k ≥ 1 , since the case k = 0 k=0 k = 0 is obvious. Define the polynomial
P ( x ) = ∑ j = 0 m Δ j f ( n ) ( x j ) = ∑ j = 0 m Δ j f ( n ) j ! ( x ) j . (25) P(x)=\sum_{j=0}^{m}\Delta^j f(n)\binom{x}{j}=\sum_{j=0}^{m}\frac{\Delta^j f(n)}{j!}(x)_j. \tag*{(25)} P ( x ) = j = 0 ∑ m Δ j f ( n ) ( j x ) = j = 0 ∑ m j ! Δ j f ( n ) ( x ) j . (25)
Newton interpolation – i.e., the formula (23) – gives
P ( r ) = f ( n + r ) for all 0 ≤ r ≤ m . (26) P(r)=f(n+r)\qquad\text{for all }0\le r\le m. \tag*{(26)} P ( r ) = f ( n + r ) for all 0 ≤ r ≤ m . (26)
To apply Lemma 2.3 , we must check its two hypotheses. First, the coefficients of P P P must belong to R R R . This is not automatic from the interpolation formula: division by j ! j! j ! might put p p p in a denominator. However, the difference bounds prevent this. Indeed, Lemma 1.4 (this time applied to f f f itself) yields that each j ≤ m j\le m j ≤ m satisfies Δ j f ∈ p ⌊ j / ( p − 1 ) ⌋ Z \Delta^j f\in p^{\lfloor j/(p-1)\rfloor}\mathbb{Z} Δ j f ∈ p ⌊ j / ( p − 1 )⌋ Z (since j ≤ m ≤ ℓ q j\le m\le\ell q j ≤ m ≤ ℓ q ), so that v p ( Δ j f ( n ) ) ≥ ⌊ j / ( p − 1 ) ⌋ v_p(\Delta^j f(n))\ge\lfloor j/(p-1)\rfloor v p ( Δ j f ( n )) ≥ ⌊ j / ( p − 1 )⌋ . Since j ≤ m < p 2 j\le m<p^2 j ≤ m < p 2 , the formula (6) yields
v p ( j ! ) = ⌊ j p ⌋ ≤ ⌊ j p − 1 ⌋ . v_p(j!)=\left\lfloor\frac{j}{p}\right\rfloor\le\left\lfloor\frac{j}{p-1}\right\rfloor. v p ( j !) = ⌊ p j ⌋ ≤ ⌊ p − 1 j ⌋ .
The numerator Δ j f ( n ) \Delta^j f(n) Δ j f ( n ) in (25) therefore contains at least as many factors of p p p as the denominator j ! j! j ! . After cancellation, the ( x ) j (x)_j ( x ) j -coefficient therefore belongs to R R R . Since each falling factorial has integer coefficients, this proves P ∈ R [ x ] P\in R[x] P ∈ R [ x ] .
Second, the sum of P P P over 0 , … , p − 1 0,\ldots,p-1 0 , … , p − 1 must belong to p R pR pR . Indeed, since k ≥ 1 k\ge1 k ≥ 1 , we have m = k q ≥ q = p − 1 m=kq\ge q=p-1 m = k q ≥ q = p − 1 , so that each r ∈ { 0 , 1 , … , p − 1 } r\in\{0,1,\ldots,p-1\} r ∈ { 0 , 1 , … , p − 1 } satisfies r ≤ m r\le m r ≤ m and therefore P ( r ) = f ( n + r ) P(r)=f(n+r) P ( r ) = f ( n + r ) by (26) . Hence,
∑ r = 0 p − 1 P ( r ) = ∑ r = 0 p − 1 f ( n + r ) = p ( F p f ) ( n ) ∈ p Z \sum_{r=0}^{p-1}P(r)=\sum_{r=0}^{p-1}f(n+r)=p(F_p f)(n)\in p\mathbb{Z} r = 0 ∑ p − 1 P ( r ) = r = 0 ∑ p − 1 f ( n + r ) = p ( F p f ) ( n ) ∈ p Z
(since 1 ≤ ℓ 1\le\ell 1 ≤ ℓ and the ℓ \ell ℓ -average-integrality of f f f entail that F p f F_p f F p f is integral, so ( F p f ) ( n ) ∈ Z (F_p f)(n)\in\mathbb{Z} ( F p f ) ( n ) ∈ Z ). Thus, ∑ r = 0 p − 1 P ( r ) ∈ p Z ⊆ p R \sum_{r=0}^{p-1}P(r)\in p\mathbb{Z}\subseteq pR ∑ r = 0 p − 1 P ( r ) ∈ p Z ⊆ pR . Lemma 2.3 consequently yields Δ k ( p − 1 ) ( P ) ( 0 ) ∈ p k R \Delta^{k(p-1)}(P)(0)\in p^kR Δ k ( p − 1 ) ( P ) ( 0 ) ∈ p k R . In view of m = k q = k ( p − 1 ) m=kq=k(p-1) m = k q = k ( p − 1 ) , this rewrites as Δ m ( P p ) ( 0 ) ∈ p k R \Delta^m(P^p)(0)\in p^kR Δ m ( P p ) ( 0 ) ∈ p k R . But (21) (applied to P p P^p P p , f p f^p f p , m m m and 0 0 0 instead of P P P , f f f , j j j and r r r ) yields Δ m ( P p ) ( 0 ) = Δ m ( f p ) ( n ) \Delta^m(P^p)(0)=\Delta^m(f^p)(n) Δ m ( P p ) ( 0 ) = Δ m ( f p ) ( n ) . Hence,
Δ m ( f p ) ( n ) = Δ m ( P p ) ( 0 ) ∈ p k R . \Delta^m(f^p)(n)=\Delta^m(P^p)(0)\in p^kR. Δ m ( f p ) ( n ) = Δ m ( P p ) ( 0 ) ∈ p k R .
The left side is an integer, so it is therefore divisible by p k p^k p k . In other words, p k ∣ Δ m ( f p ) ( n ) = Δ k q ( f p ) ( n ) p^k\mid\Delta^m(f^p)(n)=\Delta^{kq}(f^p)(n) p k ∣ Δ m ( f p ) ( n ) = Δ k q ( f p ) ( n ) (since m = k q m=kq m = k q ). This proves (24) . As n n n and k k k were arbitrary, Lemma 1.4 proves that f p f^p f p is ℓ \ell ℓ -average-integral. Theorem 1.1 is thus proved. □
Polynomials and repeated averaging
The finite-depth theorem is now proved. To study larger depths, it helps to answer a more specific question: which polynomials remain integer-valued after arbitrarily many averaging steps?
A monomial x t x^t x t need not have this property, but multiplying it by a suitable power of p p p will make it work. The exponent that appears is
d ( t ) = ⌊ t p − 1 ⌋ − v p ( t ! ) . d(t)=\left\lfloor\frac{t}{p-1}\right\rfloor-v_p(t!). d ( t ) = ⌊ p − 1 t ⌋ − v p ( t !) .
There is a reason for this expression. The difference criterion (Lemma 1.4 ) asks for ⌊ t / ( p − 1 ) ⌋ \lfloor t/(p-1)\rfloor ⌊ t / ( p − 1 )⌋ factors of p p p in a t t t th difference, while the t t t th difference of x t x^t x t is t ! t! t ! . Thus d ( t ) d(t) d ( t ) counts the additional factors needed at this highest difference order. The next lemma shows that these factors also suffice for every order. We then obtain the polynomial criterion from zeb’s answer [3 ] , and use it both for p = 2 , 3 p=2,3 p = 2 , 3 and for the counterexample when p > 3 p>3 p > 3 .
Lemma 4.1. For t ≥ 0 t\geq0 t ≥ 0 , put
d ( t ) = ⌊ t p − 1 ⌋ − v p ( t ! ) . d(t)=\left\lfloor\frac{t}{p-1}\right\rfloor-v_p(t!). d ( t ) = ⌊ p − 1 t ⌋ − v p ( t !) . Then:
(a) We have d ( t ) ≥ 0 d(t)\geq0 d ( t ) ≥ 0 for all t ≥ 0 t\geq0 t ≥ 0 .
(b) We have d ( p t ) = d ( t ) d(pt)=d(t) d ( pt ) = d ( t ) for all t ≥ 0 t\geq0 t ≥ 0 .
(c) We have d ( t ) ≥ 1 d(t)\geq1 d ( t ) ≥ 1 for all t > 0 t>0 t > 0 satisfying p − 1 ∣ t p-1\mid t p − 1 ∣ t .
(d) For any t ≥ 0 t\geq0 t ≥ 0 , the function n ↦ p d ( t ) n t n\mapsto p^{d(t)}n^t n ↦ p d ( t ) n t is average-integral.
Proof. For t > 0 t>0 t > 0 , Legendre’s formula (6) gives
v p ( t ! ) = ∑ i ≥ 1 ⌊ t p i ⌋ ≤ ∑ i ≥ 1 t p i = t p − 1 . v_p(t!)=\sum_{i\geq1}\left\lfloor\frac{t}{p^i}\right\rfloor\leq\sum_{i\geq1}\frac{t}{p^i}=\frac{t}{p-1}. v p ( t !) = i ≥ 1 ∑ ⌊ p i t ⌋ ≤ i ≥ 1 ∑ p i t = p − 1 t .
This implies part (c) (since ⌊ t / ( p − 1 ) ⌋ = t / ( p − 1 ) \left\lfloor t/(p-1)\right\rfloor=t/(p-1) ⌊ t / ( p − 1 ) ⌋ = t / ( p − 1 ) when p − 1 ∣ t p-1\mid t p − 1 ∣ t ) and also part (a) (since v p ( t ! ) v_p(t!) v p ( t !) is an integer, so that v p ( t ! ) < t / ( p − 1 ) v_p(t!)<t/(p-1) v p ( t !) < t / ( p − 1 ) entails v p ( t ! ) ≤ ⌊ t / ( p − 1 ) ⌋ v_p(t!)\leq\lfloor t/(p-1)\rfloor v p ( t !) ≤ ⌊ t / ( p − 1 )⌋ ). Also d ( 0 ) = 0 d(0)=0 d ( 0 ) = 0 . The same formula (6) yields
v p ( ( p t ) ! ) = t + v p ( t ! ) , ⌊ p t p − 1 ⌋ = t + t p − 1 = t + ⌊ t p − 1 ⌋ , v_p((pt)!)=t+v_p(t!),\qquad
\left\lfloor\frac{pt}{p-1}\right\rfloor=t+\frac{t}{p-1}=t+\left\lfloor\frac{t}{p-1}\right\rfloor, v p (( pt )!) = t + v p ( t !) , ⌊ p − 1 pt ⌋ = t + p − 1 t = t + ⌊ p − 1 t ⌋ ,
e n d s m i d = 1 {ends_mid=1} e n d s m i d = 1
and hence d ( p t ) = d ( t ) d(pt)=d(t) d ( pt ) = d ( t ) for all t ≥ 0 t \ge0 t ≥ 0 ; thus, part (b) is proved.
It remains to prove part (d). First, we shall work with the polynomials p d ( t ) x t p^{d(t)}x^t p d ( t ) x t for t ≥ 0 t \ge0 t ≥ 0 ; then we will evaluate them at integers.
Define an R R R -submodule M p M_p M p of R [ x ] R[x] R [ x ] by
M p = { ∑ t = 0 N c t x t : N ≥ 0 , c t ∈ p d ( t ) R for all 0 ≤ t ≤ N } . (27) M_p=\left\{\sum_{t=0}^{N}c_tx^t:N\ge0,\ c_t\in p^{d(t)}R\text{ for all }0\le t\le N\right\}. \tag*{(27)} M p = { t = 0 ∑ N c t x t : N ≥ 0 , c t ∈ p d ( t ) R for all 0 ≤ t ≤ N } . (27)
In words, a polynomial belongs to M p M_p M p when its x t x^t x t -coefficient for each t t t contains at least d ( t ) d(t) d ( t ) factors of p p p . Equivalently, the elements of M p M_p M p are the finite R R R -linear combinations of p d ( t ) x t p^{d(t)}x^t p d ( t ) x t .
We will prove that averaging (i.e., the operator F p F_p F p on polynomials) preserves M p M_p M p . It suffices to check that F p ( p d ( t ) x t ) ∈ M p F_p(p^{d(t)}x^t)\in M_p F p ( p d ( t ) x t ) ∈ M p for all t ≥ 0 t\ge0 t ≥ 0 , since averaging is linear.
For t = 0 t=0 t = 0 the assertion is immediate: averaging fixes constants. For t > 0 t>0 t > 0 , start with the definition of F p F_p F p . In each summand, expand ( x + r ) t (x+r)^t ( x + r ) t by the binomial theorem. This gives
F p ( p d ( t ) x t ) = p d ( t ) p ∑ r = 0 p − 1 ( x + r ) t = p d ( t ) − 1 ∑ r = 0 p − 1 ∑ j = 0 t ( t j ) x j r t − j = ∑ j = 0 t p d ( t ) − 1 ( t j ) ( ∑ r = 0 p − 1 r t − j ) x j . \begin{aligned}
F_p(p^{d(t)}x^t)&=\frac{p^{d(t)}}{p}\sum_{r=0}^{p-1}(x+r)^t\\
&=p^{d(t)-1}\sum_{r=0}^{p-1}\sum_{j=0}^{t}\binom{t}{j}x^jr^{t-j}\\
&=\sum_{j=0}^{t}p^{d(t)-1}\binom{t}{j}\left(\sum_{r=0}^{p-1}r^{t-j}\right)x^j.
\end{aligned} F p ( p d ( t ) x t ) = p p d ( t ) r = 0 ∑ p − 1 ( x + r ) t = p d ( t ) − 1 r = 0 ∑ p − 1 j = 0 ∑ t ( j t ) x j r t − j = j = 0 ∑ t p d ( t ) − 1 ( j t ) ( r = 0 ∑ p − 1 r t − j ) x j .
Write S u = ∑ r = 0 p − 1 r u S_u=\sum_{r=0}^{p-1}r^u S u = ∑ r = 0 p − 1 r u . The term with j = t j=t j = t has S 0 = p S_0=p S 0 = p and ( t t ) = 1 \binom{t}{t}=1 ( t t ) = 1 , so it is p d ( t ) x t p^{d(t)}x^t p d ( t ) x t . Separating this term, we obtain
F p ( p d ( t ) x t ) = p d ( t ) x t + ∑ j = 0 t − 1 p d ( t ) − 1 ( t j ) S t − j x j . F_p(p^{d(t)}x^t)=p^{d(t)}x^t+\sum_{j=0}^{t-1}p^{d(t)-1}\binom{t}{j}S_{t-j}x^j. F p ( p d ( t ) x t ) = p d ( t ) x t + j = 0 ∑ t − 1 p d ( t ) − 1 ( j t ) S t − j x j .
The leading term of this polynomial is p d ( t ) x t p^{d(t)}x^t p d ( t ) x t , which is already in M p M_p M p . Fix a lower degree j < t j<t j < t and write u = t − j > 0 u=t-j>0 u = t − j > 0 . Then, the coefficient of x j x^j x j in F p ( p d ( t ) x t ) F_p(p^{d(t)}x^t) F p ( p d ( t ) x t ) is
C j = p d ( t ) − 1 ( t j ) S u . (28) C_j=p^{d(t)-1}\binom{t}{j}S_u. \tag*{(28)} C j = p d ( t ) − 1 ( j t ) S u . (28)
We must show C j ∈ p d ( j ) R C_j\in p^{d(j)}R C j ∈ p d ( j ) R , that is, v p ( C j ) ≥ d ( j ) v_p(C_j)\ge d(j) v p ( C j ) ≥ d ( j ) . Two estimates give this.
First, the binomial coefficient accounts for the factorials in d d d . Since t = j + u t=j+u t = j + u , the factorial formula for ( t j ) \binom{t}{j} ( j t ) gives
v p ( ( t j ) ) = v p ( t ! ) − v p ( j ! ) − v p ( u ! ) . v_p\left(\binom{t}{j}\right)=v_p(t!)-v_p(j!)-v_p(u!). v p ( ( j t ) ) = v p ( t !) − v p ( j !) − v p ( u !) .
Adding d ( t ) = ⌊ t p − 1 ⌋ − v p ( t ! ) d(t)=\left\lfloor\frac{t}{p-1}\right\rfloor-v_p(t!) d ( t ) = ⌊ p − 1 t ⌋ − v p ( t !) cancels v p ( t ! ) v_p(t!) v p ( t !) , leaving the exact equality
d ( t ) + v p ( ( t j ) ) = ⌊ t p − 1 ⌋ − v p ( j ! ) − v p ( u ! ) . d(t)+v_p\left(\binom{t}{j}\right)=\left\lfloor\frac{t}{p-1}\right\rfloor-v_p(j!)-v_p(u!). d ( t ) + v p ( ( j t ) ) = ⌊ p − 1 t ⌋ − v p ( j !) − v p ( u !) .
Since t = j + u t=j+u t = j + u , we also have
⌊ t p − 1 ⌋ = ⌊ j + u p − 1 ⌋ ≥ ⌊ j p − 1 ⌋ + ⌊ u p − 1 ⌋ , \left\lfloor\frac{t}{p-1}\right\rfloor=\left\lfloor\frac{j+u}{p-1}\right\rfloor\ge\left\lfloor\frac{j}{p-1}\right\rfloor+\left\lfloor\frac{u}{p-1}\right\rfloor, ⌊ p − 1 t ⌋ = ⌊ p − 1 j + u ⌋ ≥ ⌊ p − 1 j ⌋ + ⌊ p − 1 u ⌋ ,
since all x , y ∈ R x,y\in\mathbb{R} x , y ∈ R satisfy ⌊ x + y ⌋ ≥ ⌊ x ⌋ + ⌊ y ⌋ \lfloor x+y\rfloor\ge\lfloor x\rfloor+\lfloor y\rfloor ⌊ x + y ⌋ ≥ ⌊ x ⌋ + ⌊ y ⌋ . Subtracting v p ( j ! ) + v p ( u ! ) v_p(j!)+v_p(u!) v p ( j !) + v p ( u !) from both sides yields
d ( t ) + v p ( t j ) ≥ d ( j ) + d ( u ) . (29) d(t)+v_p\binom{t}{j}\ge d(j)+d(u). \tag*{(29)} d ( t ) + v p ( j t ) ≥ d ( j ) + d ( u ) . (29)
Second, we claim that
d ( u ) + v p ( S u ) ≥ 1. (30) d(u)+v_p(S_u)\ge1. \tag*{(30)} d ( u ) + v p ( S u ) ≥ 1. (30)
Indeed, if p − 1 p-1 p − 1 divides u u u , then we already proved d ( u ) ≥ 1 d(u)\ge1 d ( u ) ≥ 1 in Lemma Lemma 4.1 (c) (since u > 0 u>0 u > 0 ), and so (30) follows. If p − 1 p-1 p − 1 does not divide u u u , then S u S_u S u is divisible by p p p (an easy consequence of (18) 4 ), thus v p ( S u ) ≥ 1 v_p(S_u)\ge1 v p ( S u ) ≥ 1 , so that (30) follows again. In either case, (30) is proved.
Now, using (28) , (29) and (30) in sequence, we find
v p ( C j ) = d ( t ) − 1 + v p ( t j ) + v p ( S u ) ≥ d ( j ) + d ( u ) − 1 + v p ( S u ) ≥ d ( j ) , v_p(C_j)=d(t)-1+v_p\binom{t}{j}+v_p(S_u)\ge d(j)+d(u)-1+v_p(S_u)\ge d(j), v p ( C j ) = d ( t ) − 1 + v p ( j t ) + v p ( S u ) ≥ d ( j ) + d ( u ) − 1 + v p ( S u ) ≥ d ( j ) ,
so C j ∈ p d ( j ) R C_j\in p^{d(j)}R C j ∈ p d ( j ) R . That is, the x j x^j x j -coefficient of F p ( p d ( t ) x t ) F_p(p^{d(t)}x^t) F p ( p d ( t ) x t ) is divisible by p d ( j ) p^{d(j)} p d ( j ) in R R R . Since this holds for all j j j , we thus have F p ( p d ( t ) x t ) ∈ M p F_p(p^{d(t)}x^t)\in M_p F p ( p d ( t ) x t ) ∈ M p . Since this holds for all t ≥ 0 t\ge0 t ≥ 0 , we thus obtain F p M p ⊆ M p F_pM_p\subseteq M_p F p M p ⊆ M p .
Now, fix t ≥ 0 t\ge0 t ≥ 0 and let f : Z → Z f:\mathbb{Z}\to\mathbb{Z} f : Z → Z be the function given by f ( n ) = p d ( t ) n t f(n)=p^{d(t)}n^t f ( n ) = p d ( t ) n t . We must show that f f f is average-integral, i.e., that F p k f F_p^k f F p k f is integral for every k ≥ 0 k\ge0 k ≥ 0 . Since p d ( t ) x t ∈ M p p^{d(t)}x^t\in M_p p d ( t ) x t ∈ M p and F p M p ⊆ M p F_pM_p\subseteq M_p F p M p ⊆ M p , induction on k k k shows that
F p k ( p d ( t ) x t ) ∈ M p ⊆ R [ x ] for every k ≥ 0. F_p^k(p^{d(t)}x^t)\in M_p\subseteq R[x]\qquad\text{for every }k\ge0. F p k ( p d ( t ) x t ) ∈ M p ⊆ R [ x ] for every k ≥ 0.
Compatibility with evaluation, (7) , therefore gives
( F p k f ) ( n ) ∈ R for all k ≥ 0 and n ∈ Z (31) (F_p^k f)(n)\in R\qquad\text{for all }k\ge0\text{ and }n\in\mathbb{Z} \tag*{(31)} ( F p k f ) ( n ) ∈ R for all k ≥ 0 and n ∈ Z (31)
(since f = ev ( p d ( t ) x t ) f=\operatorname{ev}(p^{d(t)}x^t) f = ev ( p d ( t ) x t ) and thus F p k f = ev ( F p k ( p d ( t ) x t ) ) F_p^k f=\operatorname{ev}(F_p^k(p^{d(t)}x^t)) F p k f = ev ( F p k ( p d ( t ) x t )) ). On the other hand, f f f is integral and each application of F p F_p F p adds p p p values and divides their sum by p p p . Inductively, this shows that p k ( F p k f ) ( n ) p^k(F_p^k f)(n) p k ( F p k f ) ( n ) is an integer. Thus ( F p k f ) ( n ) (F_p^k f)(n) ( F p k f ) ( n ) belongs to Z [ 1 / p ] \mathbb{Z}[1/p] Z [ 1/ p ] , the ring of rational numbers whose reduced denominators are powers of p p p . Combining this with (31) , we see that ( F p k f ) ( n ) ∈ R ∩ Z [ 1 / p ] = Z (F_p^k f)(n)\in R\cap\mathbb{Z}[1/p]=\mathbb{Z} ( F p k f ) ( n ) ∈ R ∩ Z [ 1/ p ] = Z (indeed, a rational number in Z [ 1 / p ] \mathbb{Z}[1/p] Z [ 1/ p ] can have only p p p in its denominator, whereas a rational number in R R R cannot have p p p there; thus, a rational number in R ∩ Z [ 1 / p ] R\cap\mathbb{Z}[1/p] R ∩ Z [ 1/ p ] must have denominator 1 1 1 ). That is, ( F p k f ) ( n ) (F_p^k f)(n) ( F p k f ) ( n ) is an integer for every k ≥ 0 k\ge0 k ≥ 0 and n ∈ Z n\in\mathbb{Z} n ∈ Z . This proves that f f f is average-integral. Thus, part (d) is proved.
Let us next record the analogue of Lemma 1.4 for R R R -valued functions. As before, p p p is our fixed prime and q = p − 1 q=p-1 q = p − 1 .
Lemma 4.2 (Difference criterion over R R R ). For a function f : Z → Q f:\mathbb{Z}\to\mathbb{Q} f : Z → Q and a nonnegative integer ℓ \ell ℓ , the following conditions are equivalent:
We have F p k f ∈ R Z F_p^k f\in R^{\mathbb{Z}} F p k f ∈ R Z for all 0 ≤ k ≤ ℓ 0\leq k\leq\ell 0 ≤ k ≤ ℓ .
We have Δ k q f ∈ p k R Z \Delta^{kq}f\in p^kR^{\mathbb{Z}} Δ k q f ∈ p k R Z for all 0 ≤ k ≤ ℓ 0\leq k\leq\ell 0 ≤ k ≤ ℓ .
We have Δ j f ∈ p ⌊ j / q ⌋ R Z \Delta^j f\in p^{\lfloor j/q\rfloor}R^{\mathbb{Z}} Δ j f ∈ p ⌊ j / q ⌋ R Z for all 0 ≤ j ≤ ℓ q 0\leq j\leq\ell q 0 ≤ j ≤ ℓ q .
Proof. This is an analogue of Lemma 1.4 with some Z \mathbb{Z} Z ’s replaced by R R R ’s; the exact same proof applies, mutatis mutandis. (The only thing we use about R R R is that R R R is a subring of Q \mathbb{Q} Q .)
We can now describe all the polynomials P P P for which every iterated average F p k P F_p^kP F p k P takes values in R R R at all integers. The description has several useful forms: one bounds the ordinary monomial coefficients, and the other bounds the coefficients in the binomial (or, equivalently, falling-factorial) basis. We will use the R R R -submodule
M p = { ∑ t = 0 N c t x t : N ≥ 0 , c t ∈ p d ( t ) R for all 0 ≤ t ≤ N } (32) M_p=\left\{\sum_{t=0}^{N}c_tx^t:N\geq0,\ c_t\in p^{d(t)}R\text{ for all }0\leq t\leq N\right\} \tag*{(32)} M p = { t = 0 ∑ N c t x t : N ≥ 0 , c t ∈ p d ( t ) R for all 0 ≤ t ≤ N } (32)
of R [ x ] R[x] R [ x ] (which already appeared in the proof of Lemma 4.1 ).
We recall that each polynomial P ( x ) ∈ Q [ x ] P(x)\in\mathbb{Q}[x] P ( x ) ∈ Q [ x ] can be written as a Q \mathbb{Q} Q -linear combination ∑ j b j ( x ) j \sum_j b_j(x)_j ∑ j b j ( x ) j of falling factorials. Since ( x ) j = j ! ( x j ) (x)_j=j!\binom{x}{j} ( x ) j = j ! ( j x ) , we can rewrite this as ∑ j b j j ! ( x j ) \sum_j b_jj!\binom{x}{j} ∑ j b j j ! ( j x ) ; so every polynomial P ( x ) ∈ Q [ x ] P(x)\in\mathbb{Q}[x] P ( x ) ∈ Q [ x ] can be written as a Q \mathbb{Q} Q -linear combination ∑ j a j ( x j ) \sum_j a_j\binom{x}{j} ∑ j a j ( j x ) of binomial coefficients. Again, the coefficients a j a_j a j here are unique.
Proposition 4.3 (Polynomial criterion). For P ∈ Q [ x ] P\in\mathbb{Q}[x] P ∈ Q [ x ] , the following conditions are equivalent:
We have F p k P ( n ) ∈ R F_p^kP(n)\in R F p k P ( n ) ∈ R for every k ≥ 0 k\geq0 k ≥ 0 and n ∈ Z n\in\mathbb{Z} n ∈ Z .
Writing P ( x ) = ∑ j c j x j P(x)=\sum_jc_jx^j P ( x ) = ∑ j c j x j , we have c j ∈ p d ( j ) R c_j\in p^{d(j)}R c j ∈ p d ( j ) R for every j j j ; in other words, P ∈ M p P\in M_p P ∈ M p .
Writing P ( x ) = ∑ j b j ( x ) j P(x)=\sum_jb_j(x)_j P ( x ) = ∑ j b j ( x ) j , we have b j ∈ p d ( j ) R b_j\in p^{d(j)}R b j ∈ p d ( j ) R for every j j j .
Writing P ( x ) = ∑ j a j ( x j ) P(x)=\sum_ja_j\binom{x}{j} P ( x ) = ∑ j a j ( j x ) , we have a j ∈ p ⌊ j / ( p − 1 ) ⌋ R a_j\in p^{\lfloor j/(p-1)\rfloor}R a j ∈ p ⌊ j / ( p − 1 )⌋ R for every j j j .
We have Δ r ( p − 1 ) P ( n ) ∈ p r R \Delta^{r(p-1)}P(n)\in p^rR Δ r ( p − 1 ) P ( n ) ∈ p r R for each n ∈ Z n\in\mathbb{Z} n ∈ Z and r ≥ 0 r\geq0 r ≥ 0 .
We have Δ j P ( n ) ∈ p ⌊ j / ( p − 1 ) ⌋ R \Delta^jP(n)\in p^{\lfloor j/(p-1)\rfloor}R Δ j P ( n ) ∈ p ⌊ j / ( p − 1 )⌋ R for each n ∈ Z n\in\mathbb{Z} n ∈ Z and j ≥ 0 j\geq0 j ≥ 0 .
If P P P is integer-valued on Z \mathbb{Z} Z , these conditions are also equivalent to average-integrality of the function n ↦ P ( n ) n\mapsto P(n) n ↦ P ( n ) .
Proof. We first compare the conditions involving values and differences. Put f ( n ) = P ( n ) f(n)=P(n) f ( n ) = P ( n ) for all n ∈ Z n\in\mathbb{Z} n ∈ Z . Apply Lemma 4.2 to f f f , using the compatibility with evaluation in (7) . Allowing ℓ \ell ℓ to range over all nonnegative integers proves ( 1 ) ⇔ ( 5 ) ⇔ ( 6 ) (1)\Leftrightarrow(5)\Leftrightarrow(6) ( 1 ) ⇔ ( 5 ) ⇔ ( 6 ) .
Next we prove ( 6 ) ⇒ ( 4 ) ⇒ ( 5 ) (6)\Rightarrow(4)\Rightarrow(5) ( 6 ) ⇒ ( 4 ) ⇒ ( 5 ) . Since ( x j ) = ( x ) j / j ! \binom{x}{j}=(x)_j/j! ( j x ) = ( x ) j / j ! , the expansion P = ∑ j a j ( x j ) P=\sum_j a_j\binom{x}{j} P = ∑ j a j ( j x ) can also be written as
P = ∑ j a j j ! ( x ) j . P=\sum_j\frac{a_j}{j!}(x)_j. P = j ∑ j ! a j ( x ) j .
Thus (9) gives Δ j P ( 0 ) = j ! ( a j / j ! ) = a j \Delta^jP(0)=j!(a_j/j!)=a_j Δ j P ( 0 ) = j ! ( a j / j !) = a j . Applying condition (6) at n = 0 n=0 n = 0 , we thus obtain a j ∈ p ⌊ j / ( p − 1 ) ⌋ R a_j\in p^{\lfloor j/(p-1)\rfloor}R a j ∈ p ⌊ j / ( p − 1 )⌋ R , which is (4).
To prove ( 4 ) ⇒ ( 5 ) (4)\Rightarrow(5) ( 4 ) ⇒ ( 5 ) , divide (8) by j ! j! j ! to obtain the normalized difference identity
Δ ( x j ) = ( x j − 1 ) for all j ≥ 1 , Δ ( x 0 ) = 0. \Delta\binom{x}{j}=\binom{x}{j-1}\quad\text{for all }j\geq1,\qquad\Delta\binom{x}{0}=0. Δ ( j x ) = ( j − 1 x ) for all j ≥ 1 , Δ ( 0 x ) = 0.
So each iteration of Δ \Delta Δ , when applied to a binomial-coefficient polynomial ( x j ) \binom{x}{j} ( j x ) , lowers the binomial index j j j by 1, until the term vanishes. So Δ k ( x j ) = ( x j − k ) \Delta^k\binom{x}{j}=\binom{x}{j-k} Δ k ( j x ) = ( j − k x ) for all j , k ≥ 0 j,k\geq0 j , k ≥ 0 , where we interpret the right-hand side as 0 0 0 if j − k < 0 j-k<0 j − k < 0 . Thus, under condition (4), for every r ≥ 0 r\geq0 r ≥ 0 we have
Δ r ( p − 1 ) P ( x ) = ∑ j ≥ r ( p − 1 ) a j ( x j − r ( p − 1 ) ) . (33) \Delta^{r(p-1)}P(x)=\sum_{j\geq r(p-1)}a_j\binom{x}{j-r(p-1)}. \tag*{(33)} Δ r ( p − 1 ) P ( x ) = j ≥ r ( p − 1 ) ∑ a j ( j − r ( p − 1 ) x ) . (33)
For each index in this sum, j ≥ r ( p − 1 ) j\geq r(p-1) j ≥ r ( p − 1 ) , so ⌊ j / ( p − 1 ) ⌋ ≥ r \lfloor j/(p-1)\rfloor\geq r ⌊ j / ( p − 1 )⌋ ≥ r . Condition (4) therefore ensures a j ∈ p r R a_j\in p^rR a j ∈ p r R . Also, the binomial polynomials ( x k ) \binom{x}{k} ( k x ) take integer values on all of Z \mathbb{Z} Z (as we have already seen). Consequently, (33) shows that Δ r ( p − 1 ) P \Delta^{r(p-1)}P Δ r ( p − 1 ) P takes values in p r R p^rR p r R for every r r r , which is exactly condition (5). This completes the equivalence of conditions (1), (4), (5), and (6).
The equivalence of (3) and (4) is also easy, since the respective coefficients are related by a j = j ! b j a_j=j!b_j a j = j ! b j (because ( x ) j = j ! ( x j ) (x)_j=j!\binom{x}{j} ( x ) j = j ! ( j x ) ), and thus we have a j ∈ p ⌊ j / ( p − 1 ) ⌋ R a_j\in p^{\lfloor j/(p-1)\rfloor}R a j ∈ p ⌊ j / ( p − 1 )⌋ R if and only if b j ∈ p d ( j ) R b_j\in p^{d(j)}R b j ∈ p d ( j ) R .
Next we prove ( 2 ) ⇒ ( 1 ) (2)\Rightarrow(1) ( 2 ) ⇒ ( 1 ) . Under (2), write
P ( x ) = ∑ j = 0 N u j p d ( j ) x j , with u j ∈ R . P(x)=\sum_{j=0}^{N}u_jp^{d(j)}x^j,\qquad\text{with }u_j\in R. P ( x ) = j = 0 ∑ N u j p d ( j ) x j , with u j ∈ R .
For each j j j , put f j ( n ) = p d ( j ) n j f_j(n)=p^{d(j)}n^j f j ( n ) = p d ( j ) n j . Lemma 4.1(d) says that f j f_j f j is average-integral, so that F p k f j F_p^kf_j F p k f j is integral for every k ≥ 0 k\geq0 k ≥ 0 . Since ev P = ∑ j = 0 N u j f j \operatorname{ev}P=\sum_{j=0}^{N}u_jf_j ev P = ∑ j = 0 N u j f j and F p k F_p^k F p k is Q \mathbb{Q} Q -linear (and by (7) ),
( F p k P ) ( n ) = ∑ j = 0 N u j ⏟ ∈ R ( F p k f j ) ( n ) ⏟ ∈ Z ∈ R for all k ≥ 0 and n ∈ Z . (F_p^kP)(n)=\sum_{j=0}^{N}\underbrace{u_j}_{\in R}\underbrace{(F_p^kf_j)(n)}_{\in\mathbb{Z}}\in R\qquad\text{for all }k\geq0\text{ and }n\in\mathbb{Z}. ( F p k P ) ( n ) = j = 0 ∑ N ∈ R u j ∈ Z ( F p k f j ) ( n ) ∈ R for all k ≥ 0 and n ∈ Z .
This is condition (1).
For the converse, we take a bird’s-eye view. Do not fix P P P . As we recall, M p M_p M p is the set of all polynomials P ∈ Q [ x ] P\in\mathbb{Q}[x] P ∈ Q [ x ] satisfying condition (2). Let M p ′ M'_p M p ′ be the set of all polynomials P ∈ Q [ x ] P\in\mathbb{Q}[x] P ∈ Q [ x ] satisfying condition (1). Both M p M_p M p and M p ′ M'_p M p ′ are R R R -submodules of Q [ x ] \mathbb{Q}[x] Q [ x ] (since each F p k F_p^k F p k is R R R -linear). Since we have proved ( 2 ) ⇒ ( 1 ) (2)\Rightarrow(1) ( 2 ) ⇒ ( 1 ) , we know that M p ⊆ M p ′ M_p\subseteq M'_p M p ⊆ M p ′ . We shall now show that M p ′ ⊆ M p M'_p\subseteq M_p M p ′ ⊆ M p . Indeed, let P ∈ M p ′ P \in M'_p P ∈ M p ′ . We must show that P ∈ M p P \in M_p P ∈ M p . We shall show this by strong induction on deg P \deg P deg P ; the base case P = 0 P=0 P = 0 is obvious. Suppose P ≠ 0 P \ne0 P = 0 and let c t x t c_t x^t c t x t be its leading term. The polynomial P P P satisfies condition (1) (since P ∈ M p ′ P \in M'_p P ∈ M p ′ ), and thus also condition (6) (since (1) and (6) are equivalent), which at j = t j=t j = t and n = 0 n=0 n = 0 gives
Δ t P ( 0 ) ∈ p ⌊ t / ( p − 1 ) ⌋ R . \Delta^t P(0) \in p^{\lfloor t/(p-1)\rfloor}R. Δ t P ( 0 ) ∈ p ⌊ t / ( p − 1 )⌋ R .
Since ( x ) t (x)_t ( x ) t is monic of degree t t t , the polynomial P − c t ( x ) t P-c_t(x)_t P − c t ( x ) t has degree less than t t t , and thus is a linear combination of ( x ) 0 (x)_0 ( x ) 0 , ( x ) 1 (x)_1 ( x ) 1 , … \ldots … , ( x ) t − 1 (x)_{t-1} ( x ) t − 1 . Thus the ( x ) t (x)_t ( x ) t -coefficient of P P P is c t c_t c t , and so (9) gives Δ t P ( 0 ) = t ! c t \Delta^tP(0)=t!c_t Δ t P ( 0 ) = t ! c t . Therefore,
t ! c t = Δ t P ( 0 ) ∈ p ⌊ t / ( p − 1 ) ⌋ R , hence c t ∈ p d ( t ) R . t!c_t=\Delta^tP(0)\in p^{\lfloor t/(p-1)\rfloor}R,\qquad\text{hence}\qquad c_t\in p^{d(t)}R. t ! c t = Δ t P ( 0 ) ∈ p ⌊ t / ( p − 1 )⌋ R , hence c t ∈ p d ( t ) R .
Therefore, c t x t ∈ M p ⊆ M p ′ c_tx^t\in M_p\subseteq M'_p c t x t ∈ M p ⊆ M p ′ . Hence, P − c t x t ∈ M p ′ P-c_tx^t\in M'_p P − c t x t ∈ M p ′ as well (because P P P and c t x t c_tx^t c t x t belong to M p ′ M'_p M p ′ , and since M p ′ M'_p M p ′ is an R R R -module). By the induction hypothesis, this entails P − c t x t ∈ M p P-c_tx^t\in M_p P − c t x t ∈ M p , since P − c t x t P-c_tx^t P − c t x t has smaller degree than P P P . Adding this to c t x t ∈ M p c_tx^t\in M_p c t x t ∈ M p , we find P ∈ M p P\in M_p P ∈ M p , since M p M_p M p is an R R R -module. So the induction is complete, and M p ′ ⊆ M p M'_p\subseteq M_p M p ′ ⊆ M p is proved; that is, condition (1) implies condition (2).
Finally, suppose P P P is integer-valued, so f f f is integral. For every k ≥ 0 k\geq0 k ≥ 0 and n ∈ Z n\in\mathbb{Z} n ∈ Z , the number p k ( F p k f ) ( n ) p^k(F_p^k f)(n) p k ( F p k f ) ( n ) is an integer, so ( F p k f ) ( n ) (F_p^k f)(n) ( F p k f ) ( n ) is a rational number whose denominator is a power of p p p . Under condition (1), the number ( F p k f ) ( n ) (F_p^k f)(n) ( F p k f ) ( n ) also belongs to R R R , so the denominator argument at the end of the proof of Lemma 4.1(d) shows that it is an integer. Hence f f f is average-integral. Conversely, if f f f is average-integral, then ( F p k f ) ( n ) ∈ Z ⊆ R (F_p^k f)(n)\in\mathbb{Z}\subseteq R ( F p k f ) ( n ) ∈ Z ⊆ R for every k , n k,n k , n , which is exactly condition (1).
For example, when p = 3 p=3 p = 3 we have d ( 0 ) = d ( 1 ) = 0 d(0)=d(1)=0 d ( 0 ) = d ( 1 ) = 0 , d ( 2 ) = 1 d(2)=1 d ( 2 ) = 1 , and d ( 3 ) = 0 d(3)=0 d ( 3 ) = 0 . Thus a polynomial of degree at most 3 in R [ x ] R[x] R [ x ] has all its averages valued in R R R exactly when its x 2 x^2 x 2 -coefficient is divisible by 3. In particular, x x x , 3 x 2 3x^2 3 x 2 , and x 3 x^3 x 3 are average-integral on Z \mathbb{Z} Z , but x 2 x^2 x 2 is not. Indeed,
F 3 ( x 2 ) = x 2 + 2 x + 5 3 . F_3(x^2)=x^2+2x+\frac{5}{3}. F 3 ( x 2 ) = x 2 + 2 x + 3 5 .
This example illustrates why the coefficient conditions are useful: we can decide about all averaging stages without calculating them.
The criterion also lets us return to arbitrary functions without losing control at large depths. Although we match the function only on a finite interval, the interpolating polynomial will have integral averages at every depth. This useful fact is the content of the following lemma.
Lemma 4.4 (Local lifting). Let f ∈ Q Z f\in\mathbb{Q}^{\mathbb{Z}} f ∈ Q Z be ℓ \ell ℓ -average-integral, let n ∈ Z n\in\mathbb{Z} n ∈ Z , and put m = ℓ ( p − 1 ) m=\ell(p-1) m = ℓ ( p − 1 ) . There is an integer-valued polynomial P ∈ M p P\in M_p P ∈ M p such that
P ( r ) = f ( n + r ) for all 0 ≤ r ≤ m . P(r)=f(n+r)\qquad\text{for all }0\leq r\leq m. P ( r ) = f ( n + r ) for all 0 ≤ r ≤ m . In fact, the Newton interpolant
P ( x ) = ∑ j = 0 m Δ j f ( n ) ( x j ) (34) P(x)=\sum_{j=0}^{m}\Delta^j f(n)\binom{x}{j} \tag*{(34)} P ( x ) = j = 0 ∑ m Δ j f ( n ) ( j x ) (34) has these properties, and the function r ↦ P ( r ) r\mapsto P(r) r ↦ P ( r ) is average-integral (at every depth).
Proof. Define P P P by (34) . The matching values P ( r ) = f ( n + r ) P(r)=f(n+r) P ( r ) = f ( n + r ) follow from (23) . Also, each coefficient Δ j f ( n ) \Delta^j f(n) Δ j f ( n ) is an integer (since f f f is integral), and the binomial polynomials ( x j ) \binom{x}{j} ( j x ) take integer values on all of Z \mathbb{Z} Z , as noted above. Hence P P P is integer-valued on all of Z \mathbb{Z} Z , not just on the interval where it matches f f f .
For each j ≤ m j\leq m j ≤ m , Lemma 1.4 yields Δ j f ∈ p ⌊ j / ( p − 1 ) ⌋ Z R \Delta^j f\in p^{\lfloor j/(p-1)\rfloor}\mathbb{Z}R Δ j f ∈ p ⌊ j / ( p − 1 )⌋ Z R , so that the integer Δ j f ( n ) \Delta^j f(n) Δ j f ( n ) is divisible by p ⌊ j / ( p − 1 ) ⌋ p^{\lfloor j/(p-1)\rfloor} p ⌊ j / ( p − 1 )⌋ ; in particular, Δ j f ( n ) ∈ p ⌊ j / ( p − 1 ) ⌋ R \Delta^j f(n)\in p^{\lfloor j/(p-1)\rfloor}R Δ j f ( n ) ∈ p ⌊ j / ( p − 1 )⌋ R . This accounts for all the addends in (34) . Thus, the integer-valued polynomial P ∈ Q [ x ] P\in\mathbb{Q}[x] P ∈ Q [ x ] meets condition (4) of Proposition 4.3 (with a j = Δ j f ( n ) a_j=\Delta^j f(n) a j = Δ j f ( n ) for all j ≤ m j\leq m j ≤ m , and a j = 0 a_j=0 a j = 0 for all j > m j>m j > m ). Therefore, that proposition gives P ∈ M p P\in M_p P ∈ M p and average-integrality of the function r ↦ P ( r ) r\mapsto P(r) r ↦ P ( r ) .
Every depth for p = 2 p=2 p = 2 and p = 3 p=3 p = 3
We now have the ingredients to prove Theorem 1.2. The key distinction between p = 2 p=2 p = 2 and p = 3 p=3 p = 3 will be visible in the coefficients of a product and a cube.
Proof of Theorem 1.2. We first work with polynomials. Proposition 4.3 reduces the question to coefficient divisibility: we must show that M 2 M_2 M 2 is closed under products and that M 3 M_3 M 3 is closed under cubes. Afterwards, local interpolation will transfer the result to arbitrary functions.
For p = 2 p=2 p = 2 , the definition of the function d d d (see Lemma 4.1) simplifies to d ( j ) = j − v 2 ( j ! ) d(j)=j-v_2(j!) d ( j ) = j − v 2 ( j !) ; therefore
d ( i + j ) = d ( i ) + d ( j ) − v 2 ( ( i + j i ) ) ≤ d ( i ) + d ( j ) for all i , j ≥ 0. d(i+j)=d(i)+d(j)-v_2\left(\binom{i+j}{i}\right)\leq d(i)+d(j)\qquad\text{for all }i,j\geq0. d ( i + j ) = d ( i ) + d ( j ) − v 2 ( ( i i + j ) ) ≤ d ( i ) + d ( j ) for all i , j ≥ 0.
The product of the two basic polynomials 2 d ( i ) x i 2^{d(i)}x^i 2 d ( i ) x i and 2 d ( j ) x j 2^{d(j)}x^j 2 d ( j ) x j has coefficient 2 d ( i ) + d ( j ) 2^{d(i)+d(j)} 2 d ( i ) + d ( j ) at degree i + j i+j i + j . The inequality we just proved says that this contains at least the required d ( i + j ) d(i+j) d ( i + j ) factors of 2 2 2 . The product therefore belongs to M 2 M_2 M 2 . More explicitly, if P = ∑ i a i 2 d ( i ) x i P=\sum_i a_i2^{d(i)}x^i P = ∑ i a i 2 d ( i ) x i and Q = ∑ j b j 2 d ( j ) x j Q=\sum_j b_j2^{d(j)}x^j Q = ∑ j b j 2 d ( j ) x j , with a i , b j ∈ R a_i,b_j\in R a i , b j ∈ R , then
P Q = ∑ i , j a i b j ( 2 d ( i ) x i ) ( 2 d ( j ) x j ) . PQ=\sum_{i,j}a_i b_j\left(2^{d(i)}x^i\right)\left(2^{d(j)}x^j\right). P Q = i , j ∑ a i b j ( 2 d ( i ) x i ) ( 2 d ( j ) x j ) .
Each product in parentheses belongs to M 2 M_2 M 2 by the preceding calculation. Since M 2 M_2 M 2 is closed under finite R R R -linear combinations, P Q ∈ M 2 PQ\in M_2 P Q ∈ M 2 . Closure under addition and additive inverses follows from the definition, and the constant polynomial 1 1 1 belongs to M 2 M_2 M 2 because d ( 0 ) = 0 d(0)=0 d ( 0 ) = 0 . Thus M 2 M_2 M 2 is a subring of Q [ x ] \mathbb{Q}[x] Q [ x ] .
For p = 3 p=3 p = 3 , products need not stay in M 3 M_3 M 3 . However, when we cube a sum, every mixed term has a coefficient divisible by 3 3 3 . We will see that this extra factor is enough.
Here we have d ( j ) = ⌊ j / 2 ⌋ − v 3 ( j ! ) d(j)=\lfloor j/2\rfloor-v_3(j!) d ( j ) = ⌊ j /2 ⌋ − v 3 ( j !) . Thus, for all i , j , k ≥ 0 i,j,k\geq0 i , j , k ≥ 0 , we have
d ( i + j + k ) − d ( i ) − d ( j ) − d ( k ) = ⌊ i + j + k 2 ⌋ − ⌊ i 2 ⌋ − ⌊ j 2 ⌋ − ⌊ k 2 ⌋ − v 3 ( ( i + j + k i , j , k ) ) . d(i+j+k)-d(i)-d(j)-d(k)=\left\lfloor\frac{i+j+k}{2}\right\rfloor-\left\lfloor\frac{i}{2}\right\rfloor-\left\lfloor\frac{j}{2}\right\rfloor-\left\lfloor\frac{k}{2}\right\rfloor-v_3\left(\binom{i+j+k}{i,j,k}\right). d ( i + j + k ) − d ( i ) − d ( j ) − d ( k ) = ⌊ 2 i + j + k ⌋ − ⌊ 2 i ⌋ − ⌊ 2 j ⌋ − ⌊ 2 k ⌋ − v 3 ( ( i , j , k i + j + k ) ) .
Here the multinomial coefficient is an integer, and the difference of floors is at most 1. Indeed, write i = 2 a + ϵ i=2a+\epsilon i = 2 a + ϵ , j = 2 b + η j=2b+\eta j = 2 b + η , and k = 2 c + θ k=2c+\theta k = 2 c + θ , where each of ϵ , η , θ \epsilon,\eta,\theta ϵ , η , θ is 0 or 1. The difference of floors then becomes ⌊ ( ϵ + η + θ ) / 2 ⌋ ≤ 1 \lfloor(\epsilon+\eta+\theta)/2\rfloor\le1 ⌊( ϵ + η + θ ) /2 ⌋ ≤ 1 . Also v 3 ( ( i + j + k i , j , k ) ) ≥ 0 v_3\left(\binom{i+j+k}{i,j,k}\right) \ge0 v 3 ( ( i , j , k i + j + k ) ) ≥ 0 , since this multinomial coefficient is an integer. Consequently,
d ( i + j + k ) ≤ d ( i ) + d ( j ) + d ( k ) + 1 for all i , j , k ≥ 0. (35) d(i+j+k) \le d(i)+d(j)+d(k)+1 \qquad\text{for all } i,j,k \ge0. \tag*{(35)} d ( i + j + k ) ≤ d ( i ) + d ( j ) + d ( k ) + 1 for all i , j , k ≥ 0. (35)
Write P = ∑ j c j x j ∈ M 3 P=\sum_j c_jx^j\in M_3 P = ∑ j c j x j ∈ M 3 , so that v 3 ( c j ) ≥ d ( j ) v_3(c_j)\ge d(j) v 3 ( c j ) ≥ d ( j ) for every j j j . Multiplying three copies of P P P gives P 3 = ∑ i , j , k c i c j c k x i + j + k P^3=\sum_{i,j,k}c_ic_jc_kx^{i+j+k} P 3 = ∑ i , j , k c i c j c k x i + j + k . Group the ordered triples of indices according to which indices coincide. There is one ordering when all three are equal, three when exactly two are equal, and six when all are distinct. Hence
P 3 = ∑ j c j 3 x 3 j + 3 ∑ i ≠ j c i 2 c j x 2 i + j + 6 ∑ i < j < k c i c j c k x i + j + k . P^3=\sum_j c_j^3x^{3j}+3\sum_{i\ne j}c_i^2c_jx^{2i+j}+6\sum_{i<j<k}c_ic_jc_kx^{i+j+k}. P 3 = j ∑ c j 3 x 3 j + 3 i = j ∑ c i 2 c j x 2 i + j + 6 i < j < k ∑ c i c j c k x i + j + k .
All sums are finite. First consider the pure terms c j 3 x 3 j c_j^3x^{3j} c j 3 x 3 j . The 3-valuations v 3 ( c j 3 ) = 3 v 3 ( c j ) v_3(c_j^3)=3v_3(c_j) v 3 ( c j 3 ) = 3 v 3 ( c j ) of their coefficients are at least 3 d ( j ) 3d(j) 3 d ( j ) (since v 3 ( c j ) ≥ d ( j ) v_3(c_j)\ge d(j) v 3 ( c j ) ≥ d ( j ) ), whereas membership in M 3 M_3 M 3 requires only d ( 3 j ) = d ( j ) d(3j)=d(j) d ( 3 j ) = d ( j ) , by Lemma 4.1 (b). Since d ( j ) ≥ 0 d(j)\ge0 d ( j ) ≥ 0 , we have 3 d ( j ) ≥ d ( j ) 3d(j)\ge d(j) 3 d ( j ) ≥ d ( j ) . These terms therefore belong to M 3 M_3 M 3 .
Each mixed term is 3 c i 2 c j x 2 i + j 3c_i^2c_jx^{2i+j} 3 c i 2 c j x 2 i + j for some i ≠ j i\ne j i = j , or 6 c i c j c k x i + j + k 6c_ic_jc_kx^{i+j+k} 6 c i c j c k x i + j + k for some i < j < k i<j<k i < j < k . In the first case the 3-valuation of its coefficient is at least 1 + 2 d ( i ) + d ( j ) ≥ d ( 2 i + j ) 1+2d(i)+d(j)\ge d(2i+j) 1 + 2 d ( i ) + d ( j ) ≥ d ( 2 i + j ) , by (35) with indices i , i , j i,i,j i , i , j . In the second case it is at least 1 + d ( i ) + d ( j ) + d ( k ) ≥ d ( i + j + k ) 1+d(i)+d(j)+d(k)\ge d(i+j+k) 1 + d ( i ) + d ( j ) + d ( k ) ≥ d ( i + j + k ) , again by (35) . Thus every mixed term also belongs to M 3 M_3 M 3 , and so does their sum with the pure terms. This proves P 3 ∈ M 3 P^3\in M_3 P 3 ∈ M 3 .
We now transfer these polynomial statements to functions. Fix a depth ℓ \ell ℓ and an integer n n n . In the p = 2 p=2 p = 2 case, let f , g ∈ Q Z f,g\in\mathbb{Q}^{\mathbb{Z}} f , g ∈ Q Z be ℓ \ell ℓ -average-integral. Lemma 4.4 (applied here with m = ℓ m=\ell m = ℓ , since p − 1 = 1 p-1=1 p − 1 = 1 ) supplies integer-valued polynomials P , Q ∈ M 2 P,Q\in M_2 P , Q ∈ M 2 with
P ( s ) = f ( n + s ) , Q ( s ) = g ( n + s ) for all 0 ≤ s ≤ ℓ . (36) P(s)=f(n+s),\qquad Q(s)=g(n+s)\qquad\text{for all }0\le s\le\ell. \tag*{(36)} P ( s ) = f ( n + s ) , Q ( s ) = g ( n + s ) for all 0 ≤ s ≤ ℓ . (36)
Their product P Q PQ P Q belongs to M 2 M_2 M 2 (since M 2 M_2 M 2 is a ring) and is integer-valued. Put h ( s ) = P ( s ) Q ( s ) h(s)=P(s)Q(s) h ( s ) = P ( s ) Q ( s ) for all s ∈ Z s\in\mathbb{Z} s ∈ Z . Proposition 4.3 (specifically, its last sentence) gives F 2 r h ∈ Z Z F_2^rh\in\mathbb{Z}^{\mathbb{Z}} F 2 r h ∈ Z Z for every r ≥ 0 r\ge0 r ≥ 0 , while (36) shows that
h ( s ) = ( f g ) ( n + s ) for all 0 ≤ s ≤ ℓ . (37) h(s)=(fg)(n+s)\qquad\text{for all }0\le s\le\ell. \tag*{(37)} h ( s ) = ( f g ) ( n + s ) for all 0 ≤ s ≤ ℓ . (37)
Consider an arbitrary function w : Z → Q w:\mathbb{Z}\to\mathbb{Q} w : Z → Q . Any value of F p r w F_p^rw F p r w is determined by only r ( p − 1 ) + 1 r(p-1)+1 r ( p − 1 ) + 1 consecutive values of w w w . This can be seen by writing each application of F p F_p F p as a sum of shifts. For r ≥ 0 r\ge0 r ≥ 0 , the equality (1) gives
F p r = 1 p r ( id + E + ⋯ + E p − 1 ) r = 1 p r ∑ a 1 , … , a r ∈ { 0 , … , p − 1 } E a 1 + ⋯ + a r F_p^r=\frac{1}{p^r}(\operatorname{id}+E+\cdots+E^{p-1})^r
=\frac{1}{p^r}\sum_{\substack{a_1,\ldots,a_r\in\{0,\ldots,p-1\}}}E^{a_1+\cdots+a_r} F p r = p r 1 ( id + E + ⋯ + E p − 1 ) r = p r 1 a 1 , … , a r ∈ { 0 , … , p − 1 } ∑ E a 1 + ⋯ + a r
by distributivity (where for r = 0 r=0 r = 0 , the sum consists of a single addend equal to E 0 E^0 E 0 , corresponding to the empty 0-tuple). Here a i a_i a i records which shift was chosen from the i i i th factor. Applying this identity to a function w w w and evaluating at n n n gives
( F p r w ) ( n ) = 1 p r ∑ a 1 , … , a r ∈ { 0 , 1 , … , p − 1 } w ( n + a 1 + ⋯ + a r ) . (38) (F_p^rw)(n)=\frac{1}{p^r}\sum_{\substack{a_1,\ldots,a_r\in\{0,1,\ldots,p-1\}}}w(n+a_1+\cdots+a_r). \tag*{(38)} ( F p r w ) ( n ) = p r 1 a 1 , … , a r ∈ { 0 , 1 , … , p − 1 } ∑ w ( n + a 1 + ⋯ + a r ) . (38)
for all r ≥ 0 r \ge0 r ≥ 0 . In the p = 2 p=2 p = 2 case, all the inner sums a 1 + ⋯ + a r a_1+\cdots+a_r a 1 + ⋯ + a r lie between 0 0 0 and r r r . Thus, for 0 ≤ r ≤ ℓ 0 \le r \le\ell 0 ≤ r ≤ ℓ , if we compute ( F 2 r ( f g ) ) ( n ) (F_2^r(fg))(n) ( F 2 r ( f g )) ( n ) and ( F 2 r h ) ( 0 ) (F_2^r h)(0) ( F 2 r h ) ( 0 ) using (38) , then each summand in the formula for ( F 2 r ( f g ) ) ( n ) (F_2^r(fg))(n) ( F 2 r ( f g )) ( n ) equals the corresponding summand for ( F 2 r h ) ( 0 ) (F_2^r h)(0) ( F 2 r h ) ( 0 ) , by (37) . Consequently,
( F 2 r ( f g ) ) ( n ) = ( F 2 r h ) ( 0 ) ∈ Z ( since F 2 r h ∈ Z Z ) . (F_2^r(fg))(n)=(F_2^r h)(0)\in\mathbb{Z}\qquad(\text{since }F_2^r h\in\mathbb{Z}^{\mathbb{Z}}). ( F 2 r ( f g )) ( n ) = ( F 2 r h ) ( 0 ) ∈ Z ( since F 2 r h ∈ Z Z ) .
Since n n n was arbitrary, this shows that F 2 r ( f g ) ∈ Z Z F_2^r(fg)\in\mathbb{Z}^{\mathbb{Z}} F 2 r ( f g ) ∈ Z Z . Since r ≤ ℓ r\le\ell r ≤ ℓ was arbitrary, this means that f g fg f g is ℓ \ell ℓ -average-integral. So the set of all ℓ \ell ℓ -average-integral functions is closed under multiplication. Linearity of F 2 F_2 F 2 also gives closure under sums and additive inverses, and the constant function 1 1 1 is ℓ \ell ℓ -average-integral because F 2 F_2 F 2 fixes it. Hence, the set of all ℓ \ell ℓ -average-integral functions for p = 2 p=2 p = 2 is a ring under pointwise addition and multiplication.
For p = 3 p=3 p = 3 , let us again fix an ℓ \ell ℓ -average-integral function f ∈ Q Z f\in\mathbb{Q}^{\mathbb{Z}} f ∈ Q Z , and apply the same argument to an integer-valued polynomial P ∈ M 3 P\in M_3 P ∈ M 3 that satisfies
P ( s ) = f ( n + s ) for all 0 ≤ s ≤ 2 ℓ . (39) P(s)=f(n+s)\qquad\text{for all }0\le s\le2\ell. \tag*{(39)} P ( s ) = f ( n + s ) for all 0 ≤ s ≤ 2 ℓ . (39)
(Such a P P P again exists by Lemma 4.4 .) As we saw above, P ∈ M 3 P\in M_3 P ∈ M 3 entails P 3 ∈ M 3 P^3\in M_3 P 3 ∈ M 3 . Put h ( s ) = P ( s ) 3 h(s)=P(s)^3 h ( s ) = P ( s ) 3 . Since P 3 P^3 P 3 is integer-valued and belongs to M 3 M_3 M 3 , Proposition 4.3 (again, its last sentence, applied to P 3 P^3 P 3 ) shows that the function h h h is average-integral, i.e., we have F 3 r h ∈ Z Z F_3^r h\in\mathbb{Z}^{\mathbb{Z}} F 3 r h ∈ Z Z for all r ≥ 0 r\ge0 r ≥ 0 . For 0 ≤ r ≤ ℓ 0\le r\le\ell 0 ≤ r ≤ ℓ , the sum a 1 + ⋯ + a r a_1+\cdots+a_r a 1 + ⋯ + a r in (38) lies between 0 0 0 and 2 r ≤ 2 ℓ 2r\le2\ell 2 r ≤ 2 ℓ . At all these arguments, we have h ( s ) = P ( s ) 3 = f ( n + s ) 3 h(s)=P(s)^3=f(n+s)^3 h ( s ) = P ( s ) 3 = f ( n + s ) 3 by (39) , and hence
( F 3 r ( f 3 ) ) ( n ) = ( F 3 r h ) ( 0 ) ∈ Z . (F_3^r(f^3))(n)=(F_3^r h)(0)\in\mathbb{Z}. ( F 3 r ( f 3 )) ( n ) = ( F 3 r h ) ( 0 ) ∈ Z .
Since n n n was arbitrary, this shows that F 3 r ( f 3 ) ∈ Z Z F_3^r(f^3)\in\mathbb{Z}^{\mathbb{Z}} F 3 r ( f 3 ) ∈ Z Z , and therefore f 3 f^3 f 3 is ℓ \ell ℓ -average-integral.
Proof of Corollary 1.3. Suppose f , g f,g f , g are average-integral for p = 2 p=2 p = 2 . For any k ≥ 0 k\ge0 k ≥ 0 , apply the p = 2 p=2 p = 2 case of Theorem 1.2 with ℓ = k \ell=k ℓ = k to see that f g fg f g is k k k -average-integral; thus, F 2 k ( f g ) ∈ Z Z F_2^k(fg)\in\mathbb{Z}^{\mathbb{Z}} F 2 k ( f g ) ∈ Z Z . This shows that f g fg f g is average-integral.
Likewise, if f f f is average-integral for p = 3 p=3 p = 3 , then Theorem 1.2 for p = 3 p=3 p = 3 and ℓ = k \ell=k ℓ = k gives F 3 k ( f 3 ) ∈ Z Z F_3^k(f^3)\in\mathbb{Z}^{\mathbb{Z}} F 3 k ( f 3 ) ∈ Z Z for every k ≥ 0 k\ge0 k ≥ 0 . Thus f 3 f^3 f 3 is average-integral.
Remark 5.1. The polynomial strategy for p = 2 , 3 p=2,3 p = 2 , 3 was already sketched by Gjergji Zaimi in his June 16, 2011 answer to [2 ] . The proof above supplies the full coefficient estimates and the local lifting argument. The distinction between products and cubes is necessary: for p = 3 p=3 p = 3 , f ( n ) = n f(n)=n f ( n ) = n is average-integral, since F 3 r f ( n ) = n + r F_3^r f(n)=n+r F 3 r f ( n ) = n + r , whereas
( F 3 ( f 2 ) ) ( n ) = n 2 + 2 n + 5 3 (F_3(f^2))(n)=n^2+2n+\frac{5}{3} ( F 3 ( f 2 )) ( n ) = n 2 + 2 n + 3 5
is never integral.
Sharpness for primes greater than three
We now verify zeb’s counterexample from [3 ] and use Theorem 1.1 to identify its first failing depth.
Proposition 6.1 (zeb’s example, with exact failing depth). Let p > 3 p > 3 p > 3 be prime and put f ( n ) = 1 + n p + 1 f(n) = 1 + n^{p+1} f ( n ) = 1 + n p + 1 . Then f f f is average-integral, while f p f^p f p is p p p -average-integral but is not ( p + 1 ) (p+1) ( p + 1 ) -average-integral. In particular, F p p + 1 ( f p ) F_p^{p+1}(f^p) F p p + 1 ( f p ) is the first nonintegral iterate.
For a first look at the obstruction, take p = 5 p = 5 p = 5 . The relevant expansion is
( 1 + x 6 ) 5 = 1 + 5 x 6 + 10 x 12 + 10 x 18 + 5 x 24 + x 30 . (1 + x^6)^5 = 1 + 5x^6 + 10x^{12} + 10x^{18} + 5x^{24} + x^{30}. ( 1 + x 6 ) 5 = 1 + 5 x 6 + 10 x 12 + 10 x 18 + 5 x 24 + x 30 .
The polynomial criterion requires two factors of 5 5 5 at degree 24 24 24 , since d ( 24 ) = 6 − 4 = 2 d(24) = 6 - 4 = 2 d ( 24 ) = 6 − 4 = 2 , but the coefficient is only 5 5 5 . All other terms satisfy the criterion. This already shows that some iterate fails. The proof below also determines the first failing iterate, by using a falling factorial of degree 24 24 24 .
Proof. Since p > 3 p > 3 p > 3 , Legendre’s formula gives v p ( ( p + 1 ) ! ) = 1 v_p((p + 1)!) = 1 v p (( p + 1 )!) = 1 and ⌊ ( p + 1 ) / ( p − 1 ) ⌋ = 1 \left\lfloor(p + 1)/(p - 1) \right\rfloor= 1 ⌊ ( p + 1 ) / ( p − 1 ) ⌋ = 1 . Thus d ( p + 1 ) = 0 d(p + 1) = 0 d ( p + 1 ) = 0 , so Lemma 4.1 (d) shows that n ↦ n p + 1 n \mapsto n^{p+1} n ↦ n p + 1 is average-integral. Since F p F_p F p fixes the constant function 1 1 1 and is linear, F p k f = 1 + F p k ( n ↦ n p + 1 ) F_p^k f = 1 + F_p^k(n \mapsto n^{p+1}) F p k f = 1 + F p k ( n ↦ n p + 1 ) is integral for every k ≥ 0 k \ge0 k ≥ 0 . Thus f f f is average-integral. We now examine f p f^p f p . The idea is to separate its polynomial into terms that are already known to be average-integral and one term that fails the difference test. The binomial theorem first gives
( 1 + x p + 1 ) p = ∑ r = 0 p ( p r ) ( x p + 1 ) r = ∑ r = 0 p ( p r ) x r ( p + 1 ) . (1 + x^{p+1})^p = \sum_{r=0}^{p} \binom{p}{r}(x^{p+1})^r = \sum_{r=0}^{p} \binom{p}{r}x^{r(p+1)}. ( 1 + x p + 1 ) p = r = 0 ∑ p ( r p ) ( x p + 1 ) r = r = 0 ∑ p ( r p ) x r ( p + 1 ) .
The terms with r = 0 r = 0 r = 0 and r = p r = p r = p are 1 1 1 and x p 2 + p x^{p^2+p} x p 2 + p . The term with r = p − 1 r = p - 1 r = p − 1 is p x ( p − 1 ) ( p + 1 ) px^{(p-1)(p+1)} p x ( p − 1 ) ( p + 1 ) . Set N = p 2 − 1 = ( p − 1 ) ( p + 1 ) N = p^2 - 1 = (p - 1)(p + 1) N = p 2 − 1 = ( p − 1 ) ( p + 1 ) and separate these three terms to obtain
( 1 + x p + 1 ) p = 1 + ∑ r = 1 p − 2 ( p r ) x r ( p + 1 ) + p x N + x p 2 + p . (1 + x^{p+1})^p = 1 + \sum_{r=1}^{p-2} \binom{p}{r}x^{r(p+1)} + px^N + x^{p^2+p}. ( 1 + x p + 1 ) p = 1 + r = 1 ∑ p − 2 ( r p ) x r ( p + 1 ) + p x N + x p 2 + p .
For 1 ≤ r ≤ p − 2 1 \le r \le p - 2 1 ≤ r ≤ p − 2 , we have r ( p + 1 ) < p 2 r(p + 1) < p^2 r ( p + 1 ) < p 2 , so
v p ( ( r ( p + 1 ) ) ! ) = r , d ( r ( p + 1 ) ) = ⌊ 2 r p − 1 ⌋ ≤ 1. v_p((r(p + 1))!) = r,\qquad d(r(p + 1)) = \left\lfloor\frac{2r}{p - 1} \right\rfloor\le1. v p (( r ( p + 1 ))!) = r , d ( r ( p + 1 )) = ⌊ p − 1 2 r ⌋ ≤ 1.
Also v p ( ( p 2 + p ) ! ) = p + 2 = ⌊ ( p 2 + p ) / ( p − 1 ) ⌋ v_p((p^2 + p)!) = p + 2 = \left\lfloor(p^2 + p)/(p - 1) \right\rfloor v p (( p 2 + p )!) = p + 2 = ⌊ ( p 2 + p ) / ( p − 1 ) ⌋ , and hence d ( p 2 + p ) = 0 d(p^2 + p) = 0 d ( p 2 + p ) = 0 . For 1 ≤ r ≤ p − 2 1 \le r \le p - 2 1 ≤ r ≤ p − 2 , the coefficient ( p r ) \binom{p}{r} ( r p ) is divisible by p p p , which supplies the at most one factor demanded by d ( r ( p + 1 ) ) ≤ 1 d(r(p + 1)) \le1 d ( r ( p + 1 )) ≤ 1 . The last term needs no additional factor, since d ( p 2 + p ) = 0 d(p^2 + p) = 0 d ( p 2 + p ) = 0 . By Lemma 4.1 (d), all the displayed summands except possibly p x N px^N p x N are therefore average-integral.
To test the remaining term p x N px^N p x N , we replace x N x^N x N by the falling factorial ( x ) N (x)_N ( x ) N , whose N N N th difference is especially simple. We must check that the lower-degree terms introduced by this replacement are harmless.
For 0 ≤ j < N 0 \le j < N 0 ≤ j < N , write j = a p + b j = ap + b j = a p + b with 0 ≤ b < p 0 \le b < p 0 ≤ b < p . Then 0 ≤ a ≤ p − 1 0 \le a \le p - 1 0 ≤ a ≤ p − 1 and a + b ≤ 2 p − 3 a + b \le2p - 3 a + b ≤ 2 p − 3 : equality a = b = p − 1 a = b = p - 1 a = b = p − 1 is excluded by j < N j < N j < N . Legendre’s formula gives v p ( j ! ) = a v_p(j!) = a v p ( j !) = a , whence
d ( j ) = ⌊ a p + b p − 1 ⌋ − a = ⌊ a + b p − 1 ⌋ ≤ 1. d(j) = \left\lfloor\frac{ap + b}{p - 1} \right\rfloor- a = \left\lfloor\frac{a + b}{p - 1} \right\rfloor\le1. d ( j ) = ⌊ p − 1 a p + b ⌋ − a = ⌊ p − 1 a + b ⌋ ≤ 1.
Since x N − ( x ) N x^N-(x)_N x N − ( x ) N is an integer polynomial of degree less than N N N , every coefficient of p ( x N − ( x ) N ) p(x^N-(x)_N) p ( x N − ( x ) N ) is divisible by p p p . The inequalities d ( j ) ≤ 1 d(j)\le1 d ( j ) ≤ 1 show that each of its monomials satisfies the polynomial criterion. Thus p ( x N − ( x ) N ) p(x^N-(x)_N) p ( x N − ( x ) N ) is average-integral. We conclude that
( 1 + x p + 1 ) p = p ( x ) N + A ( x ) , (40) (1+x^{p+1})^p=p(x)_N+A(x), \tag*{(40)} ( 1 + x p + 1 ) p = p ( x ) N + A ( x ) , (40)
where A A A defines an average-integral function a ( n ) = A ( n ) a(n)=A(n) a ( n ) = A ( n ) . Put h ( n ) = p ( n ) N h(n)=p(n)_N h ( n ) = p ( n ) N . Evaluating the identity (40) at integers gives f p = h + a f^p=h+a f p = h + a , so linearity gives
F p k h = F p k ( f p ) − F p k a for all k ≥ 0. F_p^k h=F_p^k(f^p)-F_p^k a \qquad\text{for all } k\ge0. F p k h = F p k ( f p ) − F p k a for all k ≥ 0.
Since F p k a F_p^k a F p k a is integral for every k k k , if f p f^p f p were ( p + 1 ) (p+1) ( p + 1 ) -average-integral, then h h h would be ( p + 1 ) (p+1) ( p + 1 ) -average-integral as well. Lemma 1.4 , with N = ( p + 1 ) ( p − 1 ) N=(p+1)(p-1) N = ( p + 1 ) ( p − 1 ) , would force Δ N h \Delta^N h Δ N h to belong to p ⌊ N / ( p − 1 ) ⌋ Z Z = p p + 1 Z Z p^{\lfloor N/(p-1)\rfloor}\mathbb{Z}^ \mathbb{Z}=p^{p+1}\mathbb{Z}^ \mathbb{Z} p ⌊ N / ( p − 1 )⌋ Z Z = p p + 1 Z Z , so that all values of the polynomial Δ N ( p ( x ) N ) \Delta^N(p(x)_N) Δ N ( p ( x ) N ) at integers would be multiples of p p + 1 p^{p+1} p p + 1 . In other words, all values of the polynomial Δ N ( x ) N \Delta^N(x)_N Δ N ( x ) N would be multiples of p p p^p p p . But this is false, since iterating (8) N N N times shows that Δ N ( x ) N \Delta^N(x)_N Δ N ( x ) N is the constant polynomial N ! N! N ! , which is not a multiple of p p p^p p p (indeed, Legendre’s formula shows that v p ( N ! ) = p − 1 v_p(N!)=p-1 v p ( N !) = p − 1 ). This contradiction shows that f p f^p f p cannot be ( p + 1 ) (p+1) ( p + 1 ) -average-integral. Finally, Theorem 1.1 shows that f p f^p f p is p p p -average-integral, so failure first occurs at iteration p + 1 p+1 p + 1 .
Remark 6.2. The proof of Lemma 2.3 also helps explain why the depth p + 1 p+1 p + 1 is different from the depths 1 , … , p 1,\ldots,p 1 , … , p . There we wrote P ( x ) p = ∑ j c j ( x ) j P(x)^p=\sum_j c_j(x)_j P ( x ) p = ∑ j c j ( x ) j and used Δ m ( P p ) ( 0 ) = m ! c m \Delta^m(P^p)(0)=m!c_m Δ m ( P p ) ( 0 ) = m ! c m . For m = k ( p − 1 ) m=k(p-1) m = k ( p − 1 ) with 1 ≤ k ≤ p 1\le k\le p 1 ≤ k ≤ p , the factorial m ! m! m ! supplies exactly k − 1 k-1 k − 1 factors of p p p . The coefficient argument modulo p p p supplies the remaining factor by showing that c m ∈ p R c_m\in pR c m ∈ pR . At k = p + 1 k=p+1 k = p + 1 , however, we have m = p 2 − 1 m=p^2-1 m = p 2 − 1 and still v p ( m ! ) = p − 1 v_p(m!)=p-1 v p ( m !) = p − 1 . To obtain Δ m ( P p ) ( 0 ) ∈ p p + 1 R \Delta^m(P^p)(0)\in p^{p+1}R Δ m ( P p ) ( 0 ) ∈ p p + 1 R , we would now need c m ∈ p 2 R c_m\in p^2R c m ∈ p 2 R , rather than just c m ∈ p R c_m\in pR c m ∈ pR . Thus the argument modulo p p p no longer suffices. Proposition 6.1 shows that, for every p > 3 p>3 p > 3 , this stronger divisibility can actually fail.
Non-primes
The assumption that the averaging length p p p is prime is essential for Theorem 1.1 . Here are some examples of what can go wrong when we average over composite-length windows.
For an integer m ≥ 2 m\ge2 m ≥ 2 , define an operator F m : Q Z → Q Z F_m:\mathbb{Q}^{\mathbb{Z}}\to\mathbb{Q}^{\mathbb{Z}} F m : Q Z → Q Z by
F m f ( n ) = f ( n ) + f ( n + 1 ) + ⋯ + f ( n + m − 1 ) m . F_mf(n)=\frac{f(n)+f(n+1)+\cdots+f(n+m-1)}{m}. F m f ( n ) = m f ( n ) + f ( n + 1 ) + ⋯ + f ( n + m − 1 ) .
(generalizing the F p F_p F p we have studied above). An m m m -periodic function f f f exhibits very simple behavior under averaging: every block of m m m consecutive values has the same sum, so F m f F_mf F m f is constant. If that sum is zero, then F m f = 0 F_mf=0 F m f = 0 , and hence F m k f = 0 F_m^kf=0 F m k f = 0 for every k ≥ 1 k\ge1 k ≥ 1 .
Example 7.1. For m = 4 m=4 m = 4 , let f f f be the 4-periodic function whose values in one period are 1 , − 1 , 0 , 0 1,-1,0,0 1 , − 1 , 0 , 0 . Then F 4 f = 0 F_4f=0 F 4 f = 0 , whereas
F 4 ( f 4 ) = 1 + 1 + 0 + 0 4 = 1 2 . F_4(f^4)=\frac{1+1+0+0}{4}=\frac{1}{2}. F 4 ( f 4 ) = 4 1 + 1 + 0 + 0 = 2 1 .
Thus, even when F m k f F_m^k f F m k f is integral for every k ≥ 0 k \ge0 k ≥ 0 , its fourth power can fail at the very first averaging step. The same example, with m − 2 m-2 m − 2 zeros in place of the two zeros, works for every even m > 2 m>2 m > 2 : it gives F m k f = 0 F_m^k f=0 F m k f = 0 and F m ( f m ) = 2 / m F_m(f^m)=2/m F m ( f m ) = 2/ m .
There is a similar obstruction whenever m m m is divisible by the square of a prime:
Example 7.2. Suppose that r r r is prime and r 2 ∣ m r^2 \mid m r 2 ∣ m . Take an m m m -periodic function f f f with r r r entries equal to 1 1 1 , one entry equal to − r -r − r , and all remaining entries equal to zero in each period. There is room for these entries because r + 1 ≤ r 2 ≤ m r+1 \le r^2 \le m r + 1 ≤ r 2 ≤ m . Their sum is zero, so again F m k f = 0 F_m^k f=0 F m k f = 0 for every k ≥ 1 k \ge1 k ≥ 1 . On the other hand,
F m ( f m ) = r + ( − r ) m m . F_m(f^m)=\frac{r+(-r)^m}{m}. F m ( f m ) = m r + ( − r ) m .
The numerator is congruent to r r r modulo r 2 r^2 r 2 , and therefore is not divisible by m m m . Hence f m f^m f m fails to be integer-valued after one averaging step. In particular, this rules out an analogue of the power-preservation theorem for every composite prime power.
Odd squarefree lengths can fail as well:
Example 7.3. For m = 15 m=15 m = 15 , take the 15-periodic function with values 1 , 1 , − 2 1,1,-2 1 , 1 , − 2 followed by twelve zeros in each period. Again the sum is zero, so F 15 k f = 0 F_{15}^k f=0 F 15 k f = 0 for every k ≥ 1 k \ge1 k ≥ 1 . But
F 15 ( f 15 ) = 1 + 1 + ( − 2 ) 15 15 = − 10922 5 ∉ Z . F_{15}(f^{15})=\frac{1+1+(-2)^{15}}{15}=-\frac{10922}{5}\notin\mathbb{Z}. F 15 ( f 15 ) = 15 1 + 1 + ( − 2 ) 15 = − 5 10922 ∈ / Z .
Thus the power-preservation assertion fails at the first step even for m = 3 ⋅ 5 m=3\cdot5 m = 3 ⋅ 5 .
More generally, suppose m ≥ 3 m \ge3 m ≥ 3 is odd and some integer a a a satisfies a m ≢ a ( m o d m ) a^m \not\equiv a \pmod m a m ≡ a ( mod m ) . We may choose 0 ≤ a ≤ m − 1 0 \le a \le m-1 0 ≤ a ≤ m − 1 , since the congruence depends only on the residue of a a a modulo m m m . Take an m m m -periodic function with a a a entries equal to 1 1 1 , one entry equal to − a -a − a , and m − a − 1 m-a-1 m − a − 1 entries equal to zero in each period. Its sum is zero, whereas the sum of its m m m th powers is a − a m a-a^m a − a m , which is not divisible by m m m . This gives the same kind of counterexample.
Conversely, if
a m ≡ a ( m o d m ) for all a ∈ Z , a^m \equiv a \pmod m \qquad\text{for all }a\in\mathbb{Z}, a m ≡ a ( mod m ) for all a ∈ Z ,
(that is, m m m is either prime or a Carmichael number), then every integer-valued function f f f satisfies
∑ r = 0 m − 1 f ( n + r ) m ≡ ∑ r = 0 m − 1 f ( n + r ) ( m o d m ) for all n ∈ Z . \sum_{r=0}^{m-1} f(n+r)^m \equiv\sum_{r=0}^{m-1} f(n+r) \pmod m \qquad\text{for all }n\in\mathbb{Z}. r = 0 ∑ m − 1 f ( n + r ) m ≡ r = 0 ∑ m − 1 f ( n + r ) ( mod m ) for all n ∈ Z .
Consequently, integrality of F m f F_m f F m f implies integrality of F m ( f m ) F_m(f^m) F m ( f m ) . Thus, for odd m m m , the displayed congruence for all a a a is exactly the condition for power preservation at the first step. This does not imply preservation at all averaging steps. We can, however, obtain integrality at some larger depths, provided we increase the exponent along with the depth.
Proposition 7.4. Let m ≥ 2 m \ge2 m ≥ 2 be an integer such that
a m ≡ a ( m o d m ) for all a ∈ Z . a^m \equiv a \pmod m \qquad\text{for all }a\in\mathbb{Z}. a m ≡ a ( mod m ) for all a ∈ Z . Let f : Z → Z f:\mathbb{Z}\to\mathbb{Z} f : Z → Z satisfy F m f ∈ Z Z F_m f\in\mathbb{Z}^{\mathbb{Z}} F m f ∈ Z Z . Then, for every integer t ≥ 0 t\ge0 t ≥ 0 , we have
F m k ( f m t ) ∈ Z Z for all 0 ≤ k ≤ t + 1. F_m^k(f^{m^t})\in\mathbb{Z}^{\mathbb{Z}} \qquad\text{for all }0\le k\le t+1. F m k ( f m t ) ∈ Z Z for all 0 ≤ k ≤ t + 1.
Proof. Subtracting two consecutive averages gives
f ( n + m ) − f ( n ) = m ( ( F m f ) ( n + 1 ) − ( F m f ) ( n ) ) . f(n+m)-f(n)=m\bigl((F_mf)(n+1)-(F_mf)(n)\bigr). f ( n + m ) − f ( n ) = m ( ( F m f ) ( n + 1 ) − ( F m f ) ( n ) ) .
Thus
f ( n + m ) ≡ f ( n ) ( m o d m ) for every n ∈ Z (41) f(n+m)\equiv f(n)\pmod m \qquad\text{for every }n\in\mathbb{Z} \tag*{(41)} f ( n + m ) ≡ f ( n ) ( mod m ) for every n ∈ Z (41)
(since F m f ∈ Z Z F_mf\in\mathbb{Z}^{\mathbb{Z}} F m f ∈ Z Z ).
We first check how raising to the m m m th power improves this congruence. Suppose a a a and b b b are two integers such that a ≡ b ( m o d m r ) a\equiv b\pmod{m^r} a ≡ b ( mod m r ) , where r ≥ 1 r\ge1 r ≥ 1 , and write a = b + m r u a=b+m^ru a = b + m r u with u ∈ Z u\in\mathbb{Z} u ∈ Z . Expanding a m = ( b + m r u ) m a^m=(b+m^ru)^m a m = ( b + m r u ) m using the binomial theorem gives
a m − b m = m r + 1 u b m − 1 + ∑ i = 2 m ( m i ) m r i u i b m − i . a^m-b^m=m^{r+1}ub^{m-1}+\sum_{i=2}^{m}\binom{m}{i}m^{ri}u^ib^{m-i}. a m − b m = m r + 1 u b m − 1 + i = 2 ∑ m ( i m ) m r i u i b m − i .
Every term is divisible by m r + 1 m^{r+1} m r + 1 , since r i ≥ r + 1 ri\ge r+1 r i ≥ r + 1 when i ≥ 2 i\ge2 i ≥ 2 . Thus, a m ≡ b m ( m o d m r + 1 ) a^m\equiv b^m\pmod{m^{r+1}} a m ≡ b m ( mod m r + 1 ) . Applying this observation t t t times yields
a m t ≡ b m t ( m o d m r + t ) . a^{m^t}\equiv b^{m^t}\pmod{m^{r+t}}. a m t ≡ b m t ( mod m r + t ) .
Thus, from (41) , we obtain
f ( n + m ) m t ≡ f ( n ) m t ( m o d m t + 1 ) for all n ∈ Z . f(n+m)^{m^t}\equiv f(n)^{m^t}\pmod{m^{t+1}}\qquad\text{for all }n\in\mathbb{Z}. f ( n + m ) m t ≡ f ( n ) m t ( mod m t + 1 ) for all n ∈ Z .
Let b : Z → Z b:\mathbb{Z}\to\mathbb{Z} b : Z → Z be the m m m -periodic function agreeing with f m t f^{m^t} f m t at 0 , 1 , … , m − 1 0,1,\ldots,m-1 0 , 1 , … , m − 1 . The last congruence shows that
f m t = b + m t + 1 c f^{m^t}=b+m^{t+1}c f m t = b + m t + 1 c
for an integer-valued function c c c on Z \mathbb{Z} Z . Repeatedly using the hypothesis a m ≡ a ( m o d m ) a^m\equiv a\pmod m a m ≡ a ( mod m ) gives a m t ≡ a ( m o d m ) a^{m^t}\equiv a\pmod m a m t ≡ a ( mod m ) for all a ∈ Z a\in\mathbb{Z} a ∈ Z . Consequently,
∑ s = 0 m − 1 b ( s ) = ∑ s = 0 m − 1 f ( s ) m t ≡ ∑ s = 0 m − 1 f ( s ) = m ( F m f ) ( 0 ) ≡ 0 ( m o d m ) . \sum_{s=0}^{m-1}b(s)=\sum_{s=0}^{m-1}f(s)^{m^t}\equiv\sum_{s=0}^{m-1}f(s)=m(F_mf)(0)\equiv0\pmod m. s = 0 ∑ m − 1 b ( s ) = s = 0 ∑ m − 1 f ( s ) m t ≡ s = 0 ∑ m − 1 f ( s ) = m ( F m f ) ( 0 ) ≡ 0 ( mod m ) .
Since b b b is m m m -periodic, F m b F_mb F m b is therefore an integer constant, and every further average of b b b is the same constant. On the other hand, m k F m k c m^kF_m^kc m k F m k c is integer-valued: expanding the k k k averaging operations expresses it as a sum of integer values of c c c . Hence m t + 1 F m k c m^{t+1}F_m^kc m t + 1 F m k c is integer-valued for 0 ≤ k ≤ t + 1 0\le k\le t+1 0 ≤ k ≤ t + 1 . Applying F m k F_m^k F m k to f m t = b + m t + 1 c f^{m^t}=b+m^{t+1}c f m t = b + m t + 1 c proves the assertion. □
Example 7.5 (The averaging length 561). The composite integer m = 561 = 3 ⋅ 11 ⋅ 17 m=561=3\cdot11\cdot17 m = 561 = 3 ⋅ 11 ⋅ 17 is known to be a Carmichael number; thus it satisfies the hypothesis of Proposition 7.4 . Hence, integrality of F 561 f F_{561}f F 561 f guarantees (by Proposition 7.4 ) that the first two averages of f 561 f^{561} f 561 , the first three averages of f 561 2 f^{561^2} f 56 1 2 , and, more generally, the first t + 1 t+1 t + 1 averages of f 561 t f^{561^t} f 56 1 t are integral.
Keeping the exponent equal to 561, however, does not give preservation at every depth. Take f ( n ) = n f(n)=n f ( n ) = n . Then
( F 561 k f ) ( n ) = n + 280 k for all k ≥ 0 and n ∈ Z , (F_{561}^kf)(n)=n+280k\qquad\text{for all }k\ge0\text{ and }n\in\mathbb{Z}, ( F 561 k f ) ( n ) = n + 280 k for all k ≥ 0 and n ∈ Z ,
so every average of f f f is integer-valued. Nevertheless, a mechanical computation (see Appendix § 10 ) shows that
∑ a 1 , … , a 5 = 0 560 ( a 1 + ⋯ + a 5 ) 561 ≡ 162 ( m o d 243 ) . (42) \sum_{\substack{a_1,\ldots,a_5=0}}^{560} (a_1+\cdots+a_5)^{561} \equiv162 \pmod{243}. \tag*{(42)} a 1 , … , a 5 = 0 ∑ 560 ( a 1 + ⋯ + a 5 ) 561 ≡ 162 ( mod 243 ) . (42)
The left-hand side is 561 5 ( F 561 5 ( f 561 ) ) ( 0 ) 561^5(F_{561}^{5}(f^{561}))(0) 56 1 5 ( F 561 5 ( f 561 )) ( 0 ) (by (38) ). Since 243 = 3 5 243=3^5 243 = 3 5 divides 561 5 561^5 56 1 5 , the congruence shows that ( F 561 5 ( f 561 ) ) ( 0 ) (F_{561}^{5}(f^{561}))(0) ( F 561 5 ( f 561 )) ( 0 ) is not an integer.
Connections with the literature
The averaging problem also belongs to a longer history of divisibility conditions on finite differences. We describe some connections here, including two results from which parts of our conclusions can be deduced. This section is independent of the proofs above. The paragraphs on p p p -adic functions provide additional context and may be skipped without affecting the rest of the note.
An exact antecedent for the binary product theorem
Sun [4 Definition 2.1] calls a function u : Z ≥ 0 → Z ( p ) u:\mathbb{Z}_{\ge0}\to\mathbb{Z}_{(p)} u : Z ≥ 0 → Z ( p ) p p p -regular if
∑ r = 0 j ( − 1 ) r ( j r ) u ( r ) ∈ p j Z ( p ) for all j ≥ 0. \sum_{r=0}^{j}(-1)^r\binom{j}{r}u(r)\in p^j\mathbb{Z}_{(p)}\qquad\text{for all }j\ge0. r = 0 ∑ j ( − 1 ) r ( r j ) u ( r ) ∈ p j Z ( p ) for all j ≥ 0.
These sums equal ( − 1 ) j Δ j u ( 0 ) (-1)^j\Delta^j u(0) ( − 1 ) j Δ j u ( 0 ) . His Product Theorem, [4 Theorem 2.3, p. 200] , states that products of p p p -regular functions are p p p -regular. For p = 2 p=2 p = 2 , it gives our infinite-depth product assertion. To see the connection, let f , g f,g f , g be average-integral functions and fix n ∈ Z n\in\mathbb{Z} n ∈ Z . The functions u ( r ) = f ( n + r ) u(r)=f(n+r) u ( r ) = f ( n + r ) and v ( r ) = g ( n + r ) v(r)=g(n+r) v ( r ) = g ( n + r ) on the nonnegative integers are 2 2 2 -regular by Lemma 1.4, since q = 1 q=1 q = 1 . Sun’s theorem gives 2 j ∣ Δ j ( f g ) ( n ) 2^j\mid\Delta^j(fg)(n) 2 j ∣ Δ j ( f g ) ( n ) in Z ( 2 ) \mathbb{Z}_{(2)} Z ( 2 ) for every j j j . These differences are ordinary integers, so the same divisibility holds in Z \mathbb{Z} Z . Since n n n was arbitrary, the difference criterion proves that f g fg f g is average-integral. For p = 3 p=3 p = 3 our bound is ⌊ j / 2 ⌋ \lfloor j/2\rfloor ⌊ j /2 ⌋ , not j j j , so Sun’s theorem does not cover our class.
There is a related formulation using p p p -adic integers. Recall that Z p \mathbb{Z}_p Z p records compatible residues modulo p , p 2 , p 3 , … p,p^2,p^3,\ldots p , p 2 , p 3 , … ; in its notion of convergence, a j → 0 a_j\to0 a j → 0 means that for each k k k , all sufficiently late terms are divisible by p k p^k p k . This ring is different from R = Z ( p ) R=\mathbb{Z}_{(p)} R = Z ( p ) , whose elements are rational numbers.
Kellner [5 Definition 3.1 and Theorem 6.1] studies the p p p -adic Kummer space K p , 2 K_{p,2} K p , 2 defined by Δ j u ( x ) ∈ p j Z p \Delta^j u(x)\in p^j\mathbb{Z}_p Δ j u ( x ) ∈ p j Z p and proves that it is a ring. At p = 2 p=2 p = 2 , this is exactly the continuous p p p -adic version of the present class.
Mahler expansions and the exact coefficient condition
Newton interpolation has an infinite-series analogue over Z p \mathbb{Z}_p Z p . Mahler’s interpolation theorem [6 ] identifies continuous functions u : Z p → Z p u:\mathbb{Z}_p\to\mathbb{Z}_p u : Z p → Z p with uniformly convergent series
u ( x ) = ∑ j ≥ 0 a j ( x j ) , a j = Δ j u ( 0 ) ⟶ 0. u(x)=\sum_{j\ge0}a_j\binom{x}{j},\qquad a_j=\Delta^j u(0)\longrightarrow0. u ( x ) = j ≥ 0 ∑ a j ( j x ) , a j = Δ j u ( 0 ) ⟶ 0.
This extension procedure also allows us to recover Sun’s earlier product theorem from Kellner’s ring theorem, for every prime p p p . Indeed, let u : Z ≥ 0 → R u:\mathbb{Z}_{\geq0}\to R u : Z ≥ 0 → R be p p p -regular and put a j = Δ j u ( 0 ) a_j=\Delta^j u(0) a j = Δ j u ( 0 ) . Embed R R R in Z p \mathbb{Z}_p Z p . Since a j ∈ p j R a_j\in p^jR a j ∈ p j R , the series
U ( x ) = ∑ j ≥ 0 a j ( x j ) U(x)=\sum_{j\geq0}a_j\binom{x}{j} U ( x ) = j ≥ 0 ∑ a j ( j x )
converges uniformly on Z p \mathbb{Z}_p Z p . Newton interpolation gives U ( n ) = u ( n ) U(n)=u(n) U ( n ) = u ( n ) for every nonnegative integer n n n . The identity Δ ( x j ) = ( x j − 1 ) \Delta\binom{x}{j}=\binom{x}{j-1} Δ ( j x ) = ( j − 1 x ) for j ≥ 1 j\geq1 j ≥ 1 then gives
Δ k U ( x ) = ∑ j ≥ k a j ( x j − k ) ∈ p k Z p \Delta^kU(x)=\sum_{j\geq k}a_j\binom{x}{j-k}\in p^k\mathbb{Z}_p Δ k U ( x ) = j ≥ k ∑ a j ( j − k x ) ∈ p k Z p
for all k ≥ 0 k\geq0 k ≥ 0 and x ∈ Z p x\in\mathbb{Z}_p x ∈ Z p .
Here each binomial polynomial takes values in Z p \mathbb{Z}_p Z p , and the series still converges after division by p k p^k p k . Thus U ∈ K p , 2 U\in\mathcal{K}_{p,2} U ∈ K p , 2 . If v v v is another p p p -regular function, its extension V V V likewise belongs to K p , 2 \mathcal{K}_{p,2} K p , 2 . Kellner’s ring theorem gives U V ∈ K p , 2 UV\in\mathcal{K}_{p,2} U V ∈ K p , 2 , so Δ k ( u v ) ( 0 ) ∈ p k Z p \Delta^k(uv)(0)\in p^k\mathbb{Z}_p Δ k ( uv ) ( 0 ) ∈ p k Z p . This finite difference also belongs to R R R . Since R ∩ p k Z p = p k R R\cap p^k\mathbb{Z}_p=p^kR R ∩ p k Z p = p k R , it follows that u v uv uv is p p p -regular, as asserted by Sun’s theorem.
In this language the continuous p p p -adic version of average-integrality is precisely
a j ∈ p ⌊ j / ( p − 1 ) ⌋ Z p for all j ≥ 0. (43) a_j\in p^{\lfloor j/(p-1)\rfloor}\mathbb{Z}_p\qquad\text{for all }j\geq0. \tag*{(43)} a j ∈ p ⌊ j / ( p − 1 )⌋ Z p for all j ≥ 0. (43)
For necessity, apply the difference criterion and evaluate the j j j th difference at zero. For sufficiency, note that Δ ( x j ) = ( x j − 1 ) \Delta\binom{x}{j}=\binom{x}{j-1} Δ ( j x ) = ( j − 1 x ) for j ≥ 1 j\geq1 j ≥ 1 , by (8) after division by j ! j! j ! . Taking r ( p − 1 ) r(p-1) r ( p − 1 ) differences therefore shifts the binomial indices by r ( p − 1 ) r(p-1) r ( p − 1 ) , just as in (33) . Every remaining coefficient is divisible by p r p^r p r , and division by p r p^r p r still leaves a convergent series with values in Z p \mathbb{Z}_p Z p . The difference criterion now gives the desired integrality of the averages.
Every average-integral function has such a continuous extension, including agreement at negative integers. Here is a direct justification of the latter point. The bounds on a j = Δ j f ( 0 ) a_j=\Delta^j f(0) a j = Δ j f ( 0 ) make the Mahler series converge uniformly and agree with f f f at nonnegative integers. For a fixed negative integer n n n , put
A j = Δ j f ( n ) , P N ( x ) = ∑ j = 0 N A j ( x − n j ) . A_j=\Delta^j f(n),\qquad P_N(x)=\sum_{j=0}^{N}A_j\binom{x-n}{j}. A j = Δ j f ( n ) , P N ( x ) = j = 0 ∑ N A j ( j x − n ) .
The same bounds give a uniform limit u n u_n u n on Z p \mathbb{Z}_p Z p , and Newton interpolation gives u n ( x ) = f ( x ) u_n(x)=f(x) u n ( x ) = f ( x ) for every integer x ≥ n x\geq n x ≥ n . Thus u n u_n u n and the extension constructed at zero agree on the dense set Z ≥ 0 \mathbb{Z}_{\geq0} Z ≥ 0 , hence everywhere; in particular they agree at n n n . This proves the asserted extension. Conversely, the restriction of a function satisfying (43) is average-integral whenever its values on Z \mathbb{Z} Z are ordinary integers.
A second proof using Stirling numbers
The Stirling number S ( N , m ) S(N,m) S ( N , m ) of the second kind counts the partitions of an N N N -element set into m m m nonempty blocks. These integers also express ordinary powers in the falling-factorial basis:
x N = ∑ m = 0 N S ( N , m ) ( x ) m . x^N=\sum_{m=0}^{N}S(N,m)(x)_m. x N = m = 0 ∑ N S ( N , m ) ( x ) m .
For a nonnegative integer x x x , this identity counts maps from an N N N -element set to an x x x -element set: first partition the domain into its nonempty fibers, then choose distinct images for the blocks. It holds as a polynomial identity because it holds at every nonnegative integer x x x . Thus a divisibility theorem about S ( N , m ) S(N,m) S ( N , m ) can be used in place of our elementary coefficient argument.
In [7 Lemma 2.1] , Adelberg proves a lower bound on v p ( S ( N , m ) ) v_p(S(N,m)) v p ( S ( N , m )) . In terms of factorial valuations, his bound is
v p ( S ( N , m ) ) ≥ v p ( N ! ) − v p ( m ! ) − ⌊ N − m p − 1 ⌋ (44) v_p(S(N,m)) \ge v_p(N!) - v_p(m!) - \left\lfloor\frac{N-m}{p-1} \right\rfloor \tag*{(44)} v p ( S ( N , m )) ≥ v p ( N !) − v p ( m !) − ⌊ p − 1 N − m ⌋ (44)
for all N ≥ m ≥ 1 N \ge m \ge1 N ≥ m ≥ 1 . This bound yields another proof of Theorem 1.1 , as follows.
Let f f f be ℓ \ell ℓ -average-integral, where 1 ≤ ℓ ≤ p 1 \le\ell\le p 1 ≤ ℓ ≤ p , and fix n ∈ Z n \in\mathbb{Z} n ∈ Z . Lemma 4.4 supplies an integer-valued polynomial P ∈ M p P \in M_p P ∈ M p with P ( r ) = f ( n + r ) P(r)=f(n+r) P ( r ) = f ( n + r ) for 0 ≤ r ≤ ℓ ( p − 1 ) 0 \le r \le\ell(p-1) 0 ≤ r ≤ ℓ ( p − 1 ) . Write P ( x ) = ∑ j c j x j P(x)=\sum_j c_jx^j P ( x ) = ∑ j c j x j . By definition of M p M_p M p , c j ∈ p d ( j ) R c_j \in p^{d(j)}R c j ∈ p d ( j ) R . Since d ( j ) ≥ 0 d(j) \ge0 d ( j ) ≥ 0 , reducing modulo p p p therefore gives
P ‾ ( x ) = ∑ j : d ( j ) = 0 c j ‾ x j . \overline{P}(x)=\sum_{j:d(j)=0}\overline{c_j}x^j. P ( x ) = j : d ( j ) = 0 ∑ c j x j .
In characteristic p p p , the intermediate binomial coefficients ( p a ) \binom{p}{a} ( a p ) , for 1 ≤ a < p 1 \le a < p 1 ≤ a < p , vanish. Hence ( U + V ) p = U p + V p (U+V)^p=U^p+V^p ( U + V ) p = U p + V p ; applying this identity repeatedly to the finite sum above gives
P ‾ ( x ) p = ∑ j : d ( j ) = 0 c j ‾ p x p j = ∑ j : d ( j ) = 0 c j ‾ x p j . \overline{P}(x)^p=\sum_{j:d(j)=0}\overline{c_j}^{\,p}x^{pj}=\sum_{j:d(j)=0}\overline{c_j}x^{pj}. P ( x ) p = j : d ( j ) = 0 ∑ c j p x p j = j : d ( j ) = 0 ∑ c j x p j .
The last equality uses c ‾ p = c ‾ \overline{c}^p=\overline{c} c p = c in F p \mathbb{F}_p F p . Every exponent N = p j N=pj N = p j in this sum satisfies d ( N ) = d ( j ) = 0 d(N)=d(j)=0 d ( N ) = d ( j ) = 0 , by Lemma 4.1 (b).
As in the elementary proof, we want the falling-factorial coefficient at m = k ( p − 1 ) m=k(p-1) m = k ( p − 1 ) to be divisible by p p p . Stirling numbers describe exactly this change of basis. We will check that every monomial surviving modulo p p p has the required coefficient divisible by p p p . For m = k ( p − 1 ) m=k(p-1) m = k ( p − 1 ) with 1 ≤ k ≤ p 1 \le k \le p 1 ≤ k ≤ p , we have v p ( m ! ) = k − 1 v_p(m!)=k-1 v p ( m !) = k − 1 . Therefore the right side of (44) simplifies to
v p ( N ! ) − ( k − 1 ) − ( ⌊ N p − 1 ⌋ − k ) = 1 − d ( N ) . v_p(N!)-(k-1)-\left(\left\lfloor\frac{N}{p-1}\right\rfloor-k\right)=1-d(N). v p ( N !) − ( k − 1 ) − ( ⌊ p − 1 N ⌋ − k ) = 1 − d ( N ) .
Taking N = p j N=pj N = p j gives p ∣ S ( p j , m ) p\mid S(pj,m) p ∣ S ( p j , m ) whenever p j ≥ m pj\ge m p j ≥ m and d ( j ) = 0 d(j)=0 d ( j ) = 0 ; for p j < m pj<m p j < m the Stirling number is zero. It follows that
[ ( x ) m ] ( P p ‾ ) = ∑ j : d ( j ) = 0 c j ‾ S ( p j , m ) ‾ = 0. [(x)_m](\overline{P^p})=\sum_{j:d(j)=0}\overline{c_j}\,\overline{S(pj,m)}=0. [( x ) m ] ( P p ) = j : d ( j ) = 0 ∑ c j S ( p j , m ) = 0.
Thus, if b m b_m b m is the ( x ) m (x)_m ( x ) m -coefficient of P p P^p P p , then b m ∈ p R b_m\in pR b m ∈ pR . By (9) ,
Δ m ( P p ) ( 0 ) = m ! b m ∈ p k R , \Delta^m(P^p)(0)=m!b_m\in p^kR, Δ m ( P p ) ( 0 ) = m ! b m ∈ p k R ,
since v p ( m ! ) = k − 1 v_p(m!)=k-1 v p ( m !) = k − 1 . For 1 ≤ k ≤ ℓ 1 \le k \le\ell 1 ≤ k ≤ ℓ , we have m = k ( p − 1 ) ≤ ℓ ( p − 1 ) m=k(p-1)\le\ell(p-1) m = k ( p − 1 ) ≤ ℓ ( p − 1 ) . The polynomials P p P^p P p and the shifted function r ↦ f ( n + r ) p r\mapsto f(n+r)^p r ↦ f ( n + r ) p therefore agree at r = 0 , … , m r=0,\ldots,m r = 0 , … , m . Applying (21) gives
Δ k ( p − 1 ) ( f p ) ( n ) = Δ m ( P p ) ( 0 ) ∈ p k R . \Delta^{k(p-1)}(f^p)(n)=\Delta^m(P^p)(0)\in p^kR. Δ k ( p − 1 ) ( f p ) ( n ) = Δ m ( P p ) ( 0 ) ∈ p k R .
The left side is an integer, so it is divisible by p k p^{k} p k . Since n n n and k k k were arbitrary, Lemma 1.4 gives F p k ( f p ) ∈ Z Z F_{p}^{k}(f^{p}) \in\mathbb{Z}^{\mathbb{Z}} F p k ( f p ) ∈ Z Z for 0 ≤ k ≤ ℓ 0 \leq k \leq\ell 0 ≤ k ≤ ℓ . The case ℓ = 0 \ell= 0 ℓ = 0 follows directly from integrality of f f f .
Thus the finite-depth conclusion can be deduced from this published valuation bound and the polynomial criterion already present in the 2011 MathOverflow discussion. The proof in § 2 gives a direct finite-field argument for the particular vanishing needed here.
Power sums over a prime field
We prove (18) , working throughout in F p \mathbb{F}_{p} F p .
When b = 0 b = 0 b = 0 , our convention r 0 = 1 r^{0} = 1 r 0 = 1 makes the sum a sum of p p p ones, which is zero in F p \mathbb{F}_{p} F p . When b = p − 1 b = p - 1 b = p − 1 , Fermat’s little theorem gives r p − 1 = 1 r^{p-1} = 1 r p − 1 = 1 for every nonzero r r r , while 0 p − 1 = 0 0^{p-1} = 0 0 p − 1 = 0 . Hence the sum is p − 1 = − 1 p - 1 = -1 p − 1 = − 1 in F p \mathbb{F}_{p} F p .
It remains to consider 1 ≤ b < p − 1 1 \leq b < p - 1 1 ≤ b < p − 1 . Choose a nonzero residue a a a with a b ≠ 1 a^{b} \ne1 a b = 1 . Such a residue exists because the polynomial X b − 1 X^{b} - 1 X b − 1 has at most b b b roots, fewer than the p − 1 p - 1 p − 1 nonzero residues. Write S = ∑ r ∈ F p r b S = \sum_{r \in\mathbb{F}_{p}} r^{b} S = ∑ r ∈ F p r b . Multiplication by a a a permutes F p \mathbb{F}_{p} F p , so
S = ∑ r ∈ F p ( a r ) b = a b ∑ r ∈ F p r b = a b S . S = \sum_{r \in\mathbb{F}_{p}} (ar)^{b} = a^{b} \sum_{r \in\mathbb{F}_{p}} r^{b} = a^{b}S. S = r ∈ F p ∑ ( a r ) b = a b r ∈ F p ∑ r b = a b S .
Since a b − 1 ≠ 0 a^{b} - 1 \ne0 a b − 1 = 0 in the field F p \mathbb{F}_{p} F p , the equality forces S = 0 S = 0 S = 0 .
Verification of Example 7.5
The following exact computation in Python verifies (42) . After r r r passes through the loop, counts[s] is, modulo 243, the number of r r r -tuples with entries in { 0 , 1 , … , 560 } \{0,1,\ldots,560\} { 0 , 1 , … , 560 } whose sum is congruent to s s s modulo 243. Appending an entry a a a gives the recurrence used in the loop. The final sum weights each residue s s s by s 561 s^{561} s 561 modulo 243.
modulus = 243
counts = [1] + [0] * (modulus - 1)
for r in range(5):
counts = [
sum(counts[(s - a) % modulus] for a in range(561)) % modulus
for s in range(modulus)
]
remainder = sum(counts[s] * pow(s, 561, modulus)
for s in range(modulus)) % modulus
assert remainder == 162
This establishes failure of average-integrality by the fifth step; it does not assert that the fifth step is the first failure.
References