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

Cortez Clarke

Answered question

2022-11-03

Modular arithmetic polynomial question
Is it possible to find all polynomials of the form a n 2 + b n + c where a,b, and c are integers and such that
a + b + c 31 ( mod 54 )
4 a + 2 b + c 3 ( mod 54 )
9 a + 3 b + c 11 ( mod 54 )

Answer & Explanation

Samsonitew7b

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
c 31 a b
plugging into the other equations gives
3 a + b 28 26
8 a + 2 b 20 34
Solving the first of these gives
b 26 3 a
plugging into the other equation gives
2 a 18 36
Solving this is a little trickier: the solution space to
g u x g v ( mod g w )
is the same as the solution space to
u x v ( mod w )
(Note if the equation was g u x v ( mod g w ) where v is not divisible by g, then there would be no solutions for x)
So to solve
2 a 36 ( mod 54 )
you factor out the 2
a 18 ( mod 27 )
a 18 , 45 ( mod 54 )
Step 2
Now backsolving gives
a 18 ( mod 54 ) b 26 ( mod 54 ) c 41 ( mod 54 )
a 45 ( mod 54 ) b 53 ( mod 54 ) c 41 ( mod 54 )
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. 54 = 2 3 3 ; Often, it's easier to solve a problem modulo 2 then solve the problem modulo 3 3 , then use the Chinese remainder theorem to combine the solutions to modulo 54 than it is to solve it directly
bruinhemd3ji

bruinhemd3ji

Beginner2022-11-05Added 2 answers

Step 1
So you want to solve the system of linear equations
( 1 1 1 4 2 1 9 3 1 ) ( a b c ) = ( 31 3 11 )
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
( 1 1 1 1 0 0 1 1 1 1 1 1 ) ( 1 1 0 0 0 0 1 1 ) ,
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
( a , b , c ) ( 18 , 26 , 41 ) mod 54
(corresponding to (0,0,1)mod2) and
( a , b , c ) ( 45 , 53 , 41 ) mod 54
(corresponding to (1,1,1)mod2).

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?