Skip to main content
OlympiadHQ

Browse · MathNet

Print

APMO

number theory

Problem

Prove that for every positive integer there is a unique permutation of such that, for every , the binomial coefficient is odd and .
Solution
We constantly make use of Kummer's theorem which, in particular, implies that is odd if and only if and have ones in different positions in binary. In other words, if is the set of positions of the digits 1 of in binary (in which the digit multiplied by is in position , is odd if and only if . Moreover, if we set is a proper subset of , that is, . We start with a lemma that guides us how the permutation should be set.

Lemma 1. The proof is just realizing that and , because in binary is followed by a zero and in binary is followed by a one. Therefore The lemma has an immediate corollary: since and is odd for all , with . Since the sum of is less than the sum of , and there are values of , equality must occur, that is, , which in conjunction with means that for every , (more precisely, .) In particular, for odd, this means that , because the only odd power of 2 is 1. Then for odd, which takes up all the numbers greater than or equal to . Now we need to distribute the numbers that are smaller than (call these numbers small). If is even then by Lucas' Theorem , so we pair numbers from to (call these numbers big) with the small numbers. Say that a set is paired with another set whenever and there exists a bijection such that and ; we also say that and are paired. We prove by induction in that (the set of small numbers) and (the set of big numbers) can be uniquely paired. The claim is immediate for and . For , there is exactly one power of two in , since . Let be this power of two. Then, since , no number in has a one in position in binary. Since for every number and for all can only be paired with , since needs to be stripped of exactly one position. This takes cares of , and . Now we need to pair the numbers from with the numbers from . In order to pair these numbers, we use the induction hypothesis and a bijection between and . Let . Then take a pair and and biject it with and . In fact, and Moreover, and are complements with respect to , and and implies and . Therefore a pairing between and corresponds to a pairing between and . Since the latter pairing is unique, the former pairing is also unique, and the result follows. We illustrate the bijection by showing the case : The pairing is in which the bijection is between

Techniques

Divisibility / FactorizationPolynomials mod pRecursion, bijection