In mathematics, Hermite's identity gives the value of a summation involving the floor function. It states that for every real number x and for every positive integer n the following identity holds:
∑k=0n−1⌊x+kn⌋=⌊nx⌋. It is named after the French mathematician Charles Hermite.
Proofs
Proof by algebraic manipulation Split x into its integer part and fractional part, x=⌊x⌋+{x}. There is exactly one k′∈{1,…,n} with
⌊x⌋=⌊x+k′−1n⌋≤x<⌊x+k′n⌋=⌊x⌋+1. By subtracting the same integer ⌊x⌋ from inside the floor operations on the left and right sides of this inequality, it may be rewritten as
0=⌊{x}+k′−1n⌋≤{x}<⌊{x}+k′n⌋=1. Therefore,
1−k′n≤{x}<1−k′−1n, and multiplying both sides by n gives
n−k′≤n{x}<n−k′+1. Now if the summation from Hermite's identity is split into two parts at index k′, it becomes
∑k=0n−1⌊x+kn⌋=∑k=0k′−1⌊x⌋+∑k=k′n−1(⌊x⌋+1)=n⌊x⌋+n−k′=n⌊x⌋+⌊n{x}⌋=⌊n⌊x⌋+n{x}⌋=⌊nx⌋.
Proof using functions Consider the function
f(x)=⌊x⌋+⌊x+1n⌋+…+⌊x+n−1n⌋−⌊nx⌋ Then the identity is clearly equivalent to the statement f(x)=0 for all real x. But then we find,
f(x+1n)=⌊x+1n⌋+⌊x+2n⌋+…+⌊x+1⌋−⌊nx+1⌋=f(x) Where in the last equality we use the fact that ⌊x+p⌋=⌊x⌋+p for all integers p. But then f has period 1/n. It then suffices to prove that f(x)=0 for all x∈[0,1/n). But in this case, the integral part of each summand in f is equal to 0. We deduce that the function is indeed 0 for all real inputs x.
References