I am trying to prove that not both integers $2^n-1,2^n+1$ can be prime for $n \not=2$. But I am not sure if my proof is correct or not:
Suppose both $2^n-1,2^n+1$ are prime, then $(2^n-1)(2^n+1)=4^n-1$ has precisely two prime factors. Now $4^n-1=(4-1)(4^{n-1}+4^{n-2}+ \cdots +1)=3A$. So one of $2^n-1, 2^n+1$ must be $3,$ which implies $n=1$ or $n=2$ (rejected by assumption). Putting $n=1$, we have $2^n-1=1,$ which is not a prime. Hence the result follows.
I also wanna know if there is alternative proof, thank you so much.