Square Roots, Tonelli`s Algorithm, Number of Consecutive Pairs of