Formula for the period length of the simplest continued fraction of the square root of n

71 Views Asked by At

The period length of the simplest continued fraction of the square root of any natural number n is always finite. Is there a formula for the period length of the simplest continued fraction of the square root of n?