MathDB

3

Part of 2022 OMpD

Problems(2)

Person on the chair n says that the n on their left are liars

Source: 2022 3rd OMpD L3 P3 - Brazil - Olimpíada Matemáticos por Diversão

7/8/2023
Let n3n \geq 3 be a positive integer. In an election debate, we have nn seats arranged in a circle and these seats are numbered from 11 to nn, clockwise. In each of these chairs sits a politician, who can be a liar or an honest one. Lying politicians always tell lies, and honest politicians always tell the truth.
At one heated moment in the debate, they accused each other of being liars, with the politician in chair 11 saying that the politician immediately to his left is a liar, the politician in chair 22 saying that all the 22 politicians immediately to his left are liars, the politician in the char 33 saying that all the 33 politicians immediately to his left are liars, and so on. Note that the politician in chair nn accuses all nn politicians (including himself) of being liars.
For what values of nn is this situation possible to happen?
combinatorics
Removing digits 1 and adding N to the number on the blackboard

Source: 2022 3rd OMpD L2 P3 - Brazil - Olimpíada Matemáticos por Diversão

7/8/2023
Let NN be a positive integer. Initially, a positive integer AA is written on the board. At each step, we can perform one of the following two operations with the number written on the board:
(i) Add NN to the number written on the board and replace that number with the sum obtained;
(ii) If the number on the board is greater than 11 and has at least one digit 11, then we can remove the digit 11 from that number, and replace the number initially written with this one (with removal of possible leading zeros)
For example, if N=63N = 63 and A=25A = 25, we can do the following sequence of operations: 258815151525 \rightarrow 88 \rightarrow 151 \rightarrow 51 \rightarrow 5 And if N=143N = 143 and A=2A = 2, we can do the following sequence of operations: 2145288431574717860100332 \rightarrow 145 \rightarrow 288 \rightarrow 431 \rightarrow 574 \rightarrow 717 \rightarrow 860 \rightarrow 1003 \rightarrow 3
For what values of NN is it always possible, regardless of the initial value of AA on the blackboard, to obtain the number 11 on the blackboard, through a finite number of operations?
combinatoricsDigits