Understanding affine cypher / Euclidean math The Next CEO of Stack OverflowDiscrete Math -...

Why do professional authors make "consistency" mistakes? And how to avoid them?

Make solar eclipses exceedingly rare, but still have new moons

Inappropriate reference requests from Journal reviewers

How to start emacs in "nothing" mode (`fundamental-mode`)

How do we know the LHC results are robust?

How do I transpose the 1st and -1th levels of an arbitrarily nested array?

Why didn't Khan get resurrected in the Genesis Explosion?

How to solve a differential equation with a term to a power?

Why does standard notation not preserve intervals (visually)

How does the mv command work with external drives?

Can we say or write : "No, it'sn't"?

How do I avoid eval and parse?

Does it take more energy to get to Venus or to Mars?

Is there a way to save my career from absolute disaster?

sp_blitzCache results Memory grants

Real integral using residue theorem - why doesn't this work?

What was the first Unix version to run on a microcomputer?

Are there any limitations on attacking while grappling?

Why do we use the plural of movies in this phrase "We went to the movies last night."?

How do I make a variable always equal to the result of some calculations?

If the heap is initialized for security, then why is the stack uninitialized?

Can you replace a racial trait cantrip when leveling up?

Example of a Mathematician/Physicist whose Other Publications during their PhD eclipsed their PhD Thesis

What benefits would be gained by using human laborers instead of drones in deep sea mining?



Understanding affine cypher / Euclidean math



The Next CEO of Stack OverflowDiscrete Math - Bézout CoefficientsUnderstanding mathematical induction for divisibilityFinding an affine combination of a point on a triangleLenstra's Elliptic Curve AlgorithmUnderstanding Bézout's identity's proof as given on wikipedea.Proof that $sum_{n=1}^infty n $ is -1/12Affine space $-$ Understanding basic exampleWhy is Zero not composite?Affine cypher. Find function and plaintextTwo sequence relations are equivalent.












1












$begingroup$


$$e(x) = (ax + b)$$
$$d(y) = a^{-1}(y-b)$$
I need to prove that $$e(x)=d(y)$$ iff $$(a^2)=1$$ and $$b(a+1)=0,$$
so I tried working with $d(ex)$ to show they can be equivalent:



$$ax + b = a^{-1}(ax + b - b).$$
Next step will be
$$ax^2 + ba = ax$$
and that's where I'm stuck
I saw a solution doing
$$ ax+ b = a-1(x - b) $$ but I don't understand why this is valid. Shouldn't I replace the $y$ in $$d(y) = a^{-1}(y-b)$$ with the body of $$e(x)$$ after all $$x = d(e(x))$$ right?



And another question - how can I find all involutory keys in $mathbb N$?










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    In $mathbb{N}$ the cipher is only invertible if $a in {-1,1}$. This limits the number of possible ciphers.
    $endgroup$
    – Henno Brandsma
    Mar 17 at 16:12


















1












$begingroup$


$$e(x) = (ax + b)$$
$$d(y) = a^{-1}(y-b)$$
I need to prove that $$e(x)=d(y)$$ iff $$(a^2)=1$$ and $$b(a+1)=0,$$
so I tried working with $d(ex)$ to show they can be equivalent:



$$ax + b = a^{-1}(ax + b - b).$$
Next step will be
$$ax^2 + ba = ax$$
and that's where I'm stuck
I saw a solution doing
$$ ax+ b = a-1(x - b) $$ but I don't understand why this is valid. Shouldn't I replace the $y$ in $$d(y) = a^{-1}(y-b)$$ with the body of $$e(x)$$ after all $$x = d(e(x))$$ right?



And another question - how can I find all involutory keys in $mathbb N$?










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    In $mathbb{N}$ the cipher is only invertible if $a in {-1,1}$. This limits the number of possible ciphers.
    $endgroup$
    – Henno Brandsma
    Mar 17 at 16:12
















1












1








1





$begingroup$


$$e(x) = (ax + b)$$
$$d(y) = a^{-1}(y-b)$$
I need to prove that $$e(x)=d(y)$$ iff $$(a^2)=1$$ and $$b(a+1)=0,$$
so I tried working with $d(ex)$ to show they can be equivalent:



$$ax + b = a^{-1}(ax + b - b).$$
Next step will be
$$ax^2 + ba = ax$$
and that's where I'm stuck
I saw a solution doing
$$ ax+ b = a-1(x - b) $$ but I don't understand why this is valid. Shouldn't I replace the $y$ in $$d(y) = a^{-1}(y-b)$$ with the body of $$e(x)$$ after all $$x = d(e(x))$$ right?



And another question - how can I find all involutory keys in $mathbb N$?










share|cite|improve this question











$endgroup$




$$e(x) = (ax + b)$$
$$d(y) = a^{-1}(y-b)$$
I need to prove that $$e(x)=d(y)$$ iff $$(a^2)=1$$ and $$b(a+1)=0,$$
so I tried working with $d(ex)$ to show they can be equivalent:



$$ax + b = a^{-1}(ax + b - b).$$
Next step will be
$$ax^2 + ba = ax$$
and that's where I'm stuck
I saw a solution doing
$$ ax+ b = a-1(x - b) $$ but I don't understand why this is valid. Shouldn't I replace the $y$ in $$d(y) = a^{-1}(y-b)$$ with the body of $$e(x)$$ after all $$x = d(e(x))$$ right?



And another question - how can I find all involutory keys in $mathbb N$?







elementary-number-theory cryptography affine-geometry






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Mar 16 at 18:26









Robert Howard

2,2783935




2,2783935










asked Mar 16 at 17:52









igxigx

1165




1165








  • 1




    $begingroup$
    In $mathbb{N}$ the cipher is only invertible if $a in {-1,1}$. This limits the number of possible ciphers.
    $endgroup$
    – Henno Brandsma
    Mar 17 at 16:12
















  • 1




    $begingroup$
    In $mathbb{N}$ the cipher is only invertible if $a in {-1,1}$. This limits the number of possible ciphers.
    $endgroup$
    – Henno Brandsma
    Mar 17 at 16:12










1




1




$begingroup$
In $mathbb{N}$ the cipher is only invertible if $a in {-1,1}$. This limits the number of possible ciphers.
$endgroup$
– Henno Brandsma
Mar 17 at 16:12






$begingroup$
In $mathbb{N}$ the cipher is only invertible if $a in {-1,1}$. This limits the number of possible ciphers.
$endgroup$
– Henno Brandsma
Mar 17 at 16:12












1 Answer
1






active

oldest

votes


















2












$begingroup$

If we have that the encryption equals the decryption function, we have that for each $x$ in the ring we're working on ($mathbb{Z}_{26}$ or some other.) we have



$$e(e(x))=x$$ or equivalently



$$forall x: a(ax+b)+b = a^2x+ab+b= x$$



which implies (check that two affine functions are equal everywhere iff they're two coefficients are) that



$$a^2 =1 text{ and } a(1+b)=0$$



Now the argument will depend somewhat on the ring to determine the squares of $1$(there could be just $2$, $1$ and $-1$ or more); modulo $26$ or a prime, there are indeed just these two. And then $b=-1$ is "forced" by the last equation, as $a$ cannot be a zero-divisor. So in the most common cases we'll have two solutions.






share|cite|improve this answer









$endgroup$














    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%2f3150632%2funderstanding-affine-cypher-euclidean-math%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$

    If we have that the encryption equals the decryption function, we have that for each $x$ in the ring we're working on ($mathbb{Z}_{26}$ or some other.) we have



    $$e(e(x))=x$$ or equivalently



    $$forall x: a(ax+b)+b = a^2x+ab+b= x$$



    which implies (check that two affine functions are equal everywhere iff they're two coefficients are) that



    $$a^2 =1 text{ and } a(1+b)=0$$



    Now the argument will depend somewhat on the ring to determine the squares of $1$(there could be just $2$, $1$ and $-1$ or more); modulo $26$ or a prime, there are indeed just these two. And then $b=-1$ is "forced" by the last equation, as $a$ cannot be a zero-divisor. So in the most common cases we'll have two solutions.






    share|cite|improve this answer









    $endgroup$


















      2












      $begingroup$

      If we have that the encryption equals the decryption function, we have that for each $x$ in the ring we're working on ($mathbb{Z}_{26}$ or some other.) we have



      $$e(e(x))=x$$ or equivalently



      $$forall x: a(ax+b)+b = a^2x+ab+b= x$$



      which implies (check that two affine functions are equal everywhere iff they're two coefficients are) that



      $$a^2 =1 text{ and } a(1+b)=0$$



      Now the argument will depend somewhat on the ring to determine the squares of $1$(there could be just $2$, $1$ and $-1$ or more); modulo $26$ or a prime, there are indeed just these two. And then $b=-1$ is "forced" by the last equation, as $a$ cannot be a zero-divisor. So in the most common cases we'll have two solutions.






      share|cite|improve this answer









      $endgroup$
















        2












        2








        2





        $begingroup$

        If we have that the encryption equals the decryption function, we have that for each $x$ in the ring we're working on ($mathbb{Z}_{26}$ or some other.) we have



        $$e(e(x))=x$$ or equivalently



        $$forall x: a(ax+b)+b = a^2x+ab+b= x$$



        which implies (check that two affine functions are equal everywhere iff they're two coefficients are) that



        $$a^2 =1 text{ and } a(1+b)=0$$



        Now the argument will depend somewhat on the ring to determine the squares of $1$(there could be just $2$, $1$ and $-1$ or more); modulo $26$ or a prime, there are indeed just these two. And then $b=-1$ is "forced" by the last equation, as $a$ cannot be a zero-divisor. So in the most common cases we'll have two solutions.






        share|cite|improve this answer









        $endgroup$



        If we have that the encryption equals the decryption function, we have that for each $x$ in the ring we're working on ($mathbb{Z}_{26}$ or some other.) we have



        $$e(e(x))=x$$ or equivalently



        $$forall x: a(ax+b)+b = a^2x+ab+b= x$$



        which implies (check that two affine functions are equal everywhere iff they're two coefficients are) that



        $$a^2 =1 text{ and } a(1+b)=0$$



        Now the argument will depend somewhat on the ring to determine the squares of $1$(there could be just $2$, $1$ and $-1$ or more); modulo $26$ or a prime, there are indeed just these two. And then $b=-1$ is "forced" by the last equation, as $a$ cannot be a zero-divisor. So in the most common cases we'll have two solutions.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Mar 17 at 22:10









        Henno BrandsmaHenno Brandsma

        114k348124




        114k348124






























            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%2f3150632%2funderstanding-affine-cypher-euclidean-math%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

            Magento 2 - Add success message with knockout Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Success / Error message on ajax request$.widget is not a function when loading a homepage after add custom jQuery on custom themeHow can bind jQuery to current document in Magento 2 When template load by ajaxRedirect page using plugin in Magento 2Magento 2 - Update quantity and totals of cart page without page reload?Magento 2: Quote data not loaded on knockout checkoutMagento 2 : I need to change add to cart success message after adding product into cart through pluginMagento 2.2.5 How to add additional products to cart from new checkout step?Magento 2 Add error/success message with knockoutCan't validate Post Code on checkout page

            Fil:Tokke komm.svg

            Where did Arya get these scars? Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Favourite questions and answers from the 1st quarter of 2019Why did Arya refuse to end it?Has the pronunciation of Arya Stark's name changed?Has Arya forgiven people?Why did Arya Stark lose her vision?Why can Arya still use the faces?Has the Narrow Sea become narrower?Does Arya Stark know how to make poisons outside of the House of Black and White?Why did Nymeria leave Arya?Why did Arya not kill the Lannister soldiers she encountered in the Riverlands?What is the current canonical age of Sansa, Bran and Arya Stark?