Let $n, k \in \mathbb{N}, n\ge 2, k\ge 2$ and $(G,\cdot)$ be a group with $n$ elements. Prove that $(n,k)=1$ if and only if for all subgroups $H$ of $G$ we have that $H=\{x\in G \mid x^k\in H\}$.
I think that the last equality is pretty odd.
For "$\implies$", I observed that for any subgroup $H$ of $G$ the function $f:H\to H, f(x)=x^k$ is a bijection because $(n,k)=1$. From here it would follow that for any $y\in H$ there exists an unique $x\in H$ such that $y=x^k$. I am not sure if this is enough to reach our conclusion in this case.
The problem can be restated as follows:
Here is a proof.
$\Rightarrow$: If $\gcd(n,k)=1$, then write $nu+kv=1$. Let $x \in G$ such that $x^k \in H$. Then $x=(x^k)^v \in H$. This proves that $H_k \subseteq H$. Since clearly $H \subseteq H_k$, we have $H=H_k$.
$\Leftarrow$: If $\gcd(n,k)>1$, then let $p$ be a prime divisor of $\gcd(n,k)$. By Cauchy's theorem, there is $g \in G$ of order $p$. Let $E$ be the trivial subgroup of $G$. Then $g \in E_p \subseteq E_k$ and so $E_k \ne E$.