A binary game - change streaks of digits until it ends
Source: 38th Brazilian MO (2016) - First Day, Problem 3
November 23, 2016
combinatoricsBrazilian Math Olympiad 2016Brazilian Math OlympiadgamesCombinatorial games
Problem Statement
Let it be a fixed positive integer. Alberto and Beralto play the following game:
Given an initial number and starting with Alberto, they alternately do the following operation: change the number for a number such that and and differ, in its base-2 representation, in exactly consecutive digits for some such that .
If someone can't play, he loses.We say a non-negative integer is a winner number when the gamer who receives the number has a winning strategy, that is, he can choose the next numbers in order to guarrantee his own victory, regardless the options of the other player.
Else, we call it loser.Prove that, for every positive integer , the total of non-negative loser integers lesser than is