MathDB
Problems
Contests
National and Regional Contests
Greece Contests
Greece Junior Math Olympiad
2022 Greece Junior Math Olympiad
3
3
Part of
2022 Greece Junior Math Olympiad
Problems
(1)
Numbers on the board
Source: Greece Junior National Olympiad 2022, Problem 3
2/26/2022
On the board we write a series of
n
n
n
numbers, where
n
≥
40
n \geq 40
n
≥
40
, and each one of them is equal to either
1
1
1
or
−
1
-1
−
1
, such that the following conditions both hold:(i) The sum of every
40
40
40
consecutive numbers is equal to
0
0
0
. (ii) The sum of every
42
42
42
consecutive numbers is not equal to
0
0
0
.We denote by
S
n
S_n
S
n
the sum of the
n
n
n
numbers of the board. Find the maximum possible value of
S
n
S_n
S
n
for all possible values of
n
n
n
.
combinatorics