Numbers on the board
Source: Greece Junior National Olympiad 2022, Problem 3
February 26, 2022
combinatorics
Problem Statement
On the board we write a series of numbers, where , and each one of them is equal to either or , such that the following conditions both hold:(i) The sum of every consecutive numbers is equal to .
(ii) The sum of every consecutive numbers is not equal to .We denote by the sum of the numbers of the board. Find the maximum possible value of for all possible values of .