Two things about DS (digit sum),
1) it is infinitely recursive.
That is $DS(x) = DS(DS(x)) = DS(DS(DS(x))) = .....$.
So $DS(841) = DS(8 + 4 + 1) = DS(13) = DS(1+3) = 4$.
2) It transfer over multiplication.
So $DS(a*b) = DS(a)*DS(b) = DS(DS(a)*DS(b))$.
So if $sqrt 841 = ab$ of $(ab)^2 = 841$ then $DS(841) = DS(ab^2) = (DS(ab))^2$.
So if $DS(841) \ne (DS(21^2))$ then $841 \ne 21^2$.
So $DS(841) = 4$ and $DS(21^2) = (DS(21))^2 = (DS(2+1))^2 = DS(3)^2 = 3^2 = 9 \ne 4$. SO $29^2 \ne 841$.
But $DS(29^2) = DS(29)^2 = DS(2+9)^2 = DS(11)^2 = DS(1+1)^2 = DS(2)^2 = 2^2 = 4$.
So $29^2$ might be $841$.
Now $841 = 8.41 *100$ so $\sqrt {841} =\sqrt{8.41}*10$ so $20 < \sqrt{841} \le 29$. And IF $841 = 2a^2$ then $a = 1$ or $a = 9$ because otherwise $2a^2 $ does not end with $1$. And $DS(21^2) \ne DS(841)$ but $DS(29^2) = DS(841)$.
SO !!!IF!!! $841$ is a perfect square then $\sqrt{841} = 29$.
!BUT! I do not see anything here that says WHY we should think that $841$ is a perfect square.
how it chooses 29Without digit sum, just notice that $841$ is close to $900=30^2,$, then the next lower number to try will check out $29^2=(30-1)^2=30^2-2 \cdot 30 +1=841,$. – dxiv Dec 14 '17 at 00:16