Eine Klasse von Abzählproblemen.
We show that for a fixed integer n ≠ ±2, the congruence x² + nx ± 1 ≡ 0 (mod α) has the solution β with 0 < β < α if and only if α/β has a continued fraction expansion with sequence of quotients having one of a finite number of possible asymmetry types. This generalizes the old theorem that a rational number α/β > 1 in lowest terms has a symmetric continued fraction precisely when β² ≡ ±1(mod α ).
In this article we formalize some number theoretical algorithms, Euclidean Algorithm and Extended Euclidean Algorithm [9]. Besides the a gcd b, Extended Euclidean Algorithm can calculate a pair of two integers (x, y) that holds ax + by = a gcd b. In addition, we formalize an algorithm that can compute a solution of the Chinese remainder theorem by using Extended Euclidean Algorithm. Our aim is to support the implementation of number theoretic tools. Our formalization of those algorithms is based...