The Euclidean algorithm givesBack-substitution supplies the Bezout identityThus one solution is . If is any solution, subtraction gives . Since and are coprime, divides . Write ; substitution then gives . Conversely these values satisfy the equation for every integer . Hence all solutions are
Factor the expression as . One of three consecutive integers is divisible by , so . If is odd, its neighbours and are consecutive even integers. One is divisible by and the other by , so their product is divisible by . Since and are coprime integers, their product divides the expression:The argument also includes negative odd integers and the zero product at .
Articles by others on the same topic
There are currently no matching articles.