Relation between residues and primitive roots modulo $p$












0












$begingroup$


I got a very satisfiying answer to my question on the relation between primeness and co-primeness of numbers which can be defined in a somehow symmetric way:




$n$ is prime iff



$$(forall xy) n | x vee n | y leftrightarrow n | xcdot y$$



$n, m$ are co-prime iff



$$(forall x) n | x wedge m | x leftrightarrow ncdot m | x$$




The answer made use of categorical language (as the terms prime and co-prime suggest), explaining the analogy by products and co-products.



Now I came up with another definitional symmetry, and I'd like to know how it can be "explained", possibly again in a categorical framework:





  • n is a residue modulo $m$ iff


$$(exists x < m) operatorname{gcd}(x,m) = 1 wedge (exists k) x^k equiv n pmod{m}$$




  • n is a primitive root modulo $m$ iff


$$(forall x < m) operatorname{gcd}(x,m) = 1 rightarrow (exists k) n^k equiv x pmod{m}$$




To ask more pointedly: Are residues some kind of a (categorical) co-concept of primitive roots?










share|cite|improve this question











$endgroup$












  • $begingroup$
    The "residue" statement looks wrong; basically, I don't think any such statement without a $2$ somewhere in it has any chance to be true. As for the "primitive root" statement, it becomes true if you require $x$ to be coprime to $m$.
    $endgroup$
    – darij grinberg
    Jan 8 at 12:28










  • $begingroup$
    Thanks for the hint concerning primitive roots, I corrected the definition. Note that both "statements" are considered to be definitions. What can be wrong with the first one? And aren't there - next to quadratic residues - cubic and biquadratic residues (which are residues by my definition)?
    $endgroup$
    – Hans-Peter Stricker
    Jan 8 at 12:34












  • $begingroup$
    You are defining words that are already defined, so the definitions should be equivalent. The "primitive root" one is now correct. As for the "residues" one, every integer $x$ coprime to $m$ is a residue according to your new definition. Probably not what you want :)
    $endgroup$
    – darij grinberg
    Jan 8 at 12:47










  • $begingroup$
    I just wanted to *restate" the definitions (that admittedly already exist, at least the second one) in a unified manner - to highlight some kind of "syntactical symmetry". That's what it's all about. (Now I have to fix the definition of residues.)
    $endgroup$
    – Hans-Peter Stricker
    Jan 8 at 13:07










  • $begingroup$
    @darijgrinberg: My new definition of "residue" is stronger than the old one, so what you say must hold already for the older, i.e. the weaker one. But probably both are not what I want.
    $endgroup$
    – Hans-Peter Stricker
    Jan 8 at 13:11
















0












$begingroup$


I got a very satisfiying answer to my question on the relation between primeness and co-primeness of numbers which can be defined in a somehow symmetric way:




$n$ is prime iff



$$(forall xy) n | x vee n | y leftrightarrow n | xcdot y$$



$n, m$ are co-prime iff



$$(forall x) n | x wedge m | x leftrightarrow ncdot m | x$$




The answer made use of categorical language (as the terms prime and co-prime suggest), explaining the analogy by products and co-products.



Now I came up with another definitional symmetry, and I'd like to know how it can be "explained", possibly again in a categorical framework:





  • n is a residue modulo $m$ iff


$$(exists x < m) operatorname{gcd}(x,m) = 1 wedge (exists k) x^k equiv n pmod{m}$$




  • n is a primitive root modulo $m$ iff


$$(forall x < m) operatorname{gcd}(x,m) = 1 rightarrow (exists k) n^k equiv x pmod{m}$$




To ask more pointedly: Are residues some kind of a (categorical) co-concept of primitive roots?










share|cite|improve this question











$endgroup$












  • $begingroup$
    The "residue" statement looks wrong; basically, I don't think any such statement without a $2$ somewhere in it has any chance to be true. As for the "primitive root" statement, it becomes true if you require $x$ to be coprime to $m$.
    $endgroup$
    – darij grinberg
    Jan 8 at 12:28










  • $begingroup$
    Thanks for the hint concerning primitive roots, I corrected the definition. Note that both "statements" are considered to be definitions. What can be wrong with the first one? And aren't there - next to quadratic residues - cubic and biquadratic residues (which are residues by my definition)?
    $endgroup$
    – Hans-Peter Stricker
    Jan 8 at 12:34












  • $begingroup$
    You are defining words that are already defined, so the definitions should be equivalent. The "primitive root" one is now correct. As for the "residues" one, every integer $x$ coprime to $m$ is a residue according to your new definition. Probably not what you want :)
    $endgroup$
    – darij grinberg
    Jan 8 at 12:47










  • $begingroup$
    I just wanted to *restate" the definitions (that admittedly already exist, at least the second one) in a unified manner - to highlight some kind of "syntactical symmetry". That's what it's all about. (Now I have to fix the definition of residues.)
    $endgroup$
    – Hans-Peter Stricker
    Jan 8 at 13:07










  • $begingroup$
    @darijgrinberg: My new definition of "residue" is stronger than the old one, so what you say must hold already for the older, i.e. the weaker one. But probably both are not what I want.
    $endgroup$
    – Hans-Peter Stricker
    Jan 8 at 13:11














0












0








0





$begingroup$


I got a very satisfiying answer to my question on the relation between primeness and co-primeness of numbers which can be defined in a somehow symmetric way:




$n$ is prime iff



$$(forall xy) n | x vee n | y leftrightarrow n | xcdot y$$



$n, m$ are co-prime iff



$$(forall x) n | x wedge m | x leftrightarrow ncdot m | x$$




The answer made use of categorical language (as the terms prime and co-prime suggest), explaining the analogy by products and co-products.



Now I came up with another definitional symmetry, and I'd like to know how it can be "explained", possibly again in a categorical framework:





  • n is a residue modulo $m$ iff


$$(exists x < m) operatorname{gcd}(x,m) = 1 wedge (exists k) x^k equiv n pmod{m}$$




  • n is a primitive root modulo $m$ iff


$$(forall x < m) operatorname{gcd}(x,m) = 1 rightarrow (exists k) n^k equiv x pmod{m}$$




To ask more pointedly: Are residues some kind of a (categorical) co-concept of primitive roots?










share|cite|improve this question











$endgroup$




I got a very satisfiying answer to my question on the relation between primeness and co-primeness of numbers which can be defined in a somehow symmetric way:




$n$ is prime iff



$$(forall xy) n | x vee n | y leftrightarrow n | xcdot y$$



$n, m$ are co-prime iff



$$(forall x) n | x wedge m | x leftrightarrow ncdot m | x$$




The answer made use of categorical language (as the terms prime and co-prime suggest), explaining the analogy by products and co-products.



Now I came up with another definitional symmetry, and I'd like to know how it can be "explained", possibly again in a categorical framework:





  • n is a residue modulo $m$ iff


$$(exists x < m) operatorname{gcd}(x,m) = 1 wedge (exists k) x^k equiv n pmod{m}$$




  • n is a primitive root modulo $m$ iff


$$(forall x < m) operatorname{gcd}(x,m) = 1 rightarrow (exists k) n^k equiv x pmod{m}$$




To ask more pointedly: Are residues some kind of a (categorical) co-concept of primitive roots?







elementary-number-theory modular-arithmetic quadratic-residues primitive-roots






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 8 at 12:35







Hans-Peter Stricker

















asked Jan 7 at 9:44









Hans-Peter StrickerHans-Peter Stricker

6,69443995




6,69443995












  • $begingroup$
    The "residue" statement looks wrong; basically, I don't think any such statement without a $2$ somewhere in it has any chance to be true. As for the "primitive root" statement, it becomes true if you require $x$ to be coprime to $m$.
    $endgroup$
    – darij grinberg
    Jan 8 at 12:28










  • $begingroup$
    Thanks for the hint concerning primitive roots, I corrected the definition. Note that both "statements" are considered to be definitions. What can be wrong with the first one? And aren't there - next to quadratic residues - cubic and biquadratic residues (which are residues by my definition)?
    $endgroup$
    – Hans-Peter Stricker
    Jan 8 at 12:34












  • $begingroup$
    You are defining words that are already defined, so the definitions should be equivalent. The "primitive root" one is now correct. As for the "residues" one, every integer $x$ coprime to $m$ is a residue according to your new definition. Probably not what you want :)
    $endgroup$
    – darij grinberg
    Jan 8 at 12:47










  • $begingroup$
    I just wanted to *restate" the definitions (that admittedly already exist, at least the second one) in a unified manner - to highlight some kind of "syntactical symmetry". That's what it's all about. (Now I have to fix the definition of residues.)
    $endgroup$
    – Hans-Peter Stricker
    Jan 8 at 13:07










  • $begingroup$
    @darijgrinberg: My new definition of "residue" is stronger than the old one, so what you say must hold already for the older, i.e. the weaker one. But probably both are not what I want.
    $endgroup$
    – Hans-Peter Stricker
    Jan 8 at 13:11


















  • $begingroup$
    The "residue" statement looks wrong; basically, I don't think any such statement without a $2$ somewhere in it has any chance to be true. As for the "primitive root" statement, it becomes true if you require $x$ to be coprime to $m$.
    $endgroup$
    – darij grinberg
    Jan 8 at 12:28










  • $begingroup$
    Thanks for the hint concerning primitive roots, I corrected the definition. Note that both "statements" are considered to be definitions. What can be wrong with the first one? And aren't there - next to quadratic residues - cubic and biquadratic residues (which are residues by my definition)?
    $endgroup$
    – Hans-Peter Stricker
    Jan 8 at 12:34












  • $begingroup$
    You are defining words that are already defined, so the definitions should be equivalent. The "primitive root" one is now correct. As for the "residues" one, every integer $x$ coprime to $m$ is a residue according to your new definition. Probably not what you want :)
    $endgroup$
    – darij grinberg
    Jan 8 at 12:47










  • $begingroup$
    I just wanted to *restate" the definitions (that admittedly already exist, at least the second one) in a unified manner - to highlight some kind of "syntactical symmetry". That's what it's all about. (Now I have to fix the definition of residues.)
    $endgroup$
    – Hans-Peter Stricker
    Jan 8 at 13:07










  • $begingroup$
    @darijgrinberg: My new definition of "residue" is stronger than the old one, so what you say must hold already for the older, i.e. the weaker one. But probably both are not what I want.
    $endgroup$
    – Hans-Peter Stricker
    Jan 8 at 13:11
















$begingroup$
The "residue" statement looks wrong; basically, I don't think any such statement without a $2$ somewhere in it has any chance to be true. As for the "primitive root" statement, it becomes true if you require $x$ to be coprime to $m$.
$endgroup$
– darij grinberg
Jan 8 at 12:28




$begingroup$
The "residue" statement looks wrong; basically, I don't think any such statement without a $2$ somewhere in it has any chance to be true. As for the "primitive root" statement, it becomes true if you require $x$ to be coprime to $m$.
$endgroup$
– darij grinberg
Jan 8 at 12:28












$begingroup$
Thanks for the hint concerning primitive roots, I corrected the definition. Note that both "statements" are considered to be definitions. What can be wrong with the first one? And aren't there - next to quadratic residues - cubic and biquadratic residues (which are residues by my definition)?
$endgroup$
– Hans-Peter Stricker
Jan 8 at 12:34






$begingroup$
Thanks for the hint concerning primitive roots, I corrected the definition. Note that both "statements" are considered to be definitions. What can be wrong with the first one? And aren't there - next to quadratic residues - cubic and biquadratic residues (which are residues by my definition)?
$endgroup$
– Hans-Peter Stricker
Jan 8 at 12:34














$begingroup$
You are defining words that are already defined, so the definitions should be equivalent. The "primitive root" one is now correct. As for the "residues" one, every integer $x$ coprime to $m$ is a residue according to your new definition. Probably not what you want :)
$endgroup$
– darij grinberg
Jan 8 at 12:47




$begingroup$
You are defining words that are already defined, so the definitions should be equivalent. The "primitive root" one is now correct. As for the "residues" one, every integer $x$ coprime to $m$ is a residue according to your new definition. Probably not what you want :)
$endgroup$
– darij grinberg
Jan 8 at 12:47












$begingroup$
I just wanted to *restate" the definitions (that admittedly already exist, at least the second one) in a unified manner - to highlight some kind of "syntactical symmetry". That's what it's all about. (Now I have to fix the definition of residues.)
$endgroup$
– Hans-Peter Stricker
Jan 8 at 13:07




$begingroup$
I just wanted to *restate" the definitions (that admittedly already exist, at least the second one) in a unified manner - to highlight some kind of "syntactical symmetry". That's what it's all about. (Now I have to fix the definition of residues.)
$endgroup$
– Hans-Peter Stricker
Jan 8 at 13:07












$begingroup$
@darijgrinberg: My new definition of "residue" is stronger than the old one, so what you say must hold already for the older, i.e. the weaker one. But probably both are not what I want.
$endgroup$
– Hans-Peter Stricker
Jan 8 at 13:11




$begingroup$
@darijgrinberg: My new definition of "residue" is stronger than the old one, so what you say must hold already for the older, i.e. the weaker one. But probably both are not what I want.
$endgroup$
– Hans-Peter Stricker
Jan 8 at 13:11










0






active

oldest

votes











Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

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%2f3064823%2frelation-between-residues-and-primitive-roots-modulo-p%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















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%2f3064823%2frelation-between-residues-and-primitive-roots-modulo-p%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

Cabo Verde

Karlovacs län

Gyllenstierna