Skip to main content
OlympiadHQ

Browse · MathNet

Print

SAUDI ARABIAN MATHEMATICAL COMPETITIONS

Saudi Arabia counting and probability

Problem

We put four numbers around a circle in order. One starts at the number and every step, he moves to an adjacent number on either side. How many ways he can move such that the sum of the numbers he visits in his path (including the starting number) is equal to ?
Solution
Let be the number of paths that end by respectively and have the sum equal to . These paths all start from . So it is easy to check that We can visit from or , visit from or , visit from or , visit from or then we have the following relations We have to calculate . Denote and for then we come to another relation We also have and . Then and .

By putting , we get with . By direct calculation, we have Therefore, we have paths such that the sum of numbers on these paths is equal to .
Final answer
167

Techniques

Recursion, bijectionRecurrence relations