Divisor of $x^2+x+1$ can be square number?












3












$begingroup$


$$1^2+1+1=3$$
$$2^2+2+1=7$$
$$8^2+8+1=73$$
$$10^2+10+1=111=3cdot37$$
There is no divisor which is square number.
Is it just coincidence? Or can be proved?



*I'm not english user, so my grammer might be wrong










share|cite|improve this question











$endgroup$








  • 2




    $begingroup$
    $1$ is a square number.
    $endgroup$
    – YiFan
    Dec 20 '18 at 11:49
















3












$begingroup$


$$1^2+1+1=3$$
$$2^2+2+1=7$$
$$8^2+8+1=73$$
$$10^2+10+1=111=3cdot37$$
There is no divisor which is square number.
Is it just coincidence? Or can be proved?



*I'm not english user, so my grammer might be wrong










share|cite|improve this question











$endgroup$








  • 2




    $begingroup$
    $1$ is a square number.
    $endgroup$
    – YiFan
    Dec 20 '18 at 11:49














3












3








3





$begingroup$


$$1^2+1+1=3$$
$$2^2+2+1=7$$
$$8^2+8+1=73$$
$$10^2+10+1=111=3cdot37$$
There is no divisor which is square number.
Is it just coincidence? Or can be proved?



*I'm not english user, so my grammer might be wrong










share|cite|improve this question











$endgroup$




$$1^2+1+1=3$$
$$2^2+2+1=7$$
$$8^2+8+1=73$$
$$10^2+10+1=111=3cdot37$$
There is no divisor which is square number.
Is it just coincidence? Or can be proved?



*I'm not english user, so my grammer might be wrong







number-theory elementary-number-theory divisibility diophantine-equations square-numbers






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Dec 20 '18 at 11:38









Batominovski

33.1k33293




33.1k33293










asked Dec 20 '18 at 10:33









eandpiandieandpiandi

322




322








  • 2




    $begingroup$
    $1$ is a square number.
    $endgroup$
    – YiFan
    Dec 20 '18 at 11:49














  • 2




    $begingroup$
    $1$ is a square number.
    $endgroup$
    – YiFan
    Dec 20 '18 at 11:49








2




2




$begingroup$
$1$ is a square number.
$endgroup$
– YiFan
Dec 20 '18 at 11:49




$begingroup$
$1$ is a square number.
$endgroup$
– YiFan
Dec 20 '18 at 11:49










3 Answers
3






active

oldest

votes


















7












$begingroup$

What about $x=653$, where
$$x^2+x+1=427063=7cdot (13cdot 19)^2,?$$
How did I find this $x$? I first suppose that $x^2+x+1=ay^2$ for some positive integers $a$ and $y$. This means
$$(2x+1)^2-a(2y)^2=-3,.$$
Let $u:=2x+1$ and $v:=2y$. Then, we are to solve the Pell-type equation $$u^2-av^2=-3,,$$ where $u,vinmathbb{Z}_{>0}$. In particular, the case $x=2$ yields $a=7$ and $y=1$. Therefore, I attempt to solve
$$u^2-7v^2=-3,,tag{*}$$
where a minimal solution is $(u,v)=(5,2)$. Since $u^2-7v^2=1$ has the minimal solution $(u,v)=(8,3)$, we obtain an infinite family of solutions $(u,v)$ of (*):
$$u+vsqrt{7}=(5+2sqrt{7}),(8+3sqrt{7})^k,,tag{#}$$
where $k$ is a positive integer. We want $u$ to be odd, so $k=1$ does not work. With $k=2$, we get $(u,v)=(1307,494)$, so $$x=frac{1307-1}{2}=653text{ and }y=frac{494}{2}=13cdot 19$$
form a counterexample. (Using $k=-2$, we get lhf's counterexample $x=18$. Indeed, with even values of $k$ in $(#)$, we obtain infinitely many counterexamples.)






share|cite|improve this answer











$endgroup$













  • $begingroup$
    +1: Very nice solution.
    $endgroup$
    – YiFan
    Dec 20 '18 at 11:50



















5












$begingroup$

The square of any prime $pequiv1pmod3$ appears as a factor of $x^2+x+1$ for some choice of $x$.



This is seen as follows.



The multiplicative group $Bbb{Z}_{p^2}^*$ of coprime residue classes modulo $p^2$ is known to be cyclic of order $p(p-1)$. It follows that there is an element of order three in that group. Let the residue class of $x$ be one such. Because $p>3$ the order of $x$ modulo $p$ is also equal to three. Implying that $x-1$ is not a multiple of $p$. But $$x^3-1=(x-1)(x^2+x+1)equiv1-1=0pmod{p^2}$$
by construction,
so we can conclude that $$x^2+x+1equiv0pmod{p^2}.$$





A non-deterministic way of finding such an $x$ is to take a random integer $a$, and calculate the remainder $x$ of $a^{p(p-1)/3}$ modulo $p^2$. If the result is $xneq1$, then we have found the required element of order three.



For example, with $p=31$, $a=3$ we find that
$$
3^{31(31-1)/3}=3^{310}equiv521pmod{31^2}.
$$

And with $x=521$ we get
$$
521^2+521+1=271963=31^2cdot283
$$

as promised.





On the other hand no prime $pequiv-1pmod3$ will appear as a factor of $x^2+x+1$ for any integer $x>1$. This is because the factorization $(x^3-1)=(x-1)(x^2+x+1)equiv0pmod p$ implies that $x$ has order $1$ or $3$ in the group $Bbb{Z}_p^*$. In the former case $xequiv1pmod3$ and therefore
$x^2+x+1equiv1+1+1=3notequiv0pmod p$. In the latter case Lagrange's theorem from elementary group theory tells us that $3$ must be a factor of the order of the group $G=Bbb{Z}_p^*$. As $|G|=p-1$ we can conclude that $pequiv1pmod3$.





By more or less the same argument we can show that for all $pequiv1pmod3$ the number $x^2+x+1$ can be made divisible by any power $p^k$. This time the group has order $p^{k-1}(p-1)$. As an example consider $p=7,k=5$. The above method produces $$3^{7^4(7-1)/3}equiv1353pmod{7^5}.$$ And, predictably,
$$1353^2+1353+1=7^5cdot109.$$






share|cite|improve this answer











$endgroup$













  • $begingroup$
    can you please explain why a $x^2+x+1$ cannot be factorized yet using integer values for $x$ make the polynomial factorizable.
    $endgroup$
    – user25406
    Dec 21 '18 at 15:02










  • $begingroup$
    @user25406 I don't understand. It can be factored most of the time. The point in my answer is that the square of a chosen prime $p$ is a factor of $x^2+x+1$ for some smartly chosen $x$.
    $endgroup$
    – Jyrki Lahtonen
    Dec 21 '18 at 16:03










  • $begingroup$
    Sorry, I meant the polynomial $x^2+x+1$ is irreducible yet integers can be found that makes the polynomial "factorizable". It seems strange to me.
    $endgroup$
    – user25406
    Dec 22 '18 at 0:34






  • 1




    $begingroup$
    @user25406 Why would those two be so closely linked? True, if $p(x)$ is not irreducible, say $p(x)=g(x)h(x)$, then when we plug in an integer $x=a$ it follows that $p(a)=g(a)h(a)$ is not a prime number WITH THE POSSIBLE EXCEPTION when $g(a)$ or $h(a)$ happens to be $pm1$. For example, $x^5-1=(x-1)(x^4+x^3+x^2+x+1)$ is not irreducible as a polynomial, but $2^5-1=31$ is a prime number. Conversely, $f(x)=x^2+1$ is an irreducible polynomial, but $f(a)$ is not a prime when $a>1$ is an odd integer. For in that case $f(a)$ is an even integer $>2$.
    $endgroup$
    – Jyrki Lahtonen
    Dec 22 '18 at 5:12






  • 1




    $begingroup$
    Factorizability of a polynomial and factorizability of its values are only loosely connected.
    $endgroup$
    – Jyrki Lahtonen
    Dec 22 '18 at 5:13



















4












$begingroup$

No, for $x=18$ we get $x^2+x+1=343=7^3$.



Here are the first few counterexamples:



$$
begin{array}{rrl}
x & x^2+x+1 & text{factorization}\
18 & 343 & 7^3 \
22 & 507 & 3 cdot 13^2 \
30 & 931 & 7^2 cdot 19 \
67 & 4557 & 3 cdot 7^2 cdot 31 \
68 & 4693 & 13 cdot 19^2 \
79 & 6321 & 3 cdot 7^2 cdot 43 \
116 & 13573 & 7^2 cdot 277 \
128 & 16513 & 7^2 cdot 337 \
146 & 21463 & 13^2 cdot 127 \
165 & 27391 & 7^2 cdot 13 cdot 43 \
177 & 31507 & 7^2 cdot 643 \
191 & 36673 & 7 cdot 13^2 cdot 31 \
214 & 46011 & 3 cdot 7^2 cdot 313 \
end{array}
$$






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%2f3047388%2fdivisor-of-x2x1-can-be-square-number%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    7












    $begingroup$

    What about $x=653$, where
    $$x^2+x+1=427063=7cdot (13cdot 19)^2,?$$
    How did I find this $x$? I first suppose that $x^2+x+1=ay^2$ for some positive integers $a$ and $y$. This means
    $$(2x+1)^2-a(2y)^2=-3,.$$
    Let $u:=2x+1$ and $v:=2y$. Then, we are to solve the Pell-type equation $$u^2-av^2=-3,,$$ where $u,vinmathbb{Z}_{>0}$. In particular, the case $x=2$ yields $a=7$ and $y=1$. Therefore, I attempt to solve
    $$u^2-7v^2=-3,,tag{*}$$
    where a minimal solution is $(u,v)=(5,2)$. Since $u^2-7v^2=1$ has the minimal solution $(u,v)=(8,3)$, we obtain an infinite family of solutions $(u,v)$ of (*):
    $$u+vsqrt{7}=(5+2sqrt{7}),(8+3sqrt{7})^k,,tag{#}$$
    where $k$ is a positive integer. We want $u$ to be odd, so $k=1$ does not work. With $k=2$, we get $(u,v)=(1307,494)$, so $$x=frac{1307-1}{2}=653text{ and }y=frac{494}{2}=13cdot 19$$
    form a counterexample. (Using $k=-2$, we get lhf's counterexample $x=18$. Indeed, with even values of $k$ in $(#)$, we obtain infinitely many counterexamples.)






    share|cite|improve this answer











    $endgroup$













    • $begingroup$
      +1: Very nice solution.
      $endgroup$
      – YiFan
      Dec 20 '18 at 11:50
















    7












    $begingroup$

    What about $x=653$, where
    $$x^2+x+1=427063=7cdot (13cdot 19)^2,?$$
    How did I find this $x$? I first suppose that $x^2+x+1=ay^2$ for some positive integers $a$ and $y$. This means
    $$(2x+1)^2-a(2y)^2=-3,.$$
    Let $u:=2x+1$ and $v:=2y$. Then, we are to solve the Pell-type equation $$u^2-av^2=-3,,$$ where $u,vinmathbb{Z}_{>0}$. In particular, the case $x=2$ yields $a=7$ and $y=1$. Therefore, I attempt to solve
    $$u^2-7v^2=-3,,tag{*}$$
    where a minimal solution is $(u,v)=(5,2)$. Since $u^2-7v^2=1$ has the minimal solution $(u,v)=(8,3)$, we obtain an infinite family of solutions $(u,v)$ of (*):
    $$u+vsqrt{7}=(5+2sqrt{7}),(8+3sqrt{7})^k,,tag{#}$$
    where $k$ is a positive integer. We want $u$ to be odd, so $k=1$ does not work. With $k=2$, we get $(u,v)=(1307,494)$, so $$x=frac{1307-1}{2}=653text{ and }y=frac{494}{2}=13cdot 19$$
    form a counterexample. (Using $k=-2$, we get lhf's counterexample $x=18$. Indeed, with even values of $k$ in $(#)$, we obtain infinitely many counterexamples.)






    share|cite|improve this answer











    $endgroup$













    • $begingroup$
      +1: Very nice solution.
      $endgroup$
      – YiFan
      Dec 20 '18 at 11:50














    7












    7








    7





    $begingroup$

    What about $x=653$, where
    $$x^2+x+1=427063=7cdot (13cdot 19)^2,?$$
    How did I find this $x$? I first suppose that $x^2+x+1=ay^2$ for some positive integers $a$ and $y$. This means
    $$(2x+1)^2-a(2y)^2=-3,.$$
    Let $u:=2x+1$ and $v:=2y$. Then, we are to solve the Pell-type equation $$u^2-av^2=-3,,$$ where $u,vinmathbb{Z}_{>0}$. In particular, the case $x=2$ yields $a=7$ and $y=1$. Therefore, I attempt to solve
    $$u^2-7v^2=-3,,tag{*}$$
    where a minimal solution is $(u,v)=(5,2)$. Since $u^2-7v^2=1$ has the minimal solution $(u,v)=(8,3)$, we obtain an infinite family of solutions $(u,v)$ of (*):
    $$u+vsqrt{7}=(5+2sqrt{7}),(8+3sqrt{7})^k,,tag{#}$$
    where $k$ is a positive integer. We want $u$ to be odd, so $k=1$ does not work. With $k=2$, we get $(u,v)=(1307,494)$, so $$x=frac{1307-1}{2}=653text{ and }y=frac{494}{2}=13cdot 19$$
    form a counterexample. (Using $k=-2$, we get lhf's counterexample $x=18$. Indeed, with even values of $k$ in $(#)$, we obtain infinitely many counterexamples.)






    share|cite|improve this answer











    $endgroup$



    What about $x=653$, where
    $$x^2+x+1=427063=7cdot (13cdot 19)^2,?$$
    How did I find this $x$? I first suppose that $x^2+x+1=ay^2$ for some positive integers $a$ and $y$. This means
    $$(2x+1)^2-a(2y)^2=-3,.$$
    Let $u:=2x+1$ and $v:=2y$. Then, we are to solve the Pell-type equation $$u^2-av^2=-3,,$$ where $u,vinmathbb{Z}_{>0}$. In particular, the case $x=2$ yields $a=7$ and $y=1$. Therefore, I attempt to solve
    $$u^2-7v^2=-3,,tag{*}$$
    where a minimal solution is $(u,v)=(5,2)$. Since $u^2-7v^2=1$ has the minimal solution $(u,v)=(8,3)$, we obtain an infinite family of solutions $(u,v)$ of (*):
    $$u+vsqrt{7}=(5+2sqrt{7}),(8+3sqrt{7})^k,,tag{#}$$
    where $k$ is a positive integer. We want $u$ to be odd, so $k=1$ does not work. With $k=2$, we get $(u,v)=(1307,494)$, so $$x=frac{1307-1}{2}=653text{ and }y=frac{494}{2}=13cdot 19$$
    form a counterexample. (Using $k=-2$, we get lhf's counterexample $x=18$. Indeed, with even values of $k$ in $(#)$, we obtain infinitely many counterexamples.)







    share|cite|improve this answer














    share|cite|improve this answer



    share|cite|improve this answer








    edited Dec 20 '18 at 11:39

























    answered Dec 20 '18 at 10:44









    BatominovskiBatominovski

    33.1k33293




    33.1k33293












    • $begingroup$
      +1: Very nice solution.
      $endgroup$
      – YiFan
      Dec 20 '18 at 11:50


















    • $begingroup$
      +1: Very nice solution.
      $endgroup$
      – YiFan
      Dec 20 '18 at 11:50
















    $begingroup$
    +1: Very nice solution.
    $endgroup$
    – YiFan
    Dec 20 '18 at 11:50




    $begingroup$
    +1: Very nice solution.
    $endgroup$
    – YiFan
    Dec 20 '18 at 11:50











    5












    $begingroup$

    The square of any prime $pequiv1pmod3$ appears as a factor of $x^2+x+1$ for some choice of $x$.



    This is seen as follows.



    The multiplicative group $Bbb{Z}_{p^2}^*$ of coprime residue classes modulo $p^2$ is known to be cyclic of order $p(p-1)$. It follows that there is an element of order three in that group. Let the residue class of $x$ be one such. Because $p>3$ the order of $x$ modulo $p$ is also equal to three. Implying that $x-1$ is not a multiple of $p$. But $$x^3-1=(x-1)(x^2+x+1)equiv1-1=0pmod{p^2}$$
    by construction,
    so we can conclude that $$x^2+x+1equiv0pmod{p^2}.$$





    A non-deterministic way of finding such an $x$ is to take a random integer $a$, and calculate the remainder $x$ of $a^{p(p-1)/3}$ modulo $p^2$. If the result is $xneq1$, then we have found the required element of order three.



    For example, with $p=31$, $a=3$ we find that
    $$
    3^{31(31-1)/3}=3^{310}equiv521pmod{31^2}.
    $$

    And with $x=521$ we get
    $$
    521^2+521+1=271963=31^2cdot283
    $$

    as promised.





    On the other hand no prime $pequiv-1pmod3$ will appear as a factor of $x^2+x+1$ for any integer $x>1$. This is because the factorization $(x^3-1)=(x-1)(x^2+x+1)equiv0pmod p$ implies that $x$ has order $1$ or $3$ in the group $Bbb{Z}_p^*$. In the former case $xequiv1pmod3$ and therefore
    $x^2+x+1equiv1+1+1=3notequiv0pmod p$. In the latter case Lagrange's theorem from elementary group theory tells us that $3$ must be a factor of the order of the group $G=Bbb{Z}_p^*$. As $|G|=p-1$ we can conclude that $pequiv1pmod3$.





    By more or less the same argument we can show that for all $pequiv1pmod3$ the number $x^2+x+1$ can be made divisible by any power $p^k$. This time the group has order $p^{k-1}(p-1)$. As an example consider $p=7,k=5$. The above method produces $$3^{7^4(7-1)/3}equiv1353pmod{7^5}.$$ And, predictably,
    $$1353^2+1353+1=7^5cdot109.$$






    share|cite|improve this answer











    $endgroup$













    • $begingroup$
      can you please explain why a $x^2+x+1$ cannot be factorized yet using integer values for $x$ make the polynomial factorizable.
      $endgroup$
      – user25406
      Dec 21 '18 at 15:02










    • $begingroup$
      @user25406 I don't understand. It can be factored most of the time. The point in my answer is that the square of a chosen prime $p$ is a factor of $x^2+x+1$ for some smartly chosen $x$.
      $endgroup$
      – Jyrki Lahtonen
      Dec 21 '18 at 16:03










    • $begingroup$
      Sorry, I meant the polynomial $x^2+x+1$ is irreducible yet integers can be found that makes the polynomial "factorizable". It seems strange to me.
      $endgroup$
      – user25406
      Dec 22 '18 at 0:34






    • 1




      $begingroup$
      @user25406 Why would those two be so closely linked? True, if $p(x)$ is not irreducible, say $p(x)=g(x)h(x)$, then when we plug in an integer $x=a$ it follows that $p(a)=g(a)h(a)$ is not a prime number WITH THE POSSIBLE EXCEPTION when $g(a)$ or $h(a)$ happens to be $pm1$. For example, $x^5-1=(x-1)(x^4+x^3+x^2+x+1)$ is not irreducible as a polynomial, but $2^5-1=31$ is a prime number. Conversely, $f(x)=x^2+1$ is an irreducible polynomial, but $f(a)$ is not a prime when $a>1$ is an odd integer. For in that case $f(a)$ is an even integer $>2$.
      $endgroup$
      – Jyrki Lahtonen
      Dec 22 '18 at 5:12






    • 1




      $begingroup$
      Factorizability of a polynomial and factorizability of its values are only loosely connected.
      $endgroup$
      – Jyrki Lahtonen
      Dec 22 '18 at 5:13
















    5












    $begingroup$

    The square of any prime $pequiv1pmod3$ appears as a factor of $x^2+x+1$ for some choice of $x$.



    This is seen as follows.



    The multiplicative group $Bbb{Z}_{p^2}^*$ of coprime residue classes modulo $p^2$ is known to be cyclic of order $p(p-1)$. It follows that there is an element of order three in that group. Let the residue class of $x$ be one such. Because $p>3$ the order of $x$ modulo $p$ is also equal to three. Implying that $x-1$ is not a multiple of $p$. But $$x^3-1=(x-1)(x^2+x+1)equiv1-1=0pmod{p^2}$$
    by construction,
    so we can conclude that $$x^2+x+1equiv0pmod{p^2}.$$





    A non-deterministic way of finding such an $x$ is to take a random integer $a$, and calculate the remainder $x$ of $a^{p(p-1)/3}$ modulo $p^2$. If the result is $xneq1$, then we have found the required element of order three.



    For example, with $p=31$, $a=3$ we find that
    $$
    3^{31(31-1)/3}=3^{310}equiv521pmod{31^2}.
    $$

    And with $x=521$ we get
    $$
    521^2+521+1=271963=31^2cdot283
    $$

    as promised.





    On the other hand no prime $pequiv-1pmod3$ will appear as a factor of $x^2+x+1$ for any integer $x>1$. This is because the factorization $(x^3-1)=(x-1)(x^2+x+1)equiv0pmod p$ implies that $x$ has order $1$ or $3$ in the group $Bbb{Z}_p^*$. In the former case $xequiv1pmod3$ and therefore
    $x^2+x+1equiv1+1+1=3notequiv0pmod p$. In the latter case Lagrange's theorem from elementary group theory tells us that $3$ must be a factor of the order of the group $G=Bbb{Z}_p^*$. As $|G|=p-1$ we can conclude that $pequiv1pmod3$.





    By more or less the same argument we can show that for all $pequiv1pmod3$ the number $x^2+x+1$ can be made divisible by any power $p^k$. This time the group has order $p^{k-1}(p-1)$. As an example consider $p=7,k=5$. The above method produces $$3^{7^4(7-1)/3}equiv1353pmod{7^5}.$$ And, predictably,
    $$1353^2+1353+1=7^5cdot109.$$






    share|cite|improve this answer











    $endgroup$













    • $begingroup$
      can you please explain why a $x^2+x+1$ cannot be factorized yet using integer values for $x$ make the polynomial factorizable.
      $endgroup$
      – user25406
      Dec 21 '18 at 15:02










    • $begingroup$
      @user25406 I don't understand. It can be factored most of the time. The point in my answer is that the square of a chosen prime $p$ is a factor of $x^2+x+1$ for some smartly chosen $x$.
      $endgroup$
      – Jyrki Lahtonen
      Dec 21 '18 at 16:03










    • $begingroup$
      Sorry, I meant the polynomial $x^2+x+1$ is irreducible yet integers can be found that makes the polynomial "factorizable". It seems strange to me.
      $endgroup$
      – user25406
      Dec 22 '18 at 0:34






    • 1




      $begingroup$
      @user25406 Why would those two be so closely linked? True, if $p(x)$ is not irreducible, say $p(x)=g(x)h(x)$, then when we plug in an integer $x=a$ it follows that $p(a)=g(a)h(a)$ is not a prime number WITH THE POSSIBLE EXCEPTION when $g(a)$ or $h(a)$ happens to be $pm1$. For example, $x^5-1=(x-1)(x^4+x^3+x^2+x+1)$ is not irreducible as a polynomial, but $2^5-1=31$ is a prime number. Conversely, $f(x)=x^2+1$ is an irreducible polynomial, but $f(a)$ is not a prime when $a>1$ is an odd integer. For in that case $f(a)$ is an even integer $>2$.
      $endgroup$
      – Jyrki Lahtonen
      Dec 22 '18 at 5:12






    • 1




      $begingroup$
      Factorizability of a polynomial and factorizability of its values are only loosely connected.
      $endgroup$
      – Jyrki Lahtonen
      Dec 22 '18 at 5:13














    5












    5








    5





    $begingroup$

    The square of any prime $pequiv1pmod3$ appears as a factor of $x^2+x+1$ for some choice of $x$.



    This is seen as follows.



    The multiplicative group $Bbb{Z}_{p^2}^*$ of coprime residue classes modulo $p^2$ is known to be cyclic of order $p(p-1)$. It follows that there is an element of order three in that group. Let the residue class of $x$ be one such. Because $p>3$ the order of $x$ modulo $p$ is also equal to three. Implying that $x-1$ is not a multiple of $p$. But $$x^3-1=(x-1)(x^2+x+1)equiv1-1=0pmod{p^2}$$
    by construction,
    so we can conclude that $$x^2+x+1equiv0pmod{p^2}.$$





    A non-deterministic way of finding such an $x$ is to take a random integer $a$, and calculate the remainder $x$ of $a^{p(p-1)/3}$ modulo $p^2$. If the result is $xneq1$, then we have found the required element of order three.



    For example, with $p=31$, $a=3$ we find that
    $$
    3^{31(31-1)/3}=3^{310}equiv521pmod{31^2}.
    $$

    And with $x=521$ we get
    $$
    521^2+521+1=271963=31^2cdot283
    $$

    as promised.





    On the other hand no prime $pequiv-1pmod3$ will appear as a factor of $x^2+x+1$ for any integer $x>1$. This is because the factorization $(x^3-1)=(x-1)(x^2+x+1)equiv0pmod p$ implies that $x$ has order $1$ or $3$ in the group $Bbb{Z}_p^*$. In the former case $xequiv1pmod3$ and therefore
    $x^2+x+1equiv1+1+1=3notequiv0pmod p$. In the latter case Lagrange's theorem from elementary group theory tells us that $3$ must be a factor of the order of the group $G=Bbb{Z}_p^*$. As $|G|=p-1$ we can conclude that $pequiv1pmod3$.





    By more or less the same argument we can show that for all $pequiv1pmod3$ the number $x^2+x+1$ can be made divisible by any power $p^k$. This time the group has order $p^{k-1}(p-1)$. As an example consider $p=7,k=5$. The above method produces $$3^{7^4(7-1)/3}equiv1353pmod{7^5}.$$ And, predictably,
    $$1353^2+1353+1=7^5cdot109.$$






    share|cite|improve this answer











    $endgroup$



    The square of any prime $pequiv1pmod3$ appears as a factor of $x^2+x+1$ for some choice of $x$.



    This is seen as follows.



    The multiplicative group $Bbb{Z}_{p^2}^*$ of coprime residue classes modulo $p^2$ is known to be cyclic of order $p(p-1)$. It follows that there is an element of order three in that group. Let the residue class of $x$ be one such. Because $p>3$ the order of $x$ modulo $p$ is also equal to three. Implying that $x-1$ is not a multiple of $p$. But $$x^3-1=(x-1)(x^2+x+1)equiv1-1=0pmod{p^2}$$
    by construction,
    so we can conclude that $$x^2+x+1equiv0pmod{p^2}.$$





    A non-deterministic way of finding such an $x$ is to take a random integer $a$, and calculate the remainder $x$ of $a^{p(p-1)/3}$ modulo $p^2$. If the result is $xneq1$, then we have found the required element of order three.



    For example, with $p=31$, $a=3$ we find that
    $$
    3^{31(31-1)/3}=3^{310}equiv521pmod{31^2}.
    $$

    And with $x=521$ we get
    $$
    521^2+521+1=271963=31^2cdot283
    $$

    as promised.





    On the other hand no prime $pequiv-1pmod3$ will appear as a factor of $x^2+x+1$ for any integer $x>1$. This is because the factorization $(x^3-1)=(x-1)(x^2+x+1)equiv0pmod p$ implies that $x$ has order $1$ or $3$ in the group $Bbb{Z}_p^*$. In the former case $xequiv1pmod3$ and therefore
    $x^2+x+1equiv1+1+1=3notequiv0pmod p$. In the latter case Lagrange's theorem from elementary group theory tells us that $3$ must be a factor of the order of the group $G=Bbb{Z}_p^*$. As $|G|=p-1$ we can conclude that $pequiv1pmod3$.





    By more or less the same argument we can show that for all $pequiv1pmod3$ the number $x^2+x+1$ can be made divisible by any power $p^k$. This time the group has order $p^{k-1}(p-1)$. As an example consider $p=7,k=5$. The above method produces $$3^{7^4(7-1)/3}equiv1353pmod{7^5}.$$ And, predictably,
    $$1353^2+1353+1=7^5cdot109.$$







    share|cite|improve this answer














    share|cite|improve this answer



    share|cite|improve this answer








    edited Dec 20 '18 at 11:56

























    answered Dec 20 '18 at 11:33









    Jyrki LahtonenJyrki Lahtonen

    109k13169372




    109k13169372












    • $begingroup$
      can you please explain why a $x^2+x+1$ cannot be factorized yet using integer values for $x$ make the polynomial factorizable.
      $endgroup$
      – user25406
      Dec 21 '18 at 15:02










    • $begingroup$
      @user25406 I don't understand. It can be factored most of the time. The point in my answer is that the square of a chosen prime $p$ is a factor of $x^2+x+1$ for some smartly chosen $x$.
      $endgroup$
      – Jyrki Lahtonen
      Dec 21 '18 at 16:03










    • $begingroup$
      Sorry, I meant the polynomial $x^2+x+1$ is irreducible yet integers can be found that makes the polynomial "factorizable". It seems strange to me.
      $endgroup$
      – user25406
      Dec 22 '18 at 0:34






    • 1




      $begingroup$
      @user25406 Why would those two be so closely linked? True, if $p(x)$ is not irreducible, say $p(x)=g(x)h(x)$, then when we plug in an integer $x=a$ it follows that $p(a)=g(a)h(a)$ is not a prime number WITH THE POSSIBLE EXCEPTION when $g(a)$ or $h(a)$ happens to be $pm1$. For example, $x^5-1=(x-1)(x^4+x^3+x^2+x+1)$ is not irreducible as a polynomial, but $2^5-1=31$ is a prime number. Conversely, $f(x)=x^2+1$ is an irreducible polynomial, but $f(a)$ is not a prime when $a>1$ is an odd integer. For in that case $f(a)$ is an even integer $>2$.
      $endgroup$
      – Jyrki Lahtonen
      Dec 22 '18 at 5:12






    • 1




      $begingroup$
      Factorizability of a polynomial and factorizability of its values are only loosely connected.
      $endgroup$
      – Jyrki Lahtonen
      Dec 22 '18 at 5:13


















    • $begingroup$
      can you please explain why a $x^2+x+1$ cannot be factorized yet using integer values for $x$ make the polynomial factorizable.
      $endgroup$
      – user25406
      Dec 21 '18 at 15:02










    • $begingroup$
      @user25406 I don't understand. It can be factored most of the time. The point in my answer is that the square of a chosen prime $p$ is a factor of $x^2+x+1$ for some smartly chosen $x$.
      $endgroup$
      – Jyrki Lahtonen
      Dec 21 '18 at 16:03










    • $begingroup$
      Sorry, I meant the polynomial $x^2+x+1$ is irreducible yet integers can be found that makes the polynomial "factorizable". It seems strange to me.
      $endgroup$
      – user25406
      Dec 22 '18 at 0:34






    • 1




      $begingroup$
      @user25406 Why would those two be so closely linked? True, if $p(x)$ is not irreducible, say $p(x)=g(x)h(x)$, then when we plug in an integer $x=a$ it follows that $p(a)=g(a)h(a)$ is not a prime number WITH THE POSSIBLE EXCEPTION when $g(a)$ or $h(a)$ happens to be $pm1$. For example, $x^5-1=(x-1)(x^4+x^3+x^2+x+1)$ is not irreducible as a polynomial, but $2^5-1=31$ is a prime number. Conversely, $f(x)=x^2+1$ is an irreducible polynomial, but $f(a)$ is not a prime when $a>1$ is an odd integer. For in that case $f(a)$ is an even integer $>2$.
      $endgroup$
      – Jyrki Lahtonen
      Dec 22 '18 at 5:12






    • 1




      $begingroup$
      Factorizability of a polynomial and factorizability of its values are only loosely connected.
      $endgroup$
      – Jyrki Lahtonen
      Dec 22 '18 at 5:13
















    $begingroup$
    can you please explain why a $x^2+x+1$ cannot be factorized yet using integer values for $x$ make the polynomial factorizable.
    $endgroup$
    – user25406
    Dec 21 '18 at 15:02




    $begingroup$
    can you please explain why a $x^2+x+1$ cannot be factorized yet using integer values for $x$ make the polynomial factorizable.
    $endgroup$
    – user25406
    Dec 21 '18 at 15:02












    $begingroup$
    @user25406 I don't understand. It can be factored most of the time. The point in my answer is that the square of a chosen prime $p$ is a factor of $x^2+x+1$ for some smartly chosen $x$.
    $endgroup$
    – Jyrki Lahtonen
    Dec 21 '18 at 16:03




    $begingroup$
    @user25406 I don't understand. It can be factored most of the time. The point in my answer is that the square of a chosen prime $p$ is a factor of $x^2+x+1$ for some smartly chosen $x$.
    $endgroup$
    – Jyrki Lahtonen
    Dec 21 '18 at 16:03












    $begingroup$
    Sorry, I meant the polynomial $x^2+x+1$ is irreducible yet integers can be found that makes the polynomial "factorizable". It seems strange to me.
    $endgroup$
    – user25406
    Dec 22 '18 at 0:34




    $begingroup$
    Sorry, I meant the polynomial $x^2+x+1$ is irreducible yet integers can be found that makes the polynomial "factorizable". It seems strange to me.
    $endgroup$
    – user25406
    Dec 22 '18 at 0:34




    1




    1




    $begingroup$
    @user25406 Why would those two be so closely linked? True, if $p(x)$ is not irreducible, say $p(x)=g(x)h(x)$, then when we plug in an integer $x=a$ it follows that $p(a)=g(a)h(a)$ is not a prime number WITH THE POSSIBLE EXCEPTION when $g(a)$ or $h(a)$ happens to be $pm1$. For example, $x^5-1=(x-1)(x^4+x^3+x^2+x+1)$ is not irreducible as a polynomial, but $2^5-1=31$ is a prime number. Conversely, $f(x)=x^2+1$ is an irreducible polynomial, but $f(a)$ is not a prime when $a>1$ is an odd integer. For in that case $f(a)$ is an even integer $>2$.
    $endgroup$
    – Jyrki Lahtonen
    Dec 22 '18 at 5:12




    $begingroup$
    @user25406 Why would those two be so closely linked? True, if $p(x)$ is not irreducible, say $p(x)=g(x)h(x)$, then when we plug in an integer $x=a$ it follows that $p(a)=g(a)h(a)$ is not a prime number WITH THE POSSIBLE EXCEPTION when $g(a)$ or $h(a)$ happens to be $pm1$. For example, $x^5-1=(x-1)(x^4+x^3+x^2+x+1)$ is not irreducible as a polynomial, but $2^5-1=31$ is a prime number. Conversely, $f(x)=x^2+1$ is an irreducible polynomial, but $f(a)$ is not a prime when $a>1$ is an odd integer. For in that case $f(a)$ is an even integer $>2$.
    $endgroup$
    – Jyrki Lahtonen
    Dec 22 '18 at 5:12




    1




    1




    $begingroup$
    Factorizability of a polynomial and factorizability of its values are only loosely connected.
    $endgroup$
    – Jyrki Lahtonen
    Dec 22 '18 at 5:13




    $begingroup$
    Factorizability of a polynomial and factorizability of its values are only loosely connected.
    $endgroup$
    – Jyrki Lahtonen
    Dec 22 '18 at 5:13











    4












    $begingroup$

    No, for $x=18$ we get $x^2+x+1=343=7^3$.



    Here are the first few counterexamples:



    $$
    begin{array}{rrl}
    x & x^2+x+1 & text{factorization}\
    18 & 343 & 7^3 \
    22 & 507 & 3 cdot 13^2 \
    30 & 931 & 7^2 cdot 19 \
    67 & 4557 & 3 cdot 7^2 cdot 31 \
    68 & 4693 & 13 cdot 19^2 \
    79 & 6321 & 3 cdot 7^2 cdot 43 \
    116 & 13573 & 7^2 cdot 277 \
    128 & 16513 & 7^2 cdot 337 \
    146 & 21463 & 13^2 cdot 127 \
    165 & 27391 & 7^2 cdot 13 cdot 43 \
    177 & 31507 & 7^2 cdot 643 \
    191 & 36673 & 7 cdot 13^2 cdot 31 \
    214 & 46011 & 3 cdot 7^2 cdot 313 \
    end{array}
    $$






    share|cite|improve this answer











    $endgroup$


















      4












      $begingroup$

      No, for $x=18$ we get $x^2+x+1=343=7^3$.



      Here are the first few counterexamples:



      $$
      begin{array}{rrl}
      x & x^2+x+1 & text{factorization}\
      18 & 343 & 7^3 \
      22 & 507 & 3 cdot 13^2 \
      30 & 931 & 7^2 cdot 19 \
      67 & 4557 & 3 cdot 7^2 cdot 31 \
      68 & 4693 & 13 cdot 19^2 \
      79 & 6321 & 3 cdot 7^2 cdot 43 \
      116 & 13573 & 7^2 cdot 277 \
      128 & 16513 & 7^2 cdot 337 \
      146 & 21463 & 13^2 cdot 127 \
      165 & 27391 & 7^2 cdot 13 cdot 43 \
      177 & 31507 & 7^2 cdot 643 \
      191 & 36673 & 7 cdot 13^2 cdot 31 \
      214 & 46011 & 3 cdot 7^2 cdot 313 \
      end{array}
      $$






      share|cite|improve this answer











      $endgroup$
















        4












        4








        4





        $begingroup$

        No, for $x=18$ we get $x^2+x+1=343=7^3$.



        Here are the first few counterexamples:



        $$
        begin{array}{rrl}
        x & x^2+x+1 & text{factorization}\
        18 & 343 & 7^3 \
        22 & 507 & 3 cdot 13^2 \
        30 & 931 & 7^2 cdot 19 \
        67 & 4557 & 3 cdot 7^2 cdot 31 \
        68 & 4693 & 13 cdot 19^2 \
        79 & 6321 & 3 cdot 7^2 cdot 43 \
        116 & 13573 & 7^2 cdot 277 \
        128 & 16513 & 7^2 cdot 337 \
        146 & 21463 & 13^2 cdot 127 \
        165 & 27391 & 7^2 cdot 13 cdot 43 \
        177 & 31507 & 7^2 cdot 643 \
        191 & 36673 & 7 cdot 13^2 cdot 31 \
        214 & 46011 & 3 cdot 7^2 cdot 313 \
        end{array}
        $$






        share|cite|improve this answer











        $endgroup$



        No, for $x=18$ we get $x^2+x+1=343=7^3$.



        Here are the first few counterexamples:



        $$
        begin{array}{rrl}
        x & x^2+x+1 & text{factorization}\
        18 & 343 & 7^3 \
        22 & 507 & 3 cdot 13^2 \
        30 & 931 & 7^2 cdot 19 \
        67 & 4557 & 3 cdot 7^2 cdot 31 \
        68 & 4693 & 13 cdot 19^2 \
        79 & 6321 & 3 cdot 7^2 cdot 43 \
        116 & 13573 & 7^2 cdot 277 \
        128 & 16513 & 7^2 cdot 337 \
        146 & 21463 & 13^2 cdot 127 \
        165 & 27391 & 7^2 cdot 13 cdot 43 \
        177 & 31507 & 7^2 cdot 643 \
        191 & 36673 & 7 cdot 13^2 cdot 31 \
        214 & 46011 & 3 cdot 7^2 cdot 313 \
        end{array}
        $$







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Dec 20 '18 at 11:20

























        answered Dec 20 '18 at 10:58









        lhflhf

        165k10171396




        165k10171396






























            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%2f3047388%2fdivisor-of-x2x1-can-be-square-number%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

            Ellipse (mathématiques)

            Quarter-circle Tiles

            Mont Emei