Note that we don't have the same theorem about division, we can observe that in general this is false, because any odd square has remainder 1, upon division by four, so that but we can see that is false.
Congruent Numbers raised to Congruent Powers may not be Congruent
Suppose that and , then its NOT true that
Consider but then whereas so
If two Two Numbers are Congruent, they are still Congruent mod a divisor of the Original Mod
Suppose that and then
Since then we know that but also so that therefore as needed.
Note that if instead we required that then the above would not be true because we see that but
If Two Numbers are Congruent Using Two Different Moduli they are Congruent Using the LCM
Suppose that and that then
We have that but the definition of the LCM then states that
Switching Prime Powers
Let then
FLT tells us that but since then we know that therefore we know that since and we know that then so that then we conclude that
a p q
Suppose that and that , then
By FLT, we know that and symetrically the same thing occurs mod therefore
Division by a Common Factor Maintains Congruence
Suppose that then if then we have that
Recall that iff but we know that statement is true because since and we by linearity we know that therefore it holds true.
Division by a Common Factor Maintains Congruence if Mod is Divided by GCD
Let such that and suppose that then if then
Let our goal is to prove that , towards this note that we have which means that so there is some such that therefore dividing by we have
Recall that we want in the denominator, to get there we recall that and so there is some such that , since then so thus we divide our previous equation by to obtain Since then so thus and therefore .
Note that and thereforetherefore so that thus we have the equation where we know the left hand side is an integer, is and so is therefore so that as needed.
Multiplicative Cancellation if Mod Prime
Suppose that is prime and that and then
Since then we know that therefore the result follows from the previous proposition.
n Consecutive Numbers have Unique Remainders Mod n
For any
Suppose that but that for the sake of contradiction, without loss of generality assume that . Since they're congruent we have but we know that but if we have so which is impossible, therefore we must have that .
Now suppose that therefore but since then and therefore as needed.
When a Linear Modular Equation has a Solution
The equation has a solution iff
Note that iff so there is some such that so that this has a solution iff
Relatively Prime Modular Equation has a Solution
Suppose that we have the equation: where then it has a solution.
Since it has a solution.
Modular Inverse
Given we say that an integer is a the modular inverse for mod when:
When a given number has an inverse we say that it is invertible.
When a Rational Can be Converted to a Modular Inverse
Suppose that and such that is invertible mod and then: where the right hand side is interpreted as division of integers.
Note that since then there is some such that therefore
Consider the equation , since then it has a solution, as needed.
A Linear Modular Equation with a Solution has GCD many Solutions
Suppose that has a solution , then it has exactly solutions mod . Moreover the unique solutions are given by the remainders of when taken mod
Since it has a solution, we have an such that , so therefore so that for some therefore .
Recall that we have a method of obtaining more solutions once we have one, and hence are given by Note that for each new solution it satisfies so that so that so that , therefore we only need to observe the component of each of solutions obtained from the equation
With this we observe the solutions: and note that for any such that then where which is to say that it is congruent to a solution of the form where similarly any solution that is of the form where can be turned into one of these solutions by repetitively adding .
This shows that the entire solution set mod is given by we'll now verify that every pair of solutions are incongruent mod to show that there are total solutions.
So suppose for the sake of contradiction that where and without loss of generality so that since then so that which means that divides a number smaller than it, which is impossible so that as needed.
Note that modulo a prime, since the gcd is always one, then this shows that every element has a unique inverse mod p.
24 and 60
Find all incongruent solutions of the linear congruence given by
First we verify that the above has a solution, since , then and so , so we deduce that has a solution, call it .
Since it has a solution, then we know that it actually has solutions explicitly given by for . Now to actually find a solution, we can divide through by which yields since is prime, then we know that has an inverse, we can see that works, so that so our solutions are given by for mod
Chinese Remainder
Suppose that for some we have that for each such that for any we have , then there is a unique satisfying the modular equations
Set , then clearly we have that . Now recall the following fact, and that it can be extended to finite products by induction which shows that for any . Therefore we obtain a solution to the equation , let this solution be denoted by .
As just discussed we obtained a solution such that , in other words and so we've found different solutions to each of the congruence equations we required, but we need to find one solution to all of them.
Note that for any so that as well, with this fact we see that has the following property in other words using works.
We now show that the solution is unique. Suppose that is another solution to all of the modular equations then we'll prove that
Seven Divides Ones and Threes
Show that
therefore therefore so therefore .
Now note that , consider the following therefore since the sum of the digits of then and therefore therefore therefore as needed.
Alternating Congruence Again
Prove that
Note that thus , looking at , then since then we see that so that therefore we have that therefore . Now we look at so that now since we see that then so that so we deduce that therefore so then therefore we know that
43 Divides a Sum of Powers of 6 and 7
Show that
Note that
Note that therefore therefore the modular power sequence is given by . Therefore if we look at then
Now we'll look at power sequence mod we have therefore it's power sequence mod is , therefore the power sequence of is given by , therefore is given by Since for every as needed.
Remainder of a Sum of Powers
Find
For odd, then recall that is an odd perfect square and thus therefore , also when is even, then therefore we know that using this fact since then we know that so we deduce that
Remainder of a Sum of Factorials
Determine
Observe that for any we see that therefore we reduce it to But we know that so that
Modular Inverse iff GCD 1
Suppose that and that has a modular inverse mod , iff .
We know that therefore by definition therefore for some .
Therefore , so now suppose that , so by definition and so that which implies that as needed.
We have some such that so that which means that so that by definition we have that which means that is 's inverse mod .
A collection of is said to be a complete system of residues modulo if they are pairwise incongruent modulo , meaning that for any , if then
Equality is the Same as Congruent in a Complete System of Residues Modulo n
Suppose that is a complete system of residues modulo , then for any
Suppose that therefore we have that . Suppose that we want to show that , but if it was that then by the definition of complete system of residues we would have which would be a contradiction, therefore
Complete and Incomplete Systems Modulo n
Prove that is a complete system of residues modulo but is not.
Suppose for the sake of contradiction that the former was not a complete system, before doing anything else note that for any since and therefore instead there would exist some such that and that therefore and without loss of generality assume that then , since is prime then or , we know that is impossible as noted before so we must have that .
We'll show that also leads to a contradiction, because if we look at 's power sequence modulo we see that it is therefore since and the smallest integer such that is then and thus is in contradiction with the fact that . Therefore our assumption is false and so the former is a complete system of residues.
Following a similar thread we note that which is impossible by the uniqueness of the prime factorization. We want to find some such that again without loss of generality assume that and therefore we have since is prime then it divides one of the factors, but as just noted the factor it divides must be by looking at 's power sequence modulo we get some insight so if then so let and therefore and we've proven that the latter is not a complete system of residues.
A Complete System of Residues Modulo n Hits all Possible Residues
Suppose that is a complete system of residues modulo , then prove that for each there exists some such that Moreover this mapping is a bijection.
Suppose that for the sake of contradiction that there exists some such that no was congruent to, then: therefore we deduce that therefore there must exist some such that and but that's a contradiction since the 's are pairwise incongruent therefore it must be that therefore for any there exists some such that
As per the statement the above mapping is denoted by what we've shown is that and since then is a bijection.
Note the mapping is simply .
The Multiples of a Complete System of Residues Mod is still a Complete System of Residues Mod
Suppose that is a complete system of residues modulo and such that then is a complete system of residues modulo
Let such that , since is a complete system of residues, we know that , now suppose for the sake of contradiction that , then since we have which is a contradiction, therefore we must have as needed.
Product of Non-Zero Residues Yields Factorial
Suppose that is a complete system of residues modulo such that , then
Recall that there is a unique for each such that . In this case since we've removed then there is a unique , let this mapping be denoted as since it is a bijection then we note that as needed.
There are 22 Possibilities for the Last Two Digits of a Square
As per title.
We compute this shows that there are in total there are elements in the list above, 0 is counted two times two many, and 25 is counted once too many therefore there are exactly unique endings in the above, and lets denote the collection of unique last two digits as Notice that if we continued we would have notice that after the order in which the endings arrive is in a mirrored fashion. Notice that every time a multiple of 25 is reached some special is happening. Specifically we claim that for any and we have this is clear because whereas therefore this fact allows us to show that given any that , we do it by induction based on where it lies with respect to consecutive multiples of .
We use the predicate : and show it holds true for all
For the base case then as verified in the huge table we know that for any that . Now onto the induction step where we assume that holds true for some and then we prove that hold true, so suppose that , in other words where if it so happens that then and so when you square it it ends in , on the other hand if then we know that but and since then by the induction hypothesis so therefore so is as needed.