Find all possible values of n - [Bulgaria NMO 2010]
Source:
December 29, 2010
modular arithmeticcombinatorics unsolvedcombinatorics
Problem Statement
Let and be positive integers such that and In a cash dispenser/automated teller machine/ATM there are levs (Bulgarian national currency) and for each we can take levs from the ATM (if in the bank there are at least levs). Immediately after that action the bank puts levs in the ATM or we take levs. If we take levs from the ATM the bank doesn’t put any money in the ATM. Find all possible positive integer values of such that after finite number of takings money from the ATM there will be no money in it.