In mathematics, Proizvolov's identity is an identity concerning sums of differences of positive integers. The identity was posed by Vyacheslav Proizvolov as a problem in the 1985 All-Union Soviet Student Olympiads.
To state the identity, take the first 2N positive integers,
1, 2, 3, ..., 2N - 1, 2N,
and partition them into two subsets of N numbers each. Arrange one subset in increasing order:
A1<A2< … <AN.
Arrange the other subset in decreasing order:
B1>B2> … >BN.
Then the sum
|A1-B1|+|A2-B2|+ … +|AN-BN|
is always equal to N2.
Take for example N = 3. The set of numbers is then . Select three numbers of this set, say 2, 3 and 5. Then the sequences A and B are:
A1 = 2, A2 = 3, and A3 = 5;
B1 = 6, B2 = 4, and B3 = 1.
The sum is
|A1-B1|+|A2-B2|+|A3-B3|=|2-6|+|3-4|+|5-1|=4+1+4=9,
A slick proof of the identity is as follows. Note that for any
a,b
|a-b|=max\{a,b\}-min\{a,b\}
\{max\{ai,bi\}:1\lei\len\}
\{n+1,n+2,...,2n\}
ai,bi
1\lek\len
max\{ak,bk\}>n
k
n+1
a1,a2,...,ak,bk,bk+1,...,bn
n