You can view the solution by clicking on the solution tab.
Editorial
Need a hint? Checkout the editorial.
View Editorial
Editorial
What are some integers co-prime with some general $n$?
If Thanic is given any positive integer $n$, he writes down all the integers co-prime to the given number - meaning numbers with which the GCD (Greatest Common Divisor) of $n$ is $1$. For example, if $n = 10$ is given, he keeps writing $1, 3, 7, 9, 11, 13, \dots$.
If after giving Thanic some integer $n$, the numbers he writes down form an arithmetic progression, then what are the possible values for $n$?
In an arithmetic progression the difference between two consecutive terms are always the same. For example: $3, 7, 11, 15, 19, \dots$.
The answer is all powers of $2$. Remember that $n$ is co-prime with $n-1$ and $n+1$. Therefore, the arithmetic sequence must have a common difference of $2$. Since $1$ is co-prime with every positive integer, the sequence must be $1, 3, 5, 7, \dots$. The only numbers satisfying this are powers of $2$.
What are some integers co-prime with some general $n$?