Modular arithmetic polynomial question. Is it possible to find all polynomials of the form an^2+bn+c where a,b, and c are integers and such that a+b+c equiv 31 (mod 54)
Cortez Clarke
Answered question
2022-11-03
Modular arithmetic polynomial question Is it possible to find all polynomials of the form where a,b, and c are integers and such that
Answer & Explanation
Samsonitew7b
Beginner2022-11-04Added 15 answers
Step 1 That you're making them coefficients of a polynomial is irrelevant: the problem is "solve this linear system of three equations in three variables". That you're solving systems of equations modulo 54 rather than systems of equations of real numbers doesn't change things much: the only real difference is how to compute the inverse of a number, and that some non-zero numbers can fail to be invertible. Solving the first equation gives
plugging into the other equations gives
Solving the first of these gives
plugging into the other equation gives
Solving this is a little trickier: the solution space to
is the same as the solution space to
(Note if the equation was where v is not divisible by g, then there would be no solutions for x) So to solve
you factor out the 2
Step 2 Now backsolving gives
Of course, I could have used Gaussian elimination and its variants instead. Or I could have solved for a first, or any other variation. The big thing I didn't demonstrate is the Chinese remainder theorem approach. ; Often, it's easier to solve a problem modulo 2 then solve the problem modulo , then use the Chinese remainder theorem to combine the solutions to modulo 54 than it is to solve it directly
bruinhemd3ji
Beginner2022-11-05Added 2 answers
Step 1 So you want to solve the system of linear equations
over the ring Z/54Z. By the chinese remainder theorem, it is enough to solve this over Z/2Z and Z/27Z separately. Using the Gaussian algorithm over Z/2Z, we get
whose solutions are (0,0,1) and (1,1,1). Step 2 Over Z/27Z the matrix is invertible (its determinant is −2 which is a unit modulo 27), so we get a unique solution, namely (18,26,14) by the Gaussian algorithm or by computing the inverse of the matrix. Putting the solutions together with the Chinese Remainder Theorem gives