Browse · MathNet
PrintBMO Short List
number theory
Problem
Consider an integer and an odd prime . Let be the set of all positive integers (strictly) less than that are not divisible by , and let be the number of elements of . Does there exist a permutation of the numbers in such that the sum , where , be divisible by , but not by ?
Alexander Ivanov, Bulgaria
Alexander Ivanov, Bulgaria
Solution
The answer is in the affirmative. Letting denote congruence modulo throughout the argument, we will show that there exists a permutation of the numbers in such that .
Let , so , and write , where , , and denotes the largest integer (strictly) less than the real number .
That the are pairwise distinct and they all lie in follows from the fact that every in the range is uniquely expressible in the form for some in the range and some in the range . Thus, , so the are indeed pairwise distinct and they all lie in .
For in the range , notice that , unless is divisible by , in which case . Setting , it is readily checked that , so for all divisible by .
Letting now be the multiplicative inverse of modulo , i.e., is the unique member of satisfying , we show that the form the desired permutation of .
To begin with, notice that , unless is divisible by , in which case . This is easily established by multiplying both sides of each congruence by , and noticing that .
We are now in a position to evaluate the sum modulo . Write and consider the inner sum for a fixed in the range :
Hence Since , the form a permutation of the , therefore . Similarly, , so the form a permutation of the , and hence . Consequently, as stated in the first paragraph. This completes the solution.
Let , so , and write , where , , and denotes the largest integer (strictly) less than the real number .
That the are pairwise distinct and they all lie in follows from the fact that every in the range is uniquely expressible in the form for some in the range and some in the range . Thus, , so the are indeed pairwise distinct and they all lie in .
For in the range , notice that , unless is divisible by , in which case . Setting , it is readily checked that , so for all divisible by .
Letting now be the multiplicative inverse of modulo , i.e., is the unique member of satisfying , we show that the form the desired permutation of .
To begin with, notice that , unless is divisible by , in which case . This is easily established by multiplying both sides of each congruence by , and noticing that .
We are now in a position to evaluate the sum modulo . Write and consider the inner sum for a fixed in the range :
Hence Since , the form a permutation of the , therefore . Similarly, , so the form a permutation of the , and hence . Consequently, as stated in the first paragraph. This completes the solution.
Final answer
Yes
Techniques
Inverses mod nφ (Euler's totient)