Unable to solve this exponential equation - Diffie-Hellman key exchange
$begingroup$
By looking at it, I can deduce that $a = 6$, and $b = 5$, but how do I can solve for $a$ and $b$ without guessing?
$$2^a = 11b + 9$$
elementary-number-theory cryptography discrete-logarithms
$endgroup$
|
show 3 more comments
$begingroup$
By looking at it, I can deduce that $a = 6$, and $b = 5$, but how do I can solve for $a$ and $b$ without guessing?
$$2^a = 11b + 9$$
elementary-number-theory cryptography discrete-logarithms
$endgroup$
$begingroup$
Consider taking $mod 11$ perhaps.
$endgroup$
– Yadati Kiran
Dec 8 '18 at 3:03
$begingroup$
You tagged this “calculus”. What context did you encounter this problem in? I suspect it wasn’t calculus...
$endgroup$
– Arturo Magidin
Dec 8 '18 at 3:04
$begingroup$
@ArturoMagidin I am not sure if it is correctly calculus, it is a Diffie-Hellman Key exchange problem, I am trying to find the private key of Alice which is $a$, the equation in the question is the one I derived from the data provided in the problem, so the common prime $q = 11$, primitive root $alpha = 2$, and Alice's public generated key is 9, find Alice's private key
$endgroup$
– Almost Handsome
Dec 8 '18 at 3:08
$begingroup$
@YadatiKiran If would be great if you could be more elaborate
$endgroup$
– Almost Handsome
Dec 8 '18 at 3:10
$begingroup$
If it is Diffie-Hellman, then it is most definitely not calculus, as it involves a discrete problem. This is the discrete logarithm problem, cryptography, perhaps elementary number theory or number theory. I’ve fixed your tags.
$endgroup$
– Arturo Magidin
Dec 8 '18 at 3:17
|
show 3 more comments
$begingroup$
By looking at it, I can deduce that $a = 6$, and $b = 5$, but how do I can solve for $a$ and $b$ without guessing?
$$2^a = 11b + 9$$
elementary-number-theory cryptography discrete-logarithms
$endgroup$
By looking at it, I can deduce that $a = 6$, and $b = 5$, but how do I can solve for $a$ and $b$ without guessing?
$$2^a = 11b + 9$$
elementary-number-theory cryptography discrete-logarithms
elementary-number-theory cryptography discrete-logarithms
edited Dec 8 '18 at 3:26
Almost Handsome
asked Dec 8 '18 at 2:57
Almost HandsomeAlmost Handsome
1085
1085
$begingroup$
Consider taking $mod 11$ perhaps.
$endgroup$
– Yadati Kiran
Dec 8 '18 at 3:03
$begingroup$
You tagged this “calculus”. What context did you encounter this problem in? I suspect it wasn’t calculus...
$endgroup$
– Arturo Magidin
Dec 8 '18 at 3:04
$begingroup$
@ArturoMagidin I am not sure if it is correctly calculus, it is a Diffie-Hellman Key exchange problem, I am trying to find the private key of Alice which is $a$, the equation in the question is the one I derived from the data provided in the problem, so the common prime $q = 11$, primitive root $alpha = 2$, and Alice's public generated key is 9, find Alice's private key
$endgroup$
– Almost Handsome
Dec 8 '18 at 3:08
$begingroup$
@YadatiKiran If would be great if you could be more elaborate
$endgroup$
– Almost Handsome
Dec 8 '18 at 3:10
$begingroup$
If it is Diffie-Hellman, then it is most definitely not calculus, as it involves a discrete problem. This is the discrete logarithm problem, cryptography, perhaps elementary number theory or number theory. I’ve fixed your tags.
$endgroup$
– Arturo Magidin
Dec 8 '18 at 3:17
|
show 3 more comments
$begingroup$
Consider taking $mod 11$ perhaps.
$endgroup$
– Yadati Kiran
Dec 8 '18 at 3:03
$begingroup$
You tagged this “calculus”. What context did you encounter this problem in? I suspect it wasn’t calculus...
$endgroup$
– Arturo Magidin
Dec 8 '18 at 3:04
$begingroup$
@ArturoMagidin I am not sure if it is correctly calculus, it is a Diffie-Hellman Key exchange problem, I am trying to find the private key of Alice which is $a$, the equation in the question is the one I derived from the data provided in the problem, so the common prime $q = 11$, primitive root $alpha = 2$, and Alice's public generated key is 9, find Alice's private key
$endgroup$
– Almost Handsome
Dec 8 '18 at 3:08
$begingroup$
@YadatiKiran If would be great if you could be more elaborate
$endgroup$
– Almost Handsome
Dec 8 '18 at 3:10
$begingroup$
If it is Diffie-Hellman, then it is most definitely not calculus, as it involves a discrete problem. This is the discrete logarithm problem, cryptography, perhaps elementary number theory or number theory. I’ve fixed your tags.
$endgroup$
– Arturo Magidin
Dec 8 '18 at 3:17
$begingroup$
Consider taking $mod 11$ perhaps.
$endgroup$
– Yadati Kiran
Dec 8 '18 at 3:03
$begingroup$
Consider taking $mod 11$ perhaps.
$endgroup$
– Yadati Kiran
Dec 8 '18 at 3:03
$begingroup$
You tagged this “calculus”. What context did you encounter this problem in? I suspect it wasn’t calculus...
$endgroup$
– Arturo Magidin
Dec 8 '18 at 3:04
$begingroup$
You tagged this “calculus”. What context did you encounter this problem in? I suspect it wasn’t calculus...
$endgroup$
– Arturo Magidin
Dec 8 '18 at 3:04
$begingroup$
@ArturoMagidin I am not sure if it is correctly calculus, it is a Diffie-Hellman Key exchange problem, I am trying to find the private key of Alice which is $a$, the equation in the question is the one I derived from the data provided in the problem, so the common prime $q = 11$, primitive root $alpha = 2$, and Alice's public generated key is 9, find Alice's private key
$endgroup$
– Almost Handsome
Dec 8 '18 at 3:08
$begingroup$
@ArturoMagidin I am not sure if it is correctly calculus, it is a Diffie-Hellman Key exchange problem, I am trying to find the private key of Alice which is $a$, the equation in the question is the one I derived from the data provided in the problem, so the common prime $q = 11$, primitive root $alpha = 2$, and Alice's public generated key is 9, find Alice's private key
$endgroup$
– Almost Handsome
Dec 8 '18 at 3:08
$begingroup$
@YadatiKiran If would be great if you could be more elaborate
$endgroup$
– Almost Handsome
Dec 8 '18 at 3:10
$begingroup$
@YadatiKiran If would be great if you could be more elaborate
$endgroup$
– Almost Handsome
Dec 8 '18 at 3:10
$begingroup$
If it is Diffie-Hellman, then it is most definitely not calculus, as it involves a discrete problem. This is the discrete logarithm problem, cryptography, perhaps elementary number theory or number theory. I’ve fixed your tags.
$endgroup$
– Arturo Magidin
Dec 8 '18 at 3:17
$begingroup$
If it is Diffie-Hellman, then it is most definitely not calculus, as it involves a discrete problem. This is the discrete logarithm problem, cryptography, perhaps elementary number theory or number theory. I’ve fixed your tags.
$endgroup$
– Arturo Magidin
Dec 8 '18 at 3:17
|
show 3 more comments
2 Answers
2
active
oldest
votes
$begingroup$
Write $$2^aequiv9pmod{11}.$$ Rewrite it as $$2^aequiv-2pmod{11},$$or
$$2^{a-1}equiv-1pmod{11}.$$ Squaring both sides,
$$2^{2a-2}equiv1pmod{11}.$$ By Fermat's little theorem, we know that one solution is $$2a-2=10iff a=6$$ Any smaller exponent must be must be a factor of $10$, and the only even factor of $10$ is $2,$ but $2a-2=2$ gives $a=2,$ which doesn't give a solution.
Since $2^{10}equiv 1pmod{11},$ all values of the form $a=10k+6$ actually lead to solutions.
As has been pointed out in the comments, this is a discrete logarithm problem, and is very difficult in general. Usually the problem is to find the smallest exponent that would work, which involves find the factors of the exponent that you get from little Fermat. Since factoring is very difficult, so is this problem.
$endgroup$
add a comment |
$begingroup$
This equation in a way can be related to Collatz conjecture. There is a set of infinite odd numbers which satisfy the condition of Collatz conjecture; this set is:
$K={1,5,21,85,341,1365,5461,21845 . . .(4k_{i-1}+1)}$; $i ∈ N$
So that:
$3times k_i+1=2^n$
Which due to Collatz conjecture leads to 1 by cintinious dividing by 2.
Hence the equation can also be written as:
$11a+9=3k+1$; $k ∈ K$
The general solutions of this equation are:
$a=4t+5$
$k=11t+21$
Where 5 and 21 are a solution of equation. We can see that is set K, in addition to $k_3=21$ which gives $a=5$ and $n=6$ there is another numbers such as $k_8=21845$ which gives $n=16$ and $a=5957$:
$3times21845+1=65536=2^{16}$
$65536=5957times 11+9$
which sre resulted with $t=1488$.
It is not known the number of solutions of this equation is infinite, however using general solution and try more numbers for t we may find even more solutions by Brut force.
$endgroup$
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3030648%2funable-to-solve-this-exponential-equation-diffie-hellman-key-exchange%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Write $$2^aequiv9pmod{11}.$$ Rewrite it as $$2^aequiv-2pmod{11},$$or
$$2^{a-1}equiv-1pmod{11}.$$ Squaring both sides,
$$2^{2a-2}equiv1pmod{11}.$$ By Fermat's little theorem, we know that one solution is $$2a-2=10iff a=6$$ Any smaller exponent must be must be a factor of $10$, and the only even factor of $10$ is $2,$ but $2a-2=2$ gives $a=2,$ which doesn't give a solution.
Since $2^{10}equiv 1pmod{11},$ all values of the form $a=10k+6$ actually lead to solutions.
As has been pointed out in the comments, this is a discrete logarithm problem, and is very difficult in general. Usually the problem is to find the smallest exponent that would work, which involves find the factors of the exponent that you get from little Fermat. Since factoring is very difficult, so is this problem.
$endgroup$
add a comment |
$begingroup$
Write $$2^aequiv9pmod{11}.$$ Rewrite it as $$2^aequiv-2pmod{11},$$or
$$2^{a-1}equiv-1pmod{11}.$$ Squaring both sides,
$$2^{2a-2}equiv1pmod{11}.$$ By Fermat's little theorem, we know that one solution is $$2a-2=10iff a=6$$ Any smaller exponent must be must be a factor of $10$, and the only even factor of $10$ is $2,$ but $2a-2=2$ gives $a=2,$ which doesn't give a solution.
Since $2^{10}equiv 1pmod{11},$ all values of the form $a=10k+6$ actually lead to solutions.
As has been pointed out in the comments, this is a discrete logarithm problem, and is very difficult in general. Usually the problem is to find the smallest exponent that would work, which involves find the factors of the exponent that you get from little Fermat. Since factoring is very difficult, so is this problem.
$endgroup$
add a comment |
$begingroup$
Write $$2^aequiv9pmod{11}.$$ Rewrite it as $$2^aequiv-2pmod{11},$$or
$$2^{a-1}equiv-1pmod{11}.$$ Squaring both sides,
$$2^{2a-2}equiv1pmod{11}.$$ By Fermat's little theorem, we know that one solution is $$2a-2=10iff a=6$$ Any smaller exponent must be must be a factor of $10$, and the only even factor of $10$ is $2,$ but $2a-2=2$ gives $a=2,$ which doesn't give a solution.
Since $2^{10}equiv 1pmod{11},$ all values of the form $a=10k+6$ actually lead to solutions.
As has been pointed out in the comments, this is a discrete logarithm problem, and is very difficult in general. Usually the problem is to find the smallest exponent that would work, which involves find the factors of the exponent that you get from little Fermat. Since factoring is very difficult, so is this problem.
$endgroup$
Write $$2^aequiv9pmod{11}.$$ Rewrite it as $$2^aequiv-2pmod{11},$$or
$$2^{a-1}equiv-1pmod{11}.$$ Squaring both sides,
$$2^{2a-2}equiv1pmod{11}.$$ By Fermat's little theorem, we know that one solution is $$2a-2=10iff a=6$$ Any smaller exponent must be must be a factor of $10$, and the only even factor of $10$ is $2,$ but $2a-2=2$ gives $a=2,$ which doesn't give a solution.
Since $2^{10}equiv 1pmod{11},$ all values of the form $a=10k+6$ actually lead to solutions.
As has been pointed out in the comments, this is a discrete logarithm problem, and is very difficult in general. Usually the problem is to find the smallest exponent that would work, which involves find the factors of the exponent that you get from little Fermat. Since factoring is very difficult, so is this problem.
answered Dec 8 '18 at 3:31
saulspatzsaulspatz
14.3k21329
14.3k21329
add a comment |
add a comment |
$begingroup$
This equation in a way can be related to Collatz conjecture. There is a set of infinite odd numbers which satisfy the condition of Collatz conjecture; this set is:
$K={1,5,21,85,341,1365,5461,21845 . . .(4k_{i-1}+1)}$; $i ∈ N$
So that:
$3times k_i+1=2^n$
Which due to Collatz conjecture leads to 1 by cintinious dividing by 2.
Hence the equation can also be written as:
$11a+9=3k+1$; $k ∈ K$
The general solutions of this equation are:
$a=4t+5$
$k=11t+21$
Where 5 and 21 are a solution of equation. We can see that is set K, in addition to $k_3=21$ which gives $a=5$ and $n=6$ there is another numbers such as $k_8=21845$ which gives $n=16$ and $a=5957$:
$3times21845+1=65536=2^{16}$
$65536=5957times 11+9$
which sre resulted with $t=1488$.
It is not known the number of solutions of this equation is infinite, however using general solution and try more numbers for t we may find even more solutions by Brut force.
$endgroup$
add a comment |
$begingroup$
This equation in a way can be related to Collatz conjecture. There is a set of infinite odd numbers which satisfy the condition of Collatz conjecture; this set is:
$K={1,5,21,85,341,1365,5461,21845 . . .(4k_{i-1}+1)}$; $i ∈ N$
So that:
$3times k_i+1=2^n$
Which due to Collatz conjecture leads to 1 by cintinious dividing by 2.
Hence the equation can also be written as:
$11a+9=3k+1$; $k ∈ K$
The general solutions of this equation are:
$a=4t+5$
$k=11t+21$
Where 5 and 21 are a solution of equation. We can see that is set K, in addition to $k_3=21$ which gives $a=5$ and $n=6$ there is another numbers such as $k_8=21845$ which gives $n=16$ and $a=5957$:
$3times21845+1=65536=2^{16}$
$65536=5957times 11+9$
which sre resulted with $t=1488$.
It is not known the number of solutions of this equation is infinite, however using general solution and try more numbers for t we may find even more solutions by Brut force.
$endgroup$
add a comment |
$begingroup$
This equation in a way can be related to Collatz conjecture. There is a set of infinite odd numbers which satisfy the condition of Collatz conjecture; this set is:
$K={1,5,21,85,341,1365,5461,21845 . . .(4k_{i-1}+1)}$; $i ∈ N$
So that:
$3times k_i+1=2^n$
Which due to Collatz conjecture leads to 1 by cintinious dividing by 2.
Hence the equation can also be written as:
$11a+9=3k+1$; $k ∈ K$
The general solutions of this equation are:
$a=4t+5$
$k=11t+21$
Where 5 and 21 are a solution of equation. We can see that is set K, in addition to $k_3=21$ which gives $a=5$ and $n=6$ there is another numbers such as $k_8=21845$ which gives $n=16$ and $a=5957$:
$3times21845+1=65536=2^{16}$
$65536=5957times 11+9$
which sre resulted with $t=1488$.
It is not known the number of solutions of this equation is infinite, however using general solution and try more numbers for t we may find even more solutions by Brut force.
$endgroup$
This equation in a way can be related to Collatz conjecture. There is a set of infinite odd numbers which satisfy the condition of Collatz conjecture; this set is:
$K={1,5,21,85,341,1365,5461,21845 . . .(4k_{i-1}+1)}$; $i ∈ N$
So that:
$3times k_i+1=2^n$
Which due to Collatz conjecture leads to 1 by cintinious dividing by 2.
Hence the equation can also be written as:
$11a+9=3k+1$; $k ∈ K$
The general solutions of this equation are:
$a=4t+5$
$k=11t+21$
Where 5 and 21 are a solution of equation. We can see that is set K, in addition to $k_3=21$ which gives $a=5$ and $n=6$ there is another numbers such as $k_8=21845$ which gives $n=16$ and $a=5957$:
$3times21845+1=65536=2^{16}$
$65536=5957times 11+9$
which sre resulted with $t=1488$.
It is not known the number of solutions of this equation is infinite, however using general solution and try more numbers for t we may find even more solutions by Brut force.
answered Dec 12 '18 at 13:30
siroussirous
1,6291513
1,6291513
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3030648%2funable-to-solve-this-exponential-equation-diffie-hellman-key-exchange%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
$begingroup$
Consider taking $mod 11$ perhaps.
$endgroup$
– Yadati Kiran
Dec 8 '18 at 3:03
$begingroup$
You tagged this “calculus”. What context did you encounter this problem in? I suspect it wasn’t calculus...
$endgroup$
– Arturo Magidin
Dec 8 '18 at 3:04
$begingroup$
@ArturoMagidin I am not sure if it is correctly calculus, it is a Diffie-Hellman Key exchange problem, I am trying to find the private key of Alice which is $a$, the equation in the question is the one I derived from the data provided in the problem, so the common prime $q = 11$, primitive root $alpha = 2$, and Alice's public generated key is 9, find Alice's private key
$endgroup$
– Almost Handsome
Dec 8 '18 at 3:08
$begingroup$
@YadatiKiran If would be great if you could be more elaborate
$endgroup$
– Almost Handsome
Dec 8 '18 at 3:10
$begingroup$
If it is Diffie-Hellman, then it is most definitely not calculus, as it involves a discrete problem. This is the discrete logarithm problem, cryptography, perhaps elementary number theory or number theory. I’ve fixed your tags.
$endgroup$
– Arturo Magidin
Dec 8 '18 at 3:17