Let $G$ be a group of order $5^2 q^m$ where $q$ is a prime and $m$ a positive integer such that $5^2\nmid q^m!$. Show that $G$ is not simple.
Attempt: Assume that $G$ is simple. The fact that $5^2\nmid q^m!$ implies that $$q^m < 5^2=25\tag{1}$$ Now if $n_5$ is the number of Sylow $5$-subgroups then $$n_5 = q^k \text{ for some } k=1,2,\dots, m \text{ such that } q^k \equiv 1 \pmod{5}\tag{2}$$ Doing the same for $n_q$ we get that the possible values for $n_q$ are $2,5$ and $10$. From the condition $n_q \equiv 1 \pmod{q}$ we get that the possible values for $q$ are $2$ and $3$
Now consider the cases:
- $q=2$: Relation $(2)$ tells us that $2^k \equiv 1 \pmod{5}$ so $m\geq k \geq 4$. On the other hand, the inequality at $(1)$ gives us $m \leq 4$ so $|G|=5^2\cdot 2^4$ but in that case $5^2 \mid 2^4!$ so this can't be the case.
- $q=3$: Doing the same procedures as above we get that $m\geq 4$ but inequality $(1)$ gives $m < 3$ so again that can't be the case.
I have two questions: Is the above solution correct? If not, could you point out the mistake? If yes, is there a more elegant solution that I am missing (at first sight the factorial on the divisibility condition screams for some group action)?
Any comment is appreciated.
EDIT: When calculating $n_q$ I wrote $n_q \mid 10$ instead of $n_q\mid 25$. Now the possible values for $n_q$ are $5$ and $25$ which again give $q=2$ or $q=3$ as the only possibilities (thanks Robert Shore for pointing out my mistake).
If $5^2 \nmid q^m!$, then $q^m \leq 9$. But then $q, q^m \neq 1 \pmod 5$ (because $6$ is a product of distinct primes) so the $5$-Sylow subgroup of $G$ is normal.