Browse · MathNet
PrintChina Southeastern Mathematical Olympiad
China counting and probability
Problem
Let be a positive integer, and denote the number of -digit integers (called wave number) that satisfy the following conditions: (i) , and , ; (ii) When , the numbers and have opposite signs, . Find (1) the value of , (2) the remainder of divided by 13.
Solution
(1) When , if is classified as A class. The number of is denoted by . If , then is classified as B class. By symmetry, the number of such is also . Thus, . Now we want to find . Denote as the -digit "A wave number" whose last digit is (), then As , , we have the following 2 cases. (a) When is even, , , , . (b) When is odd, , , , . It is obvious that , , , , then, . Hence, Therefore On the other hand, since we obtain, In the same way, we could get , , , . Then, in general, when , Now we prove ③ as follows. Using mathematical induction, we are done when . Suppose ③ holds when for 5, 6, 7, 8..., now consider the case for . When is even, from (a), (b), we have As , then Since We obtain, On the other hand, when is odd, . then, Since We get Hence, ③ holds for . By mathematical induction, ③ holds when . From ③, Thus,
(2) Now consider the sequence of remainders of divided by 13. From ③, when , the corresponding remainders are 6, 1, 5, 5, 1, 2, 0, 1, 0, 1, 1, 3; 6, 1, 5, 5, ... Therefore, when , the sequence of remainders is a periodic sequence whose minimum period is 12. As we get Therefore,
(2) Now consider the sequence of remainders of divided by 13. From ③, when , the corresponding remainders are 6, 1, 5, 5, 1, 2, 0, 1, 0, 1, 1, 3; 6, 1, 5, 5, ... Therefore, when , the sequence of remainders is a periodic sequence whose minimum period is 12. As we get Therefore,
Final answer
f(10) = 8008; f(2008) ≡ 10 (mod 13)
Techniques
Recursion, bijectionRecurrence relationsInduction / smoothingModular Arithmetic