The first and second moment for the length of the period of the continued fraction expansion for d - Francesco Battistoni; Loïc Grenié; Giuseppe Molteni (2024)