Find all $p in mathbb{Z}$ such that $ p^2+ 4p + 16 $ is a perfect square












1














I've tried some things involving modular residues but they don't seem to work. Anyone know how to do this?










share|cite|improve this question







New contributor




user491842 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • This is a good question, but don't just ask the question in the title; try to make the body as self-contained as possible. Adding exactly what you tried can also benefit people who might answer the question, because we can pick up where you left off :)
    – YiFan
    Jan 4 at 2:30
















1














I've tried some things involving modular residues but they don't seem to work. Anyone know how to do this?










share|cite|improve this question







New contributor




user491842 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • This is a good question, but don't just ask the question in the title; try to make the body as self-contained as possible. Adding exactly what you tried can also benefit people who might answer the question, because we can pick up where you left off :)
    – YiFan
    Jan 4 at 2:30














1












1








1


2





I've tried some things involving modular residues but they don't seem to work. Anyone know how to do this?










share|cite|improve this question







New contributor




user491842 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I've tried some things involving modular residues but they don't seem to work. Anyone know how to do this?







elementary-number-theory






share|cite|improve this question







New contributor




user491842 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|cite|improve this question







New contributor




user491842 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|cite|improve this question




share|cite|improve this question






New contributor




user491842 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Jan 4 at 2:21









user491842user491842

62




62




New contributor




user491842 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





user491842 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






user491842 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • This is a good question, but don't just ask the question in the title; try to make the body as self-contained as possible. Adding exactly what you tried can also benefit people who might answer the question, because we can pick up where you left off :)
    – YiFan
    Jan 4 at 2:30


















  • This is a good question, but don't just ask the question in the title; try to make the body as self-contained as possible. Adding exactly what you tried can also benefit people who might answer the question, because we can pick up where you left off :)
    – YiFan
    Jan 4 at 2:30
















This is a good question, but don't just ask the question in the title; try to make the body as self-contained as possible. Adding exactly what you tried can also benefit people who might answer the question, because we can pick up where you left off :)
– YiFan
Jan 4 at 2:30




This is a good question, but don't just ask the question in the title; try to make the body as self-contained as possible. Adding exactly what you tried can also benefit people who might answer the question, because we can pick up where you left off :)
– YiFan
Jan 4 at 2:30










3 Answers
3






active

oldest

votes


















3














So, we need $(p+2)^2+12=m^2$ for some integer $m$



$-12=(p+2-m)(p+2+m)$



As $p+2-m+p+2+m$ is even, the multiplicands have the same parity $implies $ both must be ven



Consequently, $$dfrac{p+2-m}2cdotdfrac{p+2+m}2=-3=1(-3)=(-1)3$$





Alternatively let $p^2+4p+16=(p+a)^2$ for some integer $a$



$implies p=dfrac{a^2-16}{4-2a}$



$iff-2p=dfrac{a^2-16}{a-2}=a+2-dfrac{12}{2-a}$



$iff12=(2-a)(a+2+2p)$



As $a+2+2p+2-a$ is even, $a+2+2p,2-a$ must have the same parity which must even as $12$ is even



$impliesdfrac{2-a}2cdotdfrac{2+a+2p}2=3=(-3)(-1)=3cdot1$






share|cite|improve this answer































    2














    The first thing you want to do is recognise that the expression is equivalent to $(p+2)^2+12$, which we require to be another perfect square. What this means is that we need two perfect squares which are exactly $12$ apart. Note that the distance between consecutive perfect squares increases as the numbers get larger: $(n+1)^2-n^2=2n+1$ is increasing. Furthermore, distance between non-consecutive perfect squares are even larger than that $(n+k)^2-n^2=2kn+k^2$. But the distance between the perfect squares that we are seeking for is only $12$, a pretty small number: that means the numbers we need to check are very small as well, and in particular, finite. If the numbers get too big, the difference between their squares is surely greater than $12$! Try to see if you can get somewhere with this observation.






    share|cite|improve this answer





























      1














      So $p^2 + 4p + 16 = m^2$



      $p^2 + 4p + 4 =m^2 - 12$



      $(p+2)^2 = m^2 - 12$



      $m^2 - (p+2)^2 = 12$



      $(m + p + 2)(m - p - 2) = 12$



      So $m+p+2 = k$ and $m-p-2 = j$ for two integers so that $kj = 12$.



      Also note, $k + j = 2m$.



      So $k + j$ is even. So ${k,j} = {pm 2, pm 6}$ and .... thats it. All other factors involve an odd number and an even number and will have an odd sum.



      So $2m = pm2 pm 6 =8$ and $m =pm 4$ and $p^2 +4p + 16 = 16$ so $p(p+4) = 0$ so $p= 0$ or $p = -4$.



      ===



      Another alternative. Note that $(n+1)^2 - n^2 = n^2 +2n +1 - n^2 =2n+1$ so that means $n^2 = (n-1)^2 + (2n-1)= (n-2)^2 + (2n-1) + (2n-3) = ...... = (n-n)^2 + (2n-1) + (2n-3) + ..... + 3 + 1= 1 + 3 + 5 + ..... + 2n-1$.



      In other words $n^2 = $ the sum of the first $n$ odd numbers.



      So if $p^2 + 4p + 16 = m^2$ then $(p-2)^2 - m^2 = 12$. But $(p-2)^2$ is the sum of the first $p-2$ odd numbers. And $m^2$ is the sum of the first $m$ odd numbers. So $(p-2)^2 - m^2$ is the sum of the $m + 1$st odd number to the $p-2$ odd number.



      In other words: $12$ is a sum of a sequence of consecutive odd numbers.



      The first such way of doing that is $5 + 7 = 12$. The next such way would need $4$ terms averaging $3$ but the lowest possible value is $1$ and $1 + 3+5 + 7$ is too big.



      So $5 +7 = 12$ is the only option. So $(p-2)^2 = 1+3=4$ and $m^2 = 1+3 + 5+7 = 16$ and $(p-2)^2 - m^2 = 12$ and so $p-2 = pm 2$ and $m =pm 4$.



      So $p =0$ or $4$ are the only solutions.






      share|cite|improve this answer























        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
        });


        }
        });






        user491842 is a new contributor. Be nice, and check out our Code of Conduct.










        draft saved

        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3061245%2ffind-all-p-in-mathbbz-such-that-p2-4p-16-is-a-perfect-square%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









        3














        So, we need $(p+2)^2+12=m^2$ for some integer $m$



        $-12=(p+2-m)(p+2+m)$



        As $p+2-m+p+2+m$ is even, the multiplicands have the same parity $implies $ both must be ven



        Consequently, $$dfrac{p+2-m}2cdotdfrac{p+2+m}2=-3=1(-3)=(-1)3$$





        Alternatively let $p^2+4p+16=(p+a)^2$ for some integer $a$



        $implies p=dfrac{a^2-16}{4-2a}$



        $iff-2p=dfrac{a^2-16}{a-2}=a+2-dfrac{12}{2-a}$



        $iff12=(2-a)(a+2+2p)$



        As $a+2+2p+2-a$ is even, $a+2+2p,2-a$ must have the same parity which must even as $12$ is even



        $impliesdfrac{2-a}2cdotdfrac{2+a+2p}2=3=(-3)(-1)=3cdot1$






        share|cite|improve this answer




























          3














          So, we need $(p+2)^2+12=m^2$ for some integer $m$



          $-12=(p+2-m)(p+2+m)$



          As $p+2-m+p+2+m$ is even, the multiplicands have the same parity $implies $ both must be ven



          Consequently, $$dfrac{p+2-m}2cdotdfrac{p+2+m}2=-3=1(-3)=(-1)3$$





          Alternatively let $p^2+4p+16=(p+a)^2$ for some integer $a$



          $implies p=dfrac{a^2-16}{4-2a}$



          $iff-2p=dfrac{a^2-16}{a-2}=a+2-dfrac{12}{2-a}$



          $iff12=(2-a)(a+2+2p)$



          As $a+2+2p+2-a$ is even, $a+2+2p,2-a$ must have the same parity which must even as $12$ is even



          $impliesdfrac{2-a}2cdotdfrac{2+a+2p}2=3=(-3)(-1)=3cdot1$






          share|cite|improve this answer


























            3












            3








            3






            So, we need $(p+2)^2+12=m^2$ for some integer $m$



            $-12=(p+2-m)(p+2+m)$



            As $p+2-m+p+2+m$ is even, the multiplicands have the same parity $implies $ both must be ven



            Consequently, $$dfrac{p+2-m}2cdotdfrac{p+2+m}2=-3=1(-3)=(-1)3$$





            Alternatively let $p^2+4p+16=(p+a)^2$ for some integer $a$



            $implies p=dfrac{a^2-16}{4-2a}$



            $iff-2p=dfrac{a^2-16}{a-2}=a+2-dfrac{12}{2-a}$



            $iff12=(2-a)(a+2+2p)$



            As $a+2+2p+2-a$ is even, $a+2+2p,2-a$ must have the same parity which must even as $12$ is even



            $impliesdfrac{2-a}2cdotdfrac{2+a+2p}2=3=(-3)(-1)=3cdot1$






            share|cite|improve this answer














            So, we need $(p+2)^2+12=m^2$ for some integer $m$



            $-12=(p+2-m)(p+2+m)$



            As $p+2-m+p+2+m$ is even, the multiplicands have the same parity $implies $ both must be ven



            Consequently, $$dfrac{p+2-m}2cdotdfrac{p+2+m}2=-3=1(-3)=(-1)3$$





            Alternatively let $p^2+4p+16=(p+a)^2$ for some integer $a$



            $implies p=dfrac{a^2-16}{4-2a}$



            $iff-2p=dfrac{a^2-16}{a-2}=a+2-dfrac{12}{2-a}$



            $iff12=(2-a)(a+2+2p)$



            As $a+2+2p+2-a$ is even, $a+2+2p,2-a$ must have the same parity which must even as $12$ is even



            $impliesdfrac{2-a}2cdotdfrac{2+a+2p}2=3=(-3)(-1)=3cdot1$







            share|cite|improve this answer














            share|cite|improve this answer



            share|cite|improve this answer








            edited Jan 4 at 6:34

























            answered Jan 4 at 2:29









            lab bhattacharjeelab bhattacharjee

            223k15156274




            223k15156274























                2














                The first thing you want to do is recognise that the expression is equivalent to $(p+2)^2+12$, which we require to be another perfect square. What this means is that we need two perfect squares which are exactly $12$ apart. Note that the distance between consecutive perfect squares increases as the numbers get larger: $(n+1)^2-n^2=2n+1$ is increasing. Furthermore, distance between non-consecutive perfect squares are even larger than that $(n+k)^2-n^2=2kn+k^2$. But the distance between the perfect squares that we are seeking for is only $12$, a pretty small number: that means the numbers we need to check are very small as well, and in particular, finite. If the numbers get too big, the difference between their squares is surely greater than $12$! Try to see if you can get somewhere with this observation.






                share|cite|improve this answer


























                  2














                  The first thing you want to do is recognise that the expression is equivalent to $(p+2)^2+12$, which we require to be another perfect square. What this means is that we need two perfect squares which are exactly $12$ apart. Note that the distance between consecutive perfect squares increases as the numbers get larger: $(n+1)^2-n^2=2n+1$ is increasing. Furthermore, distance between non-consecutive perfect squares are even larger than that $(n+k)^2-n^2=2kn+k^2$. But the distance between the perfect squares that we are seeking for is only $12$, a pretty small number: that means the numbers we need to check are very small as well, and in particular, finite. If the numbers get too big, the difference between their squares is surely greater than $12$! Try to see if you can get somewhere with this observation.






                  share|cite|improve this answer
























                    2












                    2








                    2






                    The first thing you want to do is recognise that the expression is equivalent to $(p+2)^2+12$, which we require to be another perfect square. What this means is that we need two perfect squares which are exactly $12$ apart. Note that the distance between consecutive perfect squares increases as the numbers get larger: $(n+1)^2-n^2=2n+1$ is increasing. Furthermore, distance between non-consecutive perfect squares are even larger than that $(n+k)^2-n^2=2kn+k^2$. But the distance between the perfect squares that we are seeking for is only $12$, a pretty small number: that means the numbers we need to check are very small as well, and in particular, finite. If the numbers get too big, the difference between their squares is surely greater than $12$! Try to see if you can get somewhere with this observation.






                    share|cite|improve this answer












                    The first thing you want to do is recognise that the expression is equivalent to $(p+2)^2+12$, which we require to be another perfect square. What this means is that we need two perfect squares which are exactly $12$ apart. Note that the distance between consecutive perfect squares increases as the numbers get larger: $(n+1)^2-n^2=2n+1$ is increasing. Furthermore, distance between non-consecutive perfect squares are even larger than that $(n+k)^2-n^2=2kn+k^2$. But the distance between the perfect squares that we are seeking for is only $12$, a pretty small number: that means the numbers we need to check are very small as well, and in particular, finite. If the numbers get too big, the difference between their squares is surely greater than $12$! Try to see if you can get somewhere with this observation.







                    share|cite|improve this answer












                    share|cite|improve this answer



                    share|cite|improve this answer










                    answered Jan 4 at 2:36









                    YiFanYiFan

                    2,6691422




                    2,6691422























                        1














                        So $p^2 + 4p + 16 = m^2$



                        $p^2 + 4p + 4 =m^2 - 12$



                        $(p+2)^2 = m^2 - 12$



                        $m^2 - (p+2)^2 = 12$



                        $(m + p + 2)(m - p - 2) = 12$



                        So $m+p+2 = k$ and $m-p-2 = j$ for two integers so that $kj = 12$.



                        Also note, $k + j = 2m$.



                        So $k + j$ is even. So ${k,j} = {pm 2, pm 6}$ and .... thats it. All other factors involve an odd number and an even number and will have an odd sum.



                        So $2m = pm2 pm 6 =8$ and $m =pm 4$ and $p^2 +4p + 16 = 16$ so $p(p+4) = 0$ so $p= 0$ or $p = -4$.



                        ===



                        Another alternative. Note that $(n+1)^2 - n^2 = n^2 +2n +1 - n^2 =2n+1$ so that means $n^2 = (n-1)^2 + (2n-1)= (n-2)^2 + (2n-1) + (2n-3) = ...... = (n-n)^2 + (2n-1) + (2n-3) + ..... + 3 + 1= 1 + 3 + 5 + ..... + 2n-1$.



                        In other words $n^2 = $ the sum of the first $n$ odd numbers.



                        So if $p^2 + 4p + 16 = m^2$ then $(p-2)^2 - m^2 = 12$. But $(p-2)^2$ is the sum of the first $p-2$ odd numbers. And $m^2$ is the sum of the first $m$ odd numbers. So $(p-2)^2 - m^2$ is the sum of the $m + 1$st odd number to the $p-2$ odd number.



                        In other words: $12$ is a sum of a sequence of consecutive odd numbers.



                        The first such way of doing that is $5 + 7 = 12$. The next such way would need $4$ terms averaging $3$ but the lowest possible value is $1$ and $1 + 3+5 + 7$ is too big.



                        So $5 +7 = 12$ is the only option. So $(p-2)^2 = 1+3=4$ and $m^2 = 1+3 + 5+7 = 16$ and $(p-2)^2 - m^2 = 12$ and so $p-2 = pm 2$ and $m =pm 4$.



                        So $p =0$ or $4$ are the only solutions.






                        share|cite|improve this answer




























                          1














                          So $p^2 + 4p + 16 = m^2$



                          $p^2 + 4p + 4 =m^2 - 12$



                          $(p+2)^2 = m^2 - 12$



                          $m^2 - (p+2)^2 = 12$



                          $(m + p + 2)(m - p - 2) = 12$



                          So $m+p+2 = k$ and $m-p-2 = j$ for two integers so that $kj = 12$.



                          Also note, $k + j = 2m$.



                          So $k + j$ is even. So ${k,j} = {pm 2, pm 6}$ and .... thats it. All other factors involve an odd number and an even number and will have an odd sum.



                          So $2m = pm2 pm 6 =8$ and $m =pm 4$ and $p^2 +4p + 16 = 16$ so $p(p+4) = 0$ so $p= 0$ or $p = -4$.



                          ===



                          Another alternative. Note that $(n+1)^2 - n^2 = n^2 +2n +1 - n^2 =2n+1$ so that means $n^2 = (n-1)^2 + (2n-1)= (n-2)^2 + (2n-1) + (2n-3) = ...... = (n-n)^2 + (2n-1) + (2n-3) + ..... + 3 + 1= 1 + 3 + 5 + ..... + 2n-1$.



                          In other words $n^2 = $ the sum of the first $n$ odd numbers.



                          So if $p^2 + 4p + 16 = m^2$ then $(p-2)^2 - m^2 = 12$. But $(p-2)^2$ is the sum of the first $p-2$ odd numbers. And $m^2$ is the sum of the first $m$ odd numbers. So $(p-2)^2 - m^2$ is the sum of the $m + 1$st odd number to the $p-2$ odd number.



                          In other words: $12$ is a sum of a sequence of consecutive odd numbers.



                          The first such way of doing that is $5 + 7 = 12$. The next such way would need $4$ terms averaging $3$ but the lowest possible value is $1$ and $1 + 3+5 + 7$ is too big.



                          So $5 +7 = 12$ is the only option. So $(p-2)^2 = 1+3=4$ and $m^2 = 1+3 + 5+7 = 16$ and $(p-2)^2 - m^2 = 12$ and so $p-2 = pm 2$ and $m =pm 4$.



                          So $p =0$ or $4$ are the only solutions.






                          share|cite|improve this answer


























                            1












                            1








                            1






                            So $p^2 + 4p + 16 = m^2$



                            $p^2 + 4p + 4 =m^2 - 12$



                            $(p+2)^2 = m^2 - 12$



                            $m^2 - (p+2)^2 = 12$



                            $(m + p + 2)(m - p - 2) = 12$



                            So $m+p+2 = k$ and $m-p-2 = j$ for two integers so that $kj = 12$.



                            Also note, $k + j = 2m$.



                            So $k + j$ is even. So ${k,j} = {pm 2, pm 6}$ and .... thats it. All other factors involve an odd number and an even number and will have an odd sum.



                            So $2m = pm2 pm 6 =8$ and $m =pm 4$ and $p^2 +4p + 16 = 16$ so $p(p+4) = 0$ so $p= 0$ or $p = -4$.



                            ===



                            Another alternative. Note that $(n+1)^2 - n^2 = n^2 +2n +1 - n^2 =2n+1$ so that means $n^2 = (n-1)^2 + (2n-1)= (n-2)^2 + (2n-1) + (2n-3) = ...... = (n-n)^2 + (2n-1) + (2n-3) + ..... + 3 + 1= 1 + 3 + 5 + ..... + 2n-1$.



                            In other words $n^2 = $ the sum of the first $n$ odd numbers.



                            So if $p^2 + 4p + 16 = m^2$ then $(p-2)^2 - m^2 = 12$. But $(p-2)^2$ is the sum of the first $p-2$ odd numbers. And $m^2$ is the sum of the first $m$ odd numbers. So $(p-2)^2 - m^2$ is the sum of the $m + 1$st odd number to the $p-2$ odd number.



                            In other words: $12$ is a sum of a sequence of consecutive odd numbers.



                            The first such way of doing that is $5 + 7 = 12$. The next such way would need $4$ terms averaging $3$ but the lowest possible value is $1$ and $1 + 3+5 + 7$ is too big.



                            So $5 +7 = 12$ is the only option. So $(p-2)^2 = 1+3=4$ and $m^2 = 1+3 + 5+7 = 16$ and $(p-2)^2 - m^2 = 12$ and so $p-2 = pm 2$ and $m =pm 4$.



                            So $p =0$ or $4$ are the only solutions.






                            share|cite|improve this answer














                            So $p^2 + 4p + 16 = m^2$



                            $p^2 + 4p + 4 =m^2 - 12$



                            $(p+2)^2 = m^2 - 12$



                            $m^2 - (p+2)^2 = 12$



                            $(m + p + 2)(m - p - 2) = 12$



                            So $m+p+2 = k$ and $m-p-2 = j$ for two integers so that $kj = 12$.



                            Also note, $k + j = 2m$.



                            So $k + j$ is even. So ${k,j} = {pm 2, pm 6}$ and .... thats it. All other factors involve an odd number and an even number and will have an odd sum.



                            So $2m = pm2 pm 6 =8$ and $m =pm 4$ and $p^2 +4p + 16 = 16$ so $p(p+4) = 0$ so $p= 0$ or $p = -4$.



                            ===



                            Another alternative. Note that $(n+1)^2 - n^2 = n^2 +2n +1 - n^2 =2n+1$ so that means $n^2 = (n-1)^2 + (2n-1)= (n-2)^2 + (2n-1) + (2n-3) = ...... = (n-n)^2 + (2n-1) + (2n-3) + ..... + 3 + 1= 1 + 3 + 5 + ..... + 2n-1$.



                            In other words $n^2 = $ the sum of the first $n$ odd numbers.



                            So if $p^2 + 4p + 16 = m^2$ then $(p-2)^2 - m^2 = 12$. But $(p-2)^2$ is the sum of the first $p-2$ odd numbers. And $m^2$ is the sum of the first $m$ odd numbers. So $(p-2)^2 - m^2$ is the sum of the $m + 1$st odd number to the $p-2$ odd number.



                            In other words: $12$ is a sum of a sequence of consecutive odd numbers.



                            The first such way of doing that is $5 + 7 = 12$. The next such way would need $4$ terms averaging $3$ but the lowest possible value is $1$ and $1 + 3+5 + 7$ is too big.



                            So $5 +7 = 12$ is the only option. So $(p-2)^2 = 1+3=4$ and $m^2 = 1+3 + 5+7 = 16$ and $(p-2)^2 - m^2 = 12$ and so $p-2 = pm 2$ and $m =pm 4$.



                            So $p =0$ or $4$ are the only solutions.







                            share|cite|improve this answer














                            share|cite|improve this answer



                            share|cite|improve this answer








                            edited Jan 4 at 4:44

























                            answered Jan 4 at 2:51









                            fleabloodfleablood

                            68.4k22685




                            68.4k22685






















                                user491842 is a new contributor. Be nice, and check out our Code of Conduct.










                                draft saved

                                draft discarded


















                                user491842 is a new contributor. Be nice, and check out our Code of Conduct.













                                user491842 is a new contributor. Be nice, and check out our Code of Conduct.












                                user491842 is a new contributor. Be nice, and check out our Code of Conduct.
















                                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.





                                Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                                Please pay close attention to the following guidance:


                                • 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.


                                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%2f3061245%2ffind-all-p-in-mathbbz-such-that-p2-4p-16-is-a-perfect-square%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

                                1300-talet

                                1300-talet

                                Display a custom attribute below product name in the front-end Magento 1.9.3.8