Finding elements such that none add to a perfect square












4














Bob asks us to find an infinite set $S$ of positive integers such that the sum of any finite number of distinct elements of S is not a perfect square.



Can Bob's request be fulfilled?



I can find some finite sets, and the sequence A133662 (OEIS) seems to work but I don't know if that sequence is infinite or not.



Maybe if we picked lots of elements with a common property?










share|cite|improve this question



























    4














    Bob asks us to find an infinite set $S$ of positive integers such that the sum of any finite number of distinct elements of S is not a perfect square.



    Can Bob's request be fulfilled?



    I can find some finite sets, and the sequence A133662 (OEIS) seems to work but I don't know if that sequence is infinite or not.



    Maybe if we picked lots of elements with a common property?










    share|cite|improve this question

























      4












      4








      4


      1





      Bob asks us to find an infinite set $S$ of positive integers such that the sum of any finite number of distinct elements of S is not a perfect square.



      Can Bob's request be fulfilled?



      I can find some finite sets, and the sequence A133662 (OEIS) seems to work but I don't know if that sequence is infinite or not.



      Maybe if we picked lots of elements with a common property?










      share|cite|improve this question













      Bob asks us to find an infinite set $S$ of positive integers such that the sum of any finite number of distinct elements of S is not a perfect square.



      Can Bob's request be fulfilled?



      I can find some finite sets, and the sequence A133662 (OEIS) seems to work but I don't know if that sequence is infinite or not.



      Maybe if we picked lots of elements with a common property?







      sequences-and-series number-theory square-numbers sumset






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Dec 23 '18 at 0:03









      user627514

      423




      423






















          2 Answers
          2






          active

          oldest

          votes


















          9














          Pick a prime $p$ and consider $S_p={p,p^3,p^5,cdots}$.



          Let $v_p(n)$ denote the maximal power of $p$ which divides $n$, so $v_3(18)=2$ for example.



          Any finite sum of elements in $S_p$ has the form $m=p^{2a_1+1}+cdots p^{2a_k+1}$ with $a_1<a_2<cdots <a_k$. But we then have $$v_pleft(mright)=v_pleft(p^{2a_1+1}+cdots p^{2a_k+1}right)=2a_1+1$$ which is odd, so $m$ can not be a perfect square.






          share|cite|improve this answer























          • $v_p(m)=2a_k+1$ since $a_1<dots<a_k$. But very nice! I have never seen $v_p$ method used before, do you have some literature about it?
            – user627514
            Dec 23 '18 at 0:12






          • 1




            The notation is fairly standard, at least in the context of valuation theory. But the concept is completely standard. If you take the unique factorization of $m$ then $v_p(m)$ is just the exponent of $p$ in that expression.
            – lulu
            Dec 23 '18 at 0:14



















          6














          Pick any sequence $a_1,a_2,ldots$ which grows fast enough so that $a_1+a_2+ldots a_{n-1}$ is smaller than the distance from $a_n$ up to the next perfect square (and $a_n$ should itself never be a perfect square, of course). That way, any finite sum of terms will have a largest term, and the rest of the terms in the sum won't be enough to reach the next square from there.



          So, for instance, let $a_1=2$. Then we can let $a_2=5$, because the next square from $5$ is $9$, and $2+5<9$.



          From here, $2+5=7$, so the next candidate for $a_3$ is $17$, as the next square up from $17$ is $25$, and you can't reach $25$ from $17$ by adding $2$ and / or $5$.



          We now have $2+5+17=24$, so the next candidate is $170$, as the next square from there is $196$, and $2,5,17$ aren't large enough to reach that high.



          This can continue indefinitely. The gaps between consecutive squares grow, so you can always find a large enough gap to put the next element of your sequence.






          share|cite|improve this answer



















          • 2




            One can, of course, be more compact. For instance, take $a_1=2,a_2=3,a_3=5,a_4=10,ldots$, where each term is the lowest possible number which doesn't allow any sum of terms to be a perfect square. But it quickly becomes tricky to keep track of everything to correctly find the next number in the sequence (and one even has to do an argument similar to the one above to prove that there is always a next term), so I like the approach in the answer better for its simplicity.
            – Arthur
            Dec 23 '18 at 0:31













          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%2f3049953%2ffinding-elements-such-that-none-add-to-a-perfect-square%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









          9














          Pick a prime $p$ and consider $S_p={p,p^3,p^5,cdots}$.



          Let $v_p(n)$ denote the maximal power of $p$ which divides $n$, so $v_3(18)=2$ for example.



          Any finite sum of elements in $S_p$ has the form $m=p^{2a_1+1}+cdots p^{2a_k+1}$ with $a_1<a_2<cdots <a_k$. But we then have $$v_pleft(mright)=v_pleft(p^{2a_1+1}+cdots p^{2a_k+1}right)=2a_1+1$$ which is odd, so $m$ can not be a perfect square.






          share|cite|improve this answer























          • $v_p(m)=2a_k+1$ since $a_1<dots<a_k$. But very nice! I have never seen $v_p$ method used before, do you have some literature about it?
            – user627514
            Dec 23 '18 at 0:12






          • 1




            The notation is fairly standard, at least in the context of valuation theory. But the concept is completely standard. If you take the unique factorization of $m$ then $v_p(m)$ is just the exponent of $p$ in that expression.
            – lulu
            Dec 23 '18 at 0:14
















          9














          Pick a prime $p$ and consider $S_p={p,p^3,p^5,cdots}$.



          Let $v_p(n)$ denote the maximal power of $p$ which divides $n$, so $v_3(18)=2$ for example.



          Any finite sum of elements in $S_p$ has the form $m=p^{2a_1+1}+cdots p^{2a_k+1}$ with $a_1<a_2<cdots <a_k$. But we then have $$v_pleft(mright)=v_pleft(p^{2a_1+1}+cdots p^{2a_k+1}right)=2a_1+1$$ which is odd, so $m$ can not be a perfect square.






          share|cite|improve this answer























          • $v_p(m)=2a_k+1$ since $a_1<dots<a_k$. But very nice! I have never seen $v_p$ method used before, do you have some literature about it?
            – user627514
            Dec 23 '18 at 0:12






          • 1




            The notation is fairly standard, at least in the context of valuation theory. But the concept is completely standard. If you take the unique factorization of $m$ then $v_p(m)$ is just the exponent of $p$ in that expression.
            – lulu
            Dec 23 '18 at 0:14














          9












          9








          9






          Pick a prime $p$ and consider $S_p={p,p^3,p^5,cdots}$.



          Let $v_p(n)$ denote the maximal power of $p$ which divides $n$, so $v_3(18)=2$ for example.



          Any finite sum of elements in $S_p$ has the form $m=p^{2a_1+1}+cdots p^{2a_k+1}$ with $a_1<a_2<cdots <a_k$. But we then have $$v_pleft(mright)=v_pleft(p^{2a_1+1}+cdots p^{2a_k+1}right)=2a_1+1$$ which is odd, so $m$ can not be a perfect square.






          share|cite|improve this answer














          Pick a prime $p$ and consider $S_p={p,p^3,p^5,cdots}$.



          Let $v_p(n)$ denote the maximal power of $p$ which divides $n$, so $v_3(18)=2$ for example.



          Any finite sum of elements in $S_p$ has the form $m=p^{2a_1+1}+cdots p^{2a_k+1}$ with $a_1<a_2<cdots <a_k$. But we then have $$v_pleft(mright)=v_pleft(p^{2a_1+1}+cdots p^{2a_k+1}right)=2a_1+1$$ which is odd, so $m$ can not be a perfect square.







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Dec 23 '18 at 0:14

























          answered Dec 23 '18 at 0:08









          lulu

          39.2k24677




          39.2k24677












          • $v_p(m)=2a_k+1$ since $a_1<dots<a_k$. But very nice! I have never seen $v_p$ method used before, do you have some literature about it?
            – user627514
            Dec 23 '18 at 0:12






          • 1




            The notation is fairly standard, at least in the context of valuation theory. But the concept is completely standard. If you take the unique factorization of $m$ then $v_p(m)$ is just the exponent of $p$ in that expression.
            – lulu
            Dec 23 '18 at 0:14


















          • $v_p(m)=2a_k+1$ since $a_1<dots<a_k$. But very nice! I have never seen $v_p$ method used before, do you have some literature about it?
            – user627514
            Dec 23 '18 at 0:12






          • 1




            The notation is fairly standard, at least in the context of valuation theory. But the concept is completely standard. If you take the unique factorization of $m$ then $v_p(m)$ is just the exponent of $p$ in that expression.
            – lulu
            Dec 23 '18 at 0:14
















          $v_p(m)=2a_k+1$ since $a_1<dots<a_k$. But very nice! I have never seen $v_p$ method used before, do you have some literature about it?
          – user627514
          Dec 23 '18 at 0:12




          $v_p(m)=2a_k+1$ since $a_1<dots<a_k$. But very nice! I have never seen $v_p$ method used before, do you have some literature about it?
          – user627514
          Dec 23 '18 at 0:12




          1




          1




          The notation is fairly standard, at least in the context of valuation theory. But the concept is completely standard. If you take the unique factorization of $m$ then $v_p(m)$ is just the exponent of $p$ in that expression.
          – lulu
          Dec 23 '18 at 0:14




          The notation is fairly standard, at least in the context of valuation theory. But the concept is completely standard. If you take the unique factorization of $m$ then $v_p(m)$ is just the exponent of $p$ in that expression.
          – lulu
          Dec 23 '18 at 0:14











          6














          Pick any sequence $a_1,a_2,ldots$ which grows fast enough so that $a_1+a_2+ldots a_{n-1}$ is smaller than the distance from $a_n$ up to the next perfect square (and $a_n$ should itself never be a perfect square, of course). That way, any finite sum of terms will have a largest term, and the rest of the terms in the sum won't be enough to reach the next square from there.



          So, for instance, let $a_1=2$. Then we can let $a_2=5$, because the next square from $5$ is $9$, and $2+5<9$.



          From here, $2+5=7$, so the next candidate for $a_3$ is $17$, as the next square up from $17$ is $25$, and you can't reach $25$ from $17$ by adding $2$ and / or $5$.



          We now have $2+5+17=24$, so the next candidate is $170$, as the next square from there is $196$, and $2,5,17$ aren't large enough to reach that high.



          This can continue indefinitely. The gaps between consecutive squares grow, so you can always find a large enough gap to put the next element of your sequence.






          share|cite|improve this answer



















          • 2




            One can, of course, be more compact. For instance, take $a_1=2,a_2=3,a_3=5,a_4=10,ldots$, where each term is the lowest possible number which doesn't allow any sum of terms to be a perfect square. But it quickly becomes tricky to keep track of everything to correctly find the next number in the sequence (and one even has to do an argument similar to the one above to prove that there is always a next term), so I like the approach in the answer better for its simplicity.
            – Arthur
            Dec 23 '18 at 0:31


















          6














          Pick any sequence $a_1,a_2,ldots$ which grows fast enough so that $a_1+a_2+ldots a_{n-1}$ is smaller than the distance from $a_n$ up to the next perfect square (and $a_n$ should itself never be a perfect square, of course). That way, any finite sum of terms will have a largest term, and the rest of the terms in the sum won't be enough to reach the next square from there.



          So, for instance, let $a_1=2$. Then we can let $a_2=5$, because the next square from $5$ is $9$, and $2+5<9$.



          From here, $2+5=7$, so the next candidate for $a_3$ is $17$, as the next square up from $17$ is $25$, and you can't reach $25$ from $17$ by adding $2$ and / or $5$.



          We now have $2+5+17=24$, so the next candidate is $170$, as the next square from there is $196$, and $2,5,17$ aren't large enough to reach that high.



          This can continue indefinitely. The gaps between consecutive squares grow, so you can always find a large enough gap to put the next element of your sequence.






          share|cite|improve this answer



















          • 2




            One can, of course, be more compact. For instance, take $a_1=2,a_2=3,a_3=5,a_4=10,ldots$, where each term is the lowest possible number which doesn't allow any sum of terms to be a perfect square. But it quickly becomes tricky to keep track of everything to correctly find the next number in the sequence (and one even has to do an argument similar to the one above to prove that there is always a next term), so I like the approach in the answer better for its simplicity.
            – Arthur
            Dec 23 '18 at 0:31
















          6












          6








          6






          Pick any sequence $a_1,a_2,ldots$ which grows fast enough so that $a_1+a_2+ldots a_{n-1}$ is smaller than the distance from $a_n$ up to the next perfect square (and $a_n$ should itself never be a perfect square, of course). That way, any finite sum of terms will have a largest term, and the rest of the terms in the sum won't be enough to reach the next square from there.



          So, for instance, let $a_1=2$. Then we can let $a_2=5$, because the next square from $5$ is $9$, and $2+5<9$.



          From here, $2+5=7$, so the next candidate for $a_3$ is $17$, as the next square up from $17$ is $25$, and you can't reach $25$ from $17$ by adding $2$ and / or $5$.



          We now have $2+5+17=24$, so the next candidate is $170$, as the next square from there is $196$, and $2,5,17$ aren't large enough to reach that high.



          This can continue indefinitely. The gaps between consecutive squares grow, so you can always find a large enough gap to put the next element of your sequence.






          share|cite|improve this answer














          Pick any sequence $a_1,a_2,ldots$ which grows fast enough so that $a_1+a_2+ldots a_{n-1}$ is smaller than the distance from $a_n$ up to the next perfect square (and $a_n$ should itself never be a perfect square, of course). That way, any finite sum of terms will have a largest term, and the rest of the terms in the sum won't be enough to reach the next square from there.



          So, for instance, let $a_1=2$. Then we can let $a_2=5$, because the next square from $5$ is $9$, and $2+5<9$.



          From here, $2+5=7$, so the next candidate for $a_3$ is $17$, as the next square up from $17$ is $25$, and you can't reach $25$ from $17$ by adding $2$ and / or $5$.



          We now have $2+5+17=24$, so the next candidate is $170$, as the next square from there is $196$, and $2,5,17$ aren't large enough to reach that high.



          This can continue indefinitely. The gaps between consecutive squares grow, so you can always find a large enough gap to put the next element of your sequence.







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Dec 23 '18 at 0:23

























          answered Dec 23 '18 at 0:17









          Arthur

          111k7105186




          111k7105186








          • 2




            One can, of course, be more compact. For instance, take $a_1=2,a_2=3,a_3=5,a_4=10,ldots$, where each term is the lowest possible number which doesn't allow any sum of terms to be a perfect square. But it quickly becomes tricky to keep track of everything to correctly find the next number in the sequence (and one even has to do an argument similar to the one above to prove that there is always a next term), so I like the approach in the answer better for its simplicity.
            – Arthur
            Dec 23 '18 at 0:31
















          • 2




            One can, of course, be more compact. For instance, take $a_1=2,a_2=3,a_3=5,a_4=10,ldots$, where each term is the lowest possible number which doesn't allow any sum of terms to be a perfect square. But it quickly becomes tricky to keep track of everything to correctly find the next number in the sequence (and one even has to do an argument similar to the one above to prove that there is always a next term), so I like the approach in the answer better for its simplicity.
            – Arthur
            Dec 23 '18 at 0:31










          2




          2




          One can, of course, be more compact. For instance, take $a_1=2,a_2=3,a_3=5,a_4=10,ldots$, where each term is the lowest possible number which doesn't allow any sum of terms to be a perfect square. But it quickly becomes tricky to keep track of everything to correctly find the next number in the sequence (and one even has to do an argument similar to the one above to prove that there is always a next term), so I like the approach in the answer better for its simplicity.
          – Arthur
          Dec 23 '18 at 0:31






          One can, of course, be more compact. For instance, take $a_1=2,a_2=3,a_3=5,a_4=10,ldots$, where each term is the lowest possible number which doesn't allow any sum of terms to be a perfect square. But it quickly becomes tricky to keep track of everything to correctly find the next number in the sequence (and one even has to do an argument similar to the one above to prove that there is always a next term), so I like the approach in the answer better for its simplicity.
          – Arthur
          Dec 23 '18 at 0:31




















          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.





          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%2f3049953%2ffinding-elements-such-that-none-add-to-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

          List directoties down one level, excluding some named directories and files

          list processes belonging to a network namespace

          list systemd RuntimeDirectory mounts