Prove that the integers ## c, c+a, c+2a, c+3a, ...., c+(n-1)a ## ....

  • Thread starter Thread starter Math100
  • Start date Start date
  • Tags Tags
    Integers
Click For Summary

Homework Help Overview

The discussion revolves around proving that the integers ## c, c+a, c+2a, c+3a, ..., c+(n-1)a ## form a complete set of residues modulo ## n ## under the condition that ## gcd(a, n)=1 ##. Participants are analyzing the implications of this condition and the logical structure of the proof provided.

Discussion Character

  • Conceptual clarification, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • Participants explore a proof by contradiction regarding the congruence of integers and the implications of the greatest common divisor condition. There are discussions about the correctness of statements made in the proof and the necessity of certain assumptions.

Discussion Status

The discussion is ongoing, with participants providing feedback on the proof's structure and pointing out areas of potential confusion or error. Some participants are questioning the placement and necessity of the condition ## gcd(a, n)=1 ## in the proof, while others are clarifying its role in establishing the uniqueness of residues.

Contextual Notes

Participants are addressing specific mathematical properties related to modular arithmetic and the implications of having a multiplicative inverse. There are references to counterexamples that illustrate the failure of the statement when the gcd condition is not met.

Math100
Messages
823
Reaction score
234
Homework Statement
Prove the following statement:
If ## gcd(a, n)=1 ##, then the integers ## c, c+a, c+2a, c+3a, ..., c+(n-1)a ## form a complete set of residues modulo ## n ## for any ## c ##.
Relevant Equations
None.
Proof:

Suppose for the sake of contradiction that ## r, s\in {0, ..., n-1} ## for ## r<s ## where ## c+ra\equiv c+sa\pmod {n} ##.
Then ## c+ra\equiv c+sa\pmod {n}\implies ra\equiv sa\pmod {n}\implies r\equiv s\pmod {n} ##.
Thus ## n\mid (r-s)\implies n<r-s ##, which is a contradiction because ## r\leq n-1 ## and ## s\leq n-1 ## together implies ## s-r<n ##.
Therefore, if ## gcd(a, n)=1 ##, then the integers ## c, c+a, c+2a, c+3a, ..., c+(n-1)a ## form a complete set of residues modulo ## n ## for any ## c ##.
 
Physics news on Phys.org
I find this proof mostly correct. Two minor mistakes or to be more accurate, incomplete statements:
  • You should 've stated that because ##gcd(a,n)=1## then it follows that it holds $$ra\equiv sa \pmod n\Rightarrow r\equiv s \pmod n$$
  • We end up with ##n<r-s## which it should be actually ##n<s-r## (maybe that's a typo ) because you initially took ##r<s## hence ##r-s## is negative. And the fact that ##s-r<n## comes from ##s\leq n-1## and ##r\geq 0##.
 
Last edited:
Math100 said:
Homework Statement:: Prove the following statement:
If ## gcd(a, n)=1 ##, then the integers ## c, c+a, c+2a, c+3a, ..., c+(n-1)a ## form a complete set of residues modulo ## n ## for any ## c ##.
Relevant Equations:: None.

Proof:

Suppose for the sake of contradiction that ## r, s\in {0, ..., n-1} ## for ## r<s ## where ## c+ra\equiv c+sa\pmod {n} ##.
Then ## c+ra\equiv c+sa\pmod {n}\implies ra\equiv sa\pmod {n}\implies r\equiv s\pmod {n} ##.
This is already the contradiction since ##s-r\in \{0,\ldots,n-1\}## is a complete set of remainders.
Math100 said:
Thus ## n\mid (r-s)\implies n<r-s ##, which is a contradiction because ## r\leq n-1 ## and ## s\leq n-1 ## together implies ## s-r<n ##.
You should have used ##s-r## since ##r-s <0## which makes things complicated, e.g. ##n<r-s ## is wrong.<
Math100 said:
Therefore, if ## gcd(a, n)=1 ##, then the integers ## c, c+a, c+2a, c+3a, ..., c+(n-1)a ## form a complete set of residues modulo ## n ## for any ## c ##.
Where did you use ## gcd(a, n)=1 ##?

You have shown that no two remainders ##c+ra,c+sa## can be the same modulo ##n## without being equal as integers. How do we know that all remainders actually occur?
 
Suppose for the sake of contradiction that ## r, s\in \{0, ..., n-1\} ## for ## r<s ## where ## c+ra\equiv c+sa\pmod {n} ##.
Since ## gcd(a, n)=1 ##, it follows that ## c+ra\equiv c+sa\pmod {n}\implies ra\equiv sa\pmod {n}\implies r\equiv s\pmod {n} ##.
Then ## n\mid (r-s)\implies n<s-r ##, which is a contradiction because ## r\leq n-1 ## and ## s\leq n-1 ## together implies ## s-r<n ##.
Thus, any two of the integers ## c, c+a, c+2a, c+3a, ..., c+(n-1)a ## are incongruent modulo ## n ##.
Therefore, if ## gcd(a, n)=1 ##, then the integers ## c, c+a, c+2a, c+3a, ..., c+(n-1)a ## form a complete set of residues modulo ## n ## for any ## c ##.
 
You have basically repeated your former version.
Math100 said:
Suppose for the sake of contradiction that ## r, s\in \{0, ..., n-1\} ## for ## r<s ## where ## c+ra\equiv c+sa\pmod {n} ##.
Since ## gcd(a, n)=1 ##, it follows that ## c+ra\equiv c+sa\pmod {n}\implies ra\equiv sa\pmod {n}\implies r\equiv s\pmod {n} ##.
## gcd(a, n)=1 ## is used in the last step because it guarantees that there is an ##\alpha ## such that ##\alpha \cdot a\equiv 1 \pmod n## that is, that ##a## has a multiplicative inverse element. Now if
\begin{align*}
ra\equiv sa\pmod {n} \Longrightarrow r\equiv r\cdot 1\equiv r\cdot a\alpha \equiv s\cdot a\alpha \equiv s\cdot 1\equiv s\pmod {n}
\end{align*}
That's why the condition is needed. It guarantees the existence of ##\alpha =a^{-1}.##
(see https://www.physicsforums.com/threads/prove-that-aa_-1-aa_-2-aa_-n-is-also-a-complete-set.1015722/)
Math100 said:
Then ## n\mid (r-s)\implies n<s-r ##, which is a contradiction because ## r\leq n-1 ## and ## s\leq n-1 ## together implies ## s-r<n ##.
Thus, any two of the integers ## c, c+a, c+2a, c+3a, ..., c+(n-1)a ## are incongruent modulo ## n ##.
Therefore, if ## gcd(a, n)=1 ##, then the integers ## c, c+a, c+2a, c+3a, ..., c+(n-1)a ## form a complete set of residues modulo ## n ## for any ## c ##.
 
fresh_42 said:
You have basically repeated your former version.

## gcd(a, n)=1 ## is used in the last step because it guarantees that there is an ##\alpha ## such that ##\alpha \cdot a\equiv 1 \pmod n## that is, that ##a## has a multiplicative inverse element. Now if
\begin{align*}
ra\equiv sa\pmod {n} \Longrightarrow r\equiv r\cdot 1\equiv r\cdot a\alpha \equiv s\cdot a\alpha \equiv s\cdot 1\equiv s\pmod {n}
\end{align*}
That's why the condition is needed. It guarantees the existence of ##\alpha =a^{-1}.##
(see https://www.physicsforums.com/threads/prove-that-aa_-1-aa_-2-aa_-n-is-also-a-complete-set.1015722/)
If ## gcd(a, n)=1 ## should be used in the last step, then where should I insert/include that "There exists an ## \alpha ## such that ## \alpha\cdot a\equiv 1\pmod {n}\Longleftrightarrow gcd(a, n)=1 ##"?
 
Math100 said:
If ## gcd(a, n)=1 ## should be used in the last step, then where should I insert/include that "There exists an ## \alpha ## such that ## \alpha\cdot a\equiv 1\pmod {n}\Longleftrightarrow gcd(a, n)=1 ##"?
It was ok what you wrote. I only wanted to explain where it is actually used because it isn't apparent by itself.

## gcd(a, n)=1 ## makes ##a## a unit (multiplicative invertible element) modulo ##n##, i.e. in ##\mathbb{Z}/n\mathbb{Z}=\mathbb{Z}_n=\{0,1,2, \ldots,n-1 \}## and this allows us to cancel it from the equation ##r\cdot a \equiv s\cdot a.##

A counterexample if ## gcd(a, n)\neq 1 ## is the following:
Set ##n=12\, , \, a=8\, , \,r=6\, , \,s=3.## Here we have ##6\cdot 8 \equiv 0 \equiv 3\cdot 8 \pmod {12}## but ##r\neq s.##
 
  • Like
Likes   Reactions: Math100

Similar threads

Replies
1
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
14
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
9
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K