The upper boundary for group $n$ is $25(n)(n+1)$ so you could check it against that.
\begin{array}{|c|c|c|} \hline
\text{Group}& 25\times(n)\times(n+1) & \text{Upper Limit}\\ \hline
\text{1} & 25(1)(2) &50 \\ \hline
\text{2} & 25(2)(3) &150 \\ \hline
\text{3} & 25(3)(4) &300 \\ \hline
\text{7} & 25(7)(8) &1400 \\ \hline
\end{array}
For example, solve $841=25(n)(n+1)$ and get $n\approx5.32$ and round up to 6.
You an solve with the quadratic equation $25n^2+25n-A=0$ so $${n = \frac{{ - 25 \pm \sqrt {25^2 - 4(25)(-A)} }}{{50}}} \\{n = \frac{{ - 25 + \sqrt {625 - 100(-A)} }}{{50}}}$$
So, whatever your number is, say $A=841$, you can say, $$n=(\sqrt{(A*100)+625}-25)/50\\5.32\approx(\sqrt{(841*100)+625}-25)/50$$
Basically, $n=(\sqrt{(A*100)+625}-25)/50$ is going to be your formula and you will always round up your answer. Or use the ceiling function of it.
Also, the formula given by user2345215 works as well and is simplified.
Upper Boundary for group? This should work indefinatly for any input number. Oh shoot I guess you're saying that that's the reverse of what I'm looking for, but I need to reverse that equation to solve for N? I guess it's been awhile so I'm not 100% I could pull that off. – Kelly Elton Dec 19 '14 at 22:22