Browse · MathNet
PrintSAUDI ARABIAN MATHEMATICAL COMPETITIONS
Saudi Arabia number theory
Problem
1) Prove that there are infinitely many positive integers such that there exists a permutation of with the property that the difference between any two adjacent numbers is equal to either or .
2) Let be a positive integer. Is the statement in 1) still true if we replace the numbers and by and , respectively?
2) Let be a positive integer. Is the statement in 1) still true if we replace the numbers and by and , respectively?
Solution
1) First, replace and by and respectively for convenience. We consider the permutation of as follows: The numbers increase by and decrease by , then the sequence covers all numbers from to . Add to each term of the above sequence, we get Combine two sequences, we have This is another permutation of . By this method, we can construct the desired permutation for each number of the form , , satisfying the condition.
In the same way with the two given numbers and : Increase by then decrease by and so on, we can get the desired permutation for each number of the form , .
2) Now it is easy to see that all numbers such that do not satisfy the given condition. Indeed,
Suppose that and there exists a number such that the permutation of satisfies the given condition. Then all numbers in this sequence have the same remainder when divided by , which is a contradiction.
Now we will show that every number coprime with will satisfy the given condition by proving the general statement:
If are two positive numbers and , then there are infinitely many numbers such that there exists a permutation with the property that the difference between any two adjacent numbers is equal to either or .
Suppose that and , . We will prove that each number which is a multiple of satisfies the given condition. Indeed,
Partition the set into sets and each set contains the numbers sharing the same remainder when divided by . And each of them will be arranged decreasing from the largest to the smallest (except the set containing number ). It is easy to see that the difference between two adjacent numbers in each sequence is and two sequences can be connected by adding the smallest number in one set to the biggest number in another set. Notice that when we take a number and add , we get which has the remainder differing from when divided by and since then the set forms a complete system of residues modulo , then when we connect all sets we get the permutation of .
In the same way with the two given numbers and : Increase by then decrease by and so on, we can get the desired permutation for each number of the form , .
2) Now it is easy to see that all numbers such that do not satisfy the given condition. Indeed,
Suppose that and there exists a number such that the permutation of satisfies the given condition. Then all numbers in this sequence have the same remainder when divided by , which is a contradiction.
Now we will show that every number coprime with will satisfy the given condition by proving the general statement:
If are two positive numbers and , then there are infinitely many numbers such that there exists a permutation with the property that the difference between any two adjacent numbers is equal to either or .
Suppose that and , . We will prove that each number which is a multiple of satisfies the given condition. Indeed,
Partition the set into sets and each set contains the numbers sharing the same remainder when divided by . And each of them will be arranged decreasing from the largest to the smallest (except the set containing number ). It is easy to see that the difference between two adjacent numbers in each sequence is and two sequences can be connected by adding the smallest number in one set to the biggest number in another set. Notice that when we take a number and add , we get which has the remainder differing from when divided by and since then the set forms a complete system of residues modulo , then when we connect all sets we get the permutation of .
Techniques
Greatest common divisors (gcd)Inverses mod nOther