# Math Help - How many correct decimals required ...

1. ## How many correct decimals required ...

Hello,
somehow I'm stuck on a seemingly simple problem.

Originally Posted by Problem
Given that $n$ is an integer, and $q$ is some rational $0 < q < 1$ such that $\sqrt{nq}$ yields an integer, can you set up a relationship linking the number of correct decimals of the nonrepeating part of $q$, and the error bound of $\sqrt{nq}$ (hint : use orders of magnitude).
Originally Posted by Attempted proof
Apart from the particular (and trivial) case $k = 0$, knowing $k$ decimals of $q$ gives $q - 10^{-k} < a < q + 10^{-k}$, so $\sqrt{n\left (a - 10^{-k} \right )} < \sqrt{nq} < \sqrt{n\left (a + 10^{-k} \right )}$ which gives the error bound for $a \approx q$.
Am I right ? Empirical tests seem to confirm this but I like to have more people look over my work because one always makes mistakes on his own.

2. Made a little mistake, correcting ...