Some balls were distributed into boxes which were arranged in a row as indicated below. Any four consecutive boxes always had a total of balls. How many balls were there in the th box?

Some balls were distributed into boxes which were arranged in a row as indicated below. Any four consecutive boxes always had a total of balls. How many balls were there in the th box?

If the number of balls in the boxes are denoted , then
Thus for all , which means that the numbers recur in cycles of length four. Since , it follows that .