There is a problem in your forumulas. Substituting your data in the formulas you get
$$25(1+r)^2=100$$
So is clearly meaning that $r$ is not a dacay rate but an increasing rate:
$r=\sqrt{4}-1=100$%
The result is correct and you can easily check it
Start: 25
1° period: 25+100%$\times$25=50
2° period: 50+100%$\times$50=100
If you want to have the decay rate you can modify your forumula in the following way:
$$100(1-r)^2=25$$
$r=1-\sqrt{\frac{1}{4}}=1-\frac{1}{2}=50$%
The result is correct and you can easily check it
Start: 100
1° period: 100-50%$\times$100=50
2° period: 50-50%$\times$50=25
Notes:
$n=1$ means that the result of $r$ is expressed as ratio per 1 period (one year, one month a.s.o.)
$r$ as a ratio, is always meant non negative