Browse · MathNet
PrintIRL_ABooklet_2023
Ireland 2023 counting and probability
Problem
Aisling and Brendan take alternate moves in the following game. Before the game starts, the number is written on a piece of paper. Aisling makes the first move. A move from a positive integer consists of replacing either with or with where is a prime factor of .
The winner is the first player to write the number .
Determine whether Aisling or Brendan has a winning strategy for this game.
The winner is the first player to write the number .
Determine whether Aisling or Brendan has a winning strategy for this game.
Solution
The game is a win for Aisling. Aisling wins by forcing Brendan to write down a prime number, which allows Aisling to claim the prize by writing 1 at the next step.
We say an integer is a 2g-position if it is of the form where both and are primes (such are known as Sophie Germain primes). If Aisling can get to a 2g-position then a win is assured, as Brendan is forced to play one of 2, or , all of which are prime. The relevant positions for this problem are 10 and 58.
Here is one of many possible winning strategies for Aisling.
Aisling divides 2023 by the prime 7, passing 289 to Brendan. As , Brendan has only two possible next moves: to 290 or to 17. But 17 is prime so Brendan is forced to play 290. If Brendan moves to 290, then Aisling can move to either 10 or 58, both of which are positions, so Aisling wins.
We say an integer is a 2g-position if it is of the form where both and are primes (such are known as Sophie Germain primes). If Aisling can get to a 2g-position then a win is assured, as Brendan is forced to play one of 2, or , all of which are prime. The relevant positions for this problem are 10 and 58.
Here is one of many possible winning strategies for Aisling.
Aisling divides 2023 by the prime 7, passing 289 to Brendan. As , Brendan has only two possible next moves: to 290 or to 17. But 17 is prime so Brendan is forced to play 290. If Brendan moves to 290, then Aisling can move to either 10 or 58, both of which are positions, so Aisling wins.
Final answer
Aisling
Techniques
Games / greedy algorithmsPrime numbers