Question about Modular Arithmetic The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Modular arithmetic helpa question from modular arithmeticModular arithmetic proofModular arithmetic question related to the fundamental theoremModular equations, find xModular arithmetic and linear congruencesIs proof by modular arithmetic appropriate in this syntax?Question about repeated modular exponentiationsSolving only using modular arithmetic $5x+7y=1234$A question about properties in modular arithmetic

Sort a list of pairs representing an acyclic, partial automorphism

Semisimplicity of the category of coherent sheaves?

Simulating Exploding Dice

How is simplicity better than precision and clarity in prose?

How to pronounce 1ターン?

What's the point in a preamp?

Did God make two great lights or did He make the great light two?

Can a 1st-level character have an ability score above 18?

What was the last x86 CPU that did not have the x87 floating-point unit built in?

ELI5: Why do they say that Israel would have been the fourth country to land a spacecraft on the Moon and why do they call it low cost?

How do you keep chess fun when your opponent constantly beats you?

Do warforged have souls?

Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?

Match Roman Numerals

How can I protect witches in combat who wear limited clothing?

Can withdrawing asylum be illegal?

Is it ok to offer lower paid work as a trial period before negotiating for a full-time job?

Can the DM override racial traits?

How does this infinite series simplify to an integral?

He got a vote 80% that of Emmanuel Macron’s

Why did all the guest students take carriages to the Yule Ball?

Why does the Event Horizon Telescope (EHT) not include telescopes from Africa, Asia or Australia?

Single author papers against my advisor's will?

How to split my screen on my Macbook Air?



Question about Modular Arithmetic



The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Modular arithmetic helpa question from modular arithmeticModular arithmetic proofModular arithmetic question related to the fundamental theoremModular equations, find xModular arithmetic and linear congruencesIs proof by modular arithmetic appropriate in this syntax?Question about repeated modular exponentiationsSolving only using modular arithmetic $5x+7y=1234$A question about properties in modular arithmetic










1












$begingroup$


Let $q$ be an integer number. Consider an integer number $N$ such that $gcd(q-1,N) = 1$.



Question: How to show that if $q^d = 1 pmodN$ for some positive integer $d$, then we get
$$
1 + q + q^2 + cdots + q^(d-1) = 0 pmod N tag1
$$



Try: It follows from ($1$) that
$$
1 + q + q^2 + cdots + q^(d-1)=fracq^d-1q-1
$$



Now the assumption $gcd(q-1,N) = 1$ implies that $q-1neq 0 modN$. Therefore, we get
$$
fracq^d-1q-1=frac1-1q-1=0 pmodN
$$



Is the given proof correct?



Thanks for any suggestions.










share|cite|improve this question











$endgroup$











  • $begingroup$
    $text gcd (q-1,N) = ?$
    $endgroup$
    – Dbchatto67
    Mar 31 at 13:17










  • $begingroup$
    @Dbchatto67 - $textgcd$ is a very common notation for the greatest common divisor function.
    $endgroup$
    – Paul Sinclair
    Mar 31 at 21:15






  • 1




    $begingroup$
    No, your proof is inadequate. $q-1 notequiv 0 mod N$ does not necessarily mean you can divide by $q-1$. When $N$ is composite, $Bbb Z_N$ has zero divisors, which do not have inverses, despite not being $0$.
    $endgroup$
    – Paul Sinclair
    Mar 31 at 21:21















1












$begingroup$


Let $q$ be an integer number. Consider an integer number $N$ such that $gcd(q-1,N) = 1$.



Question: How to show that if $q^d = 1 pmodN$ for some positive integer $d$, then we get
$$
1 + q + q^2 + cdots + q^(d-1) = 0 pmod N tag1
$$



Try: It follows from ($1$) that
$$
1 + q + q^2 + cdots + q^(d-1)=fracq^d-1q-1
$$



Now the assumption $gcd(q-1,N) = 1$ implies that $q-1neq 0 modN$. Therefore, we get
$$
fracq^d-1q-1=frac1-1q-1=0 pmodN
$$



Is the given proof correct?



Thanks for any suggestions.










share|cite|improve this question











$endgroup$











  • $begingroup$
    $text gcd (q-1,N) = ?$
    $endgroup$
    – Dbchatto67
    Mar 31 at 13:17










  • $begingroup$
    @Dbchatto67 - $textgcd$ is a very common notation for the greatest common divisor function.
    $endgroup$
    – Paul Sinclair
    Mar 31 at 21:15






  • 1




    $begingroup$
    No, your proof is inadequate. $q-1 notequiv 0 mod N$ does not necessarily mean you can divide by $q-1$. When $N$ is composite, $Bbb Z_N$ has zero divisors, which do not have inverses, despite not being $0$.
    $endgroup$
    – Paul Sinclair
    Mar 31 at 21:21













1












1








1


0



$begingroup$


Let $q$ be an integer number. Consider an integer number $N$ such that $gcd(q-1,N) = 1$.



Question: How to show that if $q^d = 1 pmodN$ for some positive integer $d$, then we get
$$
1 + q + q^2 + cdots + q^(d-1) = 0 pmod N tag1
$$



Try: It follows from ($1$) that
$$
1 + q + q^2 + cdots + q^(d-1)=fracq^d-1q-1
$$



Now the assumption $gcd(q-1,N) = 1$ implies that $q-1neq 0 modN$. Therefore, we get
$$
fracq^d-1q-1=frac1-1q-1=0 pmodN
$$



Is the given proof correct?



Thanks for any suggestions.










share|cite|improve this question











$endgroup$




Let $q$ be an integer number. Consider an integer number $N$ such that $gcd(q-1,N) = 1$.



Question: How to show that if $q^d = 1 pmodN$ for some positive integer $d$, then we get
$$
1 + q + q^2 + cdots + q^(d-1) = 0 pmod N tag1
$$



Try: It follows from ($1$) that
$$
1 + q + q^2 + cdots + q^(d-1)=fracq^d-1q-1
$$



Now the assumption $gcd(q-1,N) = 1$ implies that $q-1neq 0 modN$. Therefore, we get
$$
fracq^d-1q-1=frac1-1q-1=0 pmodN
$$



Is the given proof correct?



Thanks for any suggestions.







discrete-mathematics modular-arithmetic greatest-common-divisor






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Mar 31 at 17:53









user0410

324112




324112










asked Mar 31 at 12:44









NightRain23NightRain23

508




508











  • $begingroup$
    $text gcd (q-1,N) = ?$
    $endgroup$
    – Dbchatto67
    Mar 31 at 13:17










  • $begingroup$
    @Dbchatto67 - $textgcd$ is a very common notation for the greatest common divisor function.
    $endgroup$
    – Paul Sinclair
    Mar 31 at 21:15






  • 1




    $begingroup$
    No, your proof is inadequate. $q-1 notequiv 0 mod N$ does not necessarily mean you can divide by $q-1$. When $N$ is composite, $Bbb Z_N$ has zero divisors, which do not have inverses, despite not being $0$.
    $endgroup$
    – Paul Sinclair
    Mar 31 at 21:21
















  • $begingroup$
    $text gcd (q-1,N) = ?$
    $endgroup$
    – Dbchatto67
    Mar 31 at 13:17










  • $begingroup$
    @Dbchatto67 - $textgcd$ is a very common notation for the greatest common divisor function.
    $endgroup$
    – Paul Sinclair
    Mar 31 at 21:15






  • 1




    $begingroup$
    No, your proof is inadequate. $q-1 notequiv 0 mod N$ does not necessarily mean you can divide by $q-1$. When $N$ is composite, $Bbb Z_N$ has zero divisors, which do not have inverses, despite not being $0$.
    $endgroup$
    – Paul Sinclair
    Mar 31 at 21:21















$begingroup$
$text gcd (q-1,N) = ?$
$endgroup$
– Dbchatto67
Mar 31 at 13:17




$begingroup$
$text gcd (q-1,N) = ?$
$endgroup$
– Dbchatto67
Mar 31 at 13:17












$begingroup$
@Dbchatto67 - $textgcd$ is a very common notation for the greatest common divisor function.
$endgroup$
– Paul Sinclair
Mar 31 at 21:15




$begingroup$
@Dbchatto67 - $textgcd$ is a very common notation for the greatest common divisor function.
$endgroup$
– Paul Sinclair
Mar 31 at 21:15




1




1




$begingroup$
No, your proof is inadequate. $q-1 notequiv 0 mod N$ does not necessarily mean you can divide by $q-1$. When $N$ is composite, $Bbb Z_N$ has zero divisors, which do not have inverses, despite not being $0$.
$endgroup$
– Paul Sinclair
Mar 31 at 21:21




$begingroup$
No, your proof is inadequate. $q-1 notequiv 0 mod N$ does not necessarily mean you can divide by $q-1$. When $N$ is composite, $Bbb Z_N$ has zero divisors, which do not have inverses, despite not being $0$.
$endgroup$
– Paul Sinclair
Mar 31 at 21:21










1 Answer
1






active

oldest

votes


















2












$begingroup$

You almost have it. Note that although it's true $gcd(q-1,N) = 1$ implies that $q-1 notequiv 0 pmodN$, this is not sufficient. For example, if $N = 6 = 2 times 3$, you also need to show that $q - 1 notequiv 2,3,4 pmod 6$.



Given that $q^d equiv 1 pmodN$, this means that



$$q^d - 1 = kN tag1labeleq1$$



for some integer $k$. Since $q - 1 mid q^d - 1$, then $q - 1 mid kN$. Since $gcd(q-1,N) = 1$, this means no factors of $q - 1$ can divide into $N$, so $q - 1 mid k$. Thus,



$$k = left(q-1right)m tag2labeleq2$$



for some integer $m$. I trust you can finish the rest.



If you're familiar with certain number theory, note you can do this somewhat more simply using that given $gcd(q-1,N) = 1$, then $q - 1$ has a multiplicative inverse modulo $N$. Thus, you can go directly from $q^d - 1 equiv 0 pmodN$ to $fracq^d - 1q - 1 equiv 0 pmodN$.






share|cite|improve this answer











$endgroup$








  • 1




    $begingroup$
    (+) Nice and perfect answer. I like it.
    $endgroup$
    – user0410
    Mar 31 at 22:22







  • 1




    $begingroup$
    @user0410 I'm glad you liked it. I usually try to give more basic, thorough answers that try to not assume too much about what the user already knows & is familiar with.
    $endgroup$
    – John Omielan
    Mar 31 at 22:27










  • $begingroup$
    You are not just a user, but a good teacher. I appreciate your description.
    $endgroup$
    – user0410
    Mar 31 at 22:31











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3169353%2fquestion-about-modular-arithmetic%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2












$begingroup$

You almost have it. Note that although it's true $gcd(q-1,N) = 1$ implies that $q-1 notequiv 0 pmodN$, this is not sufficient. For example, if $N = 6 = 2 times 3$, you also need to show that $q - 1 notequiv 2,3,4 pmod 6$.



Given that $q^d equiv 1 pmodN$, this means that



$$q^d - 1 = kN tag1labeleq1$$



for some integer $k$. Since $q - 1 mid q^d - 1$, then $q - 1 mid kN$. Since $gcd(q-1,N) = 1$, this means no factors of $q - 1$ can divide into $N$, so $q - 1 mid k$. Thus,



$$k = left(q-1right)m tag2labeleq2$$



for some integer $m$. I trust you can finish the rest.



If you're familiar with certain number theory, note you can do this somewhat more simply using that given $gcd(q-1,N) = 1$, then $q - 1$ has a multiplicative inverse modulo $N$. Thus, you can go directly from $q^d - 1 equiv 0 pmodN$ to $fracq^d - 1q - 1 equiv 0 pmodN$.






share|cite|improve this answer











$endgroup$








  • 1




    $begingroup$
    (+) Nice and perfect answer. I like it.
    $endgroup$
    – user0410
    Mar 31 at 22:22







  • 1




    $begingroup$
    @user0410 I'm glad you liked it. I usually try to give more basic, thorough answers that try to not assume too much about what the user already knows & is familiar with.
    $endgroup$
    – John Omielan
    Mar 31 at 22:27










  • $begingroup$
    You are not just a user, but a good teacher. I appreciate your description.
    $endgroup$
    – user0410
    Mar 31 at 22:31















2












$begingroup$

You almost have it. Note that although it's true $gcd(q-1,N) = 1$ implies that $q-1 notequiv 0 pmodN$, this is not sufficient. For example, if $N = 6 = 2 times 3$, you also need to show that $q - 1 notequiv 2,3,4 pmod 6$.



Given that $q^d equiv 1 pmodN$, this means that



$$q^d - 1 = kN tag1labeleq1$$



for some integer $k$. Since $q - 1 mid q^d - 1$, then $q - 1 mid kN$. Since $gcd(q-1,N) = 1$, this means no factors of $q - 1$ can divide into $N$, so $q - 1 mid k$. Thus,



$$k = left(q-1right)m tag2labeleq2$$



for some integer $m$. I trust you can finish the rest.



If you're familiar with certain number theory, note you can do this somewhat more simply using that given $gcd(q-1,N) = 1$, then $q - 1$ has a multiplicative inverse modulo $N$. Thus, you can go directly from $q^d - 1 equiv 0 pmodN$ to $fracq^d - 1q - 1 equiv 0 pmodN$.






share|cite|improve this answer











$endgroup$








  • 1




    $begingroup$
    (+) Nice and perfect answer. I like it.
    $endgroup$
    – user0410
    Mar 31 at 22:22







  • 1




    $begingroup$
    @user0410 I'm glad you liked it. I usually try to give more basic, thorough answers that try to not assume too much about what the user already knows & is familiar with.
    $endgroup$
    – John Omielan
    Mar 31 at 22:27










  • $begingroup$
    You are not just a user, but a good teacher. I appreciate your description.
    $endgroup$
    – user0410
    Mar 31 at 22:31













2












2








2





$begingroup$

You almost have it. Note that although it's true $gcd(q-1,N) = 1$ implies that $q-1 notequiv 0 pmodN$, this is not sufficient. For example, if $N = 6 = 2 times 3$, you also need to show that $q - 1 notequiv 2,3,4 pmod 6$.



Given that $q^d equiv 1 pmodN$, this means that



$$q^d - 1 = kN tag1labeleq1$$



for some integer $k$. Since $q - 1 mid q^d - 1$, then $q - 1 mid kN$. Since $gcd(q-1,N) = 1$, this means no factors of $q - 1$ can divide into $N$, so $q - 1 mid k$. Thus,



$$k = left(q-1right)m tag2labeleq2$$



for some integer $m$. I trust you can finish the rest.



If you're familiar with certain number theory, note you can do this somewhat more simply using that given $gcd(q-1,N) = 1$, then $q - 1$ has a multiplicative inverse modulo $N$. Thus, you can go directly from $q^d - 1 equiv 0 pmodN$ to $fracq^d - 1q - 1 equiv 0 pmodN$.






share|cite|improve this answer











$endgroup$



You almost have it. Note that although it's true $gcd(q-1,N) = 1$ implies that $q-1 notequiv 0 pmodN$, this is not sufficient. For example, if $N = 6 = 2 times 3$, you also need to show that $q - 1 notequiv 2,3,4 pmod 6$.



Given that $q^d equiv 1 pmodN$, this means that



$$q^d - 1 = kN tag1labeleq1$$



for some integer $k$. Since $q - 1 mid q^d - 1$, then $q - 1 mid kN$. Since $gcd(q-1,N) = 1$, this means no factors of $q - 1$ can divide into $N$, so $q - 1 mid k$. Thus,



$$k = left(q-1right)m tag2labeleq2$$



for some integer $m$. I trust you can finish the rest.



If you're familiar with certain number theory, note you can do this somewhat more simply using that given $gcd(q-1,N) = 1$, then $q - 1$ has a multiplicative inverse modulo $N$. Thus, you can go directly from $q^d - 1 equiv 0 pmodN$ to $fracq^d - 1q - 1 equiv 0 pmodN$.







share|cite|improve this answer














share|cite|improve this answer



share|cite|improve this answer








edited Mar 31 at 21:00

























answered Mar 31 at 20:54









John OmielanJohn Omielan

4,9692218




4,9692218







  • 1




    $begingroup$
    (+) Nice and perfect answer. I like it.
    $endgroup$
    – user0410
    Mar 31 at 22:22







  • 1




    $begingroup$
    @user0410 I'm glad you liked it. I usually try to give more basic, thorough answers that try to not assume too much about what the user already knows & is familiar with.
    $endgroup$
    – John Omielan
    Mar 31 at 22:27










  • $begingroup$
    You are not just a user, but a good teacher. I appreciate your description.
    $endgroup$
    – user0410
    Mar 31 at 22:31












  • 1




    $begingroup$
    (+) Nice and perfect answer. I like it.
    $endgroup$
    – user0410
    Mar 31 at 22:22







  • 1




    $begingroup$
    @user0410 I'm glad you liked it. I usually try to give more basic, thorough answers that try to not assume too much about what the user already knows & is familiar with.
    $endgroup$
    – John Omielan
    Mar 31 at 22:27










  • $begingroup$
    You are not just a user, but a good teacher. I appreciate your description.
    $endgroup$
    – user0410
    Mar 31 at 22:31







1




1




$begingroup$
(+) Nice and perfect answer. I like it.
$endgroup$
– user0410
Mar 31 at 22:22





$begingroup$
(+) Nice and perfect answer. I like it.
$endgroup$
– user0410
Mar 31 at 22:22





1




1




$begingroup$
@user0410 I'm glad you liked it. I usually try to give more basic, thorough answers that try to not assume too much about what the user already knows & is familiar with.
$endgroup$
– John Omielan
Mar 31 at 22:27




$begingroup$
@user0410 I'm glad you liked it. I usually try to give more basic, thorough answers that try to not assume too much about what the user already knows & is familiar with.
$endgroup$
– John Omielan
Mar 31 at 22:27












$begingroup$
You are not just a user, but a good teacher. I appreciate your description.
$endgroup$
– user0410
Mar 31 at 22:31




$begingroup$
You are not just a user, but a good teacher. I appreciate your description.
$endgroup$
– user0410
Mar 31 at 22:31

















draft saved

draft discarded
















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3169353%2fquestion-about-modular-arithmetic%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Triangular numbers and gcdProving sum of a set is $0 pmod n$ if $n$ is odd, or $fracn2 pmod n$ if $n$ is even?Is greatest common divisor of two numbers really their smallest linear combination?GCD, LCM RelationshipProve a set of nonnegative integers with greatest common divisor 1 and closed under addition has all but finite many nonnegative integers.all pairs of a and b in an equation containing gcdTriangular Numbers Modulo $k$ - Hit All Values?Understanding the Existence and Uniqueness of the GCDGCD and LCM with logical symbolsThe greatest common divisor of two positive integers less than 100 is equal to 3. Their least common multiple is twelve times one of the integers.Suppose that for all integers $x$, $x|a$ and $x|b$ if and only if $x|c$. Then $c = gcd(a,b)$Which is the gcd of 2 numbers which are multiplied and the result is 600000?

Ingelân Ynhâld Etymology | Geografy | Skiednis | Polityk en bestjoer | Ekonomy | Demografy | Kultuer | Klimaat | Sjoch ek | Keppelings om utens | Boarnen, noaten en referinsjes Navigaasjemenuwww.gov.ukOffisjele webside fan it regear fan it Feriene KeninkrykOffisjele webside fan it Britske FerkearsburoNederlânsktalige ynformaasje fan it Britske FerkearsburoOffisjele webside fan English Heritage, de organisaasje dy't him ynset foar it behâld fan it Ingelske kultuergoedYnwennertallen fan alle Britske stêden út 'e folkstelling fan 2011Notes en References, op dizze sideEngland

Հադիս Բովանդակություն Անվանում և նշանակություն | Դասակարգում | Աղբյուրներ | Նավարկման ցանկ