The problem statement is: Find all positive integers $n$ such that $\frac{2^{n-1}+1}{n}$ is integer.
Source: LTE Amir Houssein Pavardi P.25
My approach:
It is clear that $n=1$ is a solution, so supose that $n>1$.
$2^{n-1}\equiv -1$ $mod$ $n$;
$2^{2(n-1)}\equiv 1$ $mod$ $n$;
Observe that $n$ is odd hence $n-1$ is even. But if $p=ord_n(2)$ then $p|2(n-1)$ but not $(n-1)$ so $p|2$ how ever it is a contradiction because $n-1$ is even. So the unique solution is $n=1$
Is this proof correct? Because I'm not sure if order properties does apply to composite modulo. And if anyone has a solution involving LTE trick please post a partial proof Thanks in advance!