For example, is a solution. We define a 3-Markov number to be any part of a solution, so , and are all 3-Markov numbers. Adding distinct 3-Markov numbers would give .
Now we define a -Markov number to be a positive integer that is part of a solution to:
Let be the sum of -Markov numbers . Hence , also .
Define . You are given and .
Find . Give your answer modulo .
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.