An Arithmetic Puzzle from Polish Mathematical Olympiads