Problem

Source: 6-th Taiwanese Mathematical Olympiad 1997

Tags: number theory proposed, number theory



Let $k=2^{2^{n}}+1$ for some $n\in\mathbb{N}$. Show that $k$ is prime iff $k|3^{\frac{k-1}{2}}+1$.