Browse · MathNet
PrintCroatian Mathematical Olympiad
Croatia counting and probability
Problem
Cryptogram of a positive integer is an -tuple of non-negative integers such that Let be the set of all cryptograms of the number . For let denote the number of occurrences of the number 1 in the cryptogram . Prove that
Solution
Let , and . We need to prove that for every positive integer . We prove the statement by complete mathematical induction.
It is clear that and .
Let us assume that is a positive integer such that for all .
First, we note that . Indeed, for each cryptogram of for which , we decrease by 1 and obtain a cryptogram of . It follows that is equal to the number of cryptograms of increased by .
Let us also prove that . By the induction assumption, we need to prove that .
We partition all cryptograms of into two disjoint subsets: set A consisting of cryptograms having the last non-zero element equal to 1, and set B consisting of cryptograms having the last non-zero element greater than 1.
Cryptograms in A are in bijection with the cryptograms of . Indeed, we can delete the last non-zero element of a cryptogram in A and add 1 to the element just in front of it. Conversely, for each cryptogram of , we decrease the last non-zero element and add 1 to the element right after it.
It remains to prove that the set B contains in total ones. Let be such that for some . Let and let us increase by 1. If , let . Furthermore, let be the smallest index such that , which exists because the last non-zero element is not 1. We decrease by 1 and increase by 1. Note that we obtain a cryptogram of which has 1 at the index . This shows that each one occurring in B corresponds bijectively to a one in the set of cryptograms of .
Finally, and the proof is finished.
It is clear that and .
Let us assume that is a positive integer such that for all .
First, we note that . Indeed, for each cryptogram of for which , we decrease by 1 and obtain a cryptogram of . It follows that is equal to the number of cryptograms of increased by .
Let us also prove that . By the induction assumption, we need to prove that .
We partition all cryptograms of into two disjoint subsets: set A consisting of cryptograms having the last non-zero element equal to 1, and set B consisting of cryptograms having the last non-zero element greater than 1.
Cryptograms in A are in bijection with the cryptograms of . Indeed, we can delete the last non-zero element of a cryptogram in A and add 1 to the element just in front of it. Conversely, for each cryptogram of , we decrease the last non-zero element and add 1 to the element right after it.
It remains to prove that the set B contains in total ones. Let be such that for some . Let and let us increase by 1. If , let . Furthermore, let be the smallest index such that , which exists because the last non-zero element is not 1. We decrease by 1 and increase by 1. Note that we obtain a cryptogram of which has 1 at the index . This shows that each one occurring in B corresponds bijectively to a one in the set of cryptograms of .
Finally, and the proof is finished.
Techniques
Recursion, bijectionInduction / smoothing