Proving divisibility by $3$

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
3
down vote

favorite












For all integers $a$, there exists an integer $b$ so that $3 | a + b$ and $3 | 2a + b$.



So far I have been able to find an integer $b$ that satisfies both of them separately, but not at the same time. (For the first one I have $b = 6-a$, and for the second I've found $12-2a$)







share|cite|improve this question


















  • 3




    Is it true for $a=1$?
    – Mark Bennet
    Aug 18 at 4:50










  • Such a $b$ exists if and only if $3mid a$ (in which case it can be taken to be $0$).
    – Saucy O'Path
    Aug 18 at 4:51











  • How would I prove that though?
    – mil236
    Aug 18 at 4:52










  • note: $3mid a+b$ and $3mid (a+b+a)$
    – farruhota
    Aug 18 at 7:57














up vote
3
down vote

favorite












For all integers $a$, there exists an integer $b$ so that $3 | a + b$ and $3 | 2a + b$.



So far I have been able to find an integer $b$ that satisfies both of them separately, but not at the same time. (For the first one I have $b = 6-a$, and for the second I've found $12-2a$)







share|cite|improve this question


















  • 3




    Is it true for $a=1$?
    – Mark Bennet
    Aug 18 at 4:50










  • Such a $b$ exists if and only if $3mid a$ (in which case it can be taken to be $0$).
    – Saucy O'Path
    Aug 18 at 4:51











  • How would I prove that though?
    – mil236
    Aug 18 at 4:52










  • note: $3mid a+b$ and $3mid (a+b+a)$
    – farruhota
    Aug 18 at 7:57












up vote
3
down vote

favorite









up vote
3
down vote

favorite











For all integers $a$, there exists an integer $b$ so that $3 | a + b$ and $3 | 2a + b$.



So far I have been able to find an integer $b$ that satisfies both of them separately, but not at the same time. (For the first one I have $b = 6-a$, and for the second I've found $12-2a$)







share|cite|improve this question














For all integers $a$, there exists an integer $b$ so that $3 | a + b$ and $3 | 2a + b$.



So far I have been able to find an integer $b$ that satisfies both of them separately, but not at the same time. (For the first one I have $b = 6-a$, and for the second I've found $12-2a$)









share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Aug 18 at 4:58









apanpapan3

1231211




1231211










asked Aug 18 at 4:43









mil236

211




211







  • 3




    Is it true for $a=1$?
    – Mark Bennet
    Aug 18 at 4:50










  • Such a $b$ exists if and only if $3mid a$ (in which case it can be taken to be $0$).
    – Saucy O'Path
    Aug 18 at 4:51











  • How would I prove that though?
    – mil236
    Aug 18 at 4:52










  • note: $3mid a+b$ and $3mid (a+b+a)$
    – farruhota
    Aug 18 at 7:57












  • 3




    Is it true for $a=1$?
    – Mark Bennet
    Aug 18 at 4:50










  • Such a $b$ exists if and only if $3mid a$ (in which case it can be taken to be $0$).
    – Saucy O'Path
    Aug 18 at 4:51











  • How would I prove that though?
    – mil236
    Aug 18 at 4:52










  • note: $3mid a+b$ and $3mid (a+b+a)$
    – farruhota
    Aug 18 at 7:57







3




3




Is it true for $a=1$?
– Mark Bennet
Aug 18 at 4:50




Is it true for $a=1$?
– Mark Bennet
Aug 18 at 4:50












Such a $b$ exists if and only if $3mid a$ (in which case it can be taken to be $0$).
– Saucy O'Path
Aug 18 at 4:51





Such a $b$ exists if and only if $3mid a$ (in which case it can be taken to be $0$).
– Saucy O'Path
Aug 18 at 4:51













How would I prove that though?
– mil236
Aug 18 at 4:52




How would I prove that though?
– mil236
Aug 18 at 4:52












note: $3mid a+b$ and $3mid (a+b+a)$
– farruhota
Aug 18 at 7:57




note: $3mid a+b$ and $3mid (a+b+a)$
– farruhota
Aug 18 at 7:57










4 Answers
4






active

oldest

votes

















up vote
2
down vote













The statement is not true. Here is a counter example: $a=1$. In order for $3vert a+b$, we must have that $3k = a+b=1+b$ for some integer $k$. On the other hand, in order for $3vert 2a+b$, we must have that $3k' =2a+b= 2+b$ for some integer $k'$. This means that we must have $b=3k-1=3k'-2$ for some integers $k,k'$. This is impossible because $3k-1=3k'-2implies 1=3(k'-k)$ or in other words, that $1$ is a multiple of $3$.






share|cite|improve this answer



























    up vote
    1
    down vote













    Note that if two numbers are both divisible by three, so is their difference. Apply to $a+b$ and $2a+b$ to find that $a$ must be a multiple of $3$. Then $b$ must be a multiple of $3$ too, but any such multiple will do.






    share|cite|improve this answer



























      up vote
      0
      down vote













      Assuming we found a b that satisfies the first condition 3 | (a+b) => (a+b)=3k for some k.
      Substituting b=3k-a into the second condition yields 3 | (2a+b) => 3 | (a+3k) which could only be true if 3 | a.






      share|cite|improve this answer



























        up vote
        0
        down vote













        Divisibilty by 3 can be easily be proved by modular arithmetic.



        Suppose we have a number $A$ which is :



        $A = a_n cdot 10^n+a_n-1 cdot 10^n-1+a_n-2 cdot 10^n-2+ cdots + a_2 cdot 10^2 +a_1 cdot 10+ a_0 $
        We know



        $1 equiv 10 pmod3$



        Therefore we substitute 10 s with 1 s :



        $A = a_n cdot 10^n+a_n-1 cdot 10^n-1+a_n-2 cdot 10^n-2+ cdots + a_2 cdot 10^2 +a_1 cdot 10+ a_0 equiv a_n cdot 1+a_n-1 cdot 1 + a_n-2 cdot 1 + cdots + a_2 cdot 1 +a_1 cdot 1 + a_0$
        You can see that if a number wants to be divisible by 3 sum of all of its digits should be divisible by 3



        Hope that helped!






        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',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          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%2f2886422%2fproving-divisibility-by-3%23new-answer', 'question_page');

          );

          Post as a guest






























          4 Answers
          4






          active

          oldest

          votes








          4 Answers
          4






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote













          The statement is not true. Here is a counter example: $a=1$. In order for $3vert a+b$, we must have that $3k = a+b=1+b$ for some integer $k$. On the other hand, in order for $3vert 2a+b$, we must have that $3k' =2a+b= 2+b$ for some integer $k'$. This means that we must have $b=3k-1=3k'-2$ for some integers $k,k'$. This is impossible because $3k-1=3k'-2implies 1=3(k'-k)$ or in other words, that $1$ is a multiple of $3$.






          share|cite|improve this answer
























            up vote
            2
            down vote













            The statement is not true. Here is a counter example: $a=1$. In order for $3vert a+b$, we must have that $3k = a+b=1+b$ for some integer $k$. On the other hand, in order for $3vert 2a+b$, we must have that $3k' =2a+b= 2+b$ for some integer $k'$. This means that we must have $b=3k-1=3k'-2$ for some integers $k,k'$. This is impossible because $3k-1=3k'-2implies 1=3(k'-k)$ or in other words, that $1$ is a multiple of $3$.






            share|cite|improve this answer






















              up vote
              2
              down vote










              up vote
              2
              down vote









              The statement is not true. Here is a counter example: $a=1$. In order for $3vert a+b$, we must have that $3k = a+b=1+b$ for some integer $k$. On the other hand, in order for $3vert 2a+b$, we must have that $3k' =2a+b= 2+b$ for some integer $k'$. This means that we must have $b=3k-1=3k'-2$ for some integers $k,k'$. This is impossible because $3k-1=3k'-2implies 1=3(k'-k)$ or in other words, that $1$ is a multiple of $3$.






              share|cite|improve this answer












              The statement is not true. Here is a counter example: $a=1$. In order for $3vert a+b$, we must have that $3k = a+b=1+b$ for some integer $k$. On the other hand, in order for $3vert 2a+b$, we must have that $3k' =2a+b= 2+b$ for some integer $k'$. This means that we must have $b=3k-1=3k'-2$ for some integers $k,k'$. This is impossible because $3k-1=3k'-2implies 1=3(k'-k)$ or in other words, that $1$ is a multiple of $3$.







              share|cite|improve this answer












              share|cite|improve this answer



              share|cite|improve this answer










              answered Aug 18 at 4:59









              rikhavshah

              957212




              957212




















                  up vote
                  1
                  down vote













                  Note that if two numbers are both divisible by three, so is their difference. Apply to $a+b$ and $2a+b$ to find that $a$ must be a multiple of $3$. Then $b$ must be a multiple of $3$ too, but any such multiple will do.






                  share|cite|improve this answer
























                    up vote
                    1
                    down vote













                    Note that if two numbers are both divisible by three, so is their difference. Apply to $a+b$ and $2a+b$ to find that $a$ must be a multiple of $3$. Then $b$ must be a multiple of $3$ too, but any such multiple will do.






                    share|cite|improve this answer






















                      up vote
                      1
                      down vote










                      up vote
                      1
                      down vote









                      Note that if two numbers are both divisible by three, so is their difference. Apply to $a+b$ and $2a+b$ to find that $a$ must be a multiple of $3$. Then $b$ must be a multiple of $3$ too, but any such multiple will do.






                      share|cite|improve this answer












                      Note that if two numbers are both divisible by three, so is their difference. Apply to $a+b$ and $2a+b$ to find that $a$ must be a multiple of $3$. Then $b$ must be a multiple of $3$ too, but any such multiple will do.







                      share|cite|improve this answer












                      share|cite|improve this answer



                      share|cite|improve this answer










                      answered Aug 19 at 20:41









                      Mark Bennet

                      76.8k773172




                      76.8k773172




















                          up vote
                          0
                          down vote













                          Assuming we found a b that satisfies the first condition 3 | (a+b) => (a+b)=3k for some k.
                          Substituting b=3k-a into the second condition yields 3 | (2a+b) => 3 | (a+3k) which could only be true if 3 | a.






                          share|cite|improve this answer
























                            up vote
                            0
                            down vote













                            Assuming we found a b that satisfies the first condition 3 | (a+b) => (a+b)=3k for some k.
                            Substituting b=3k-a into the second condition yields 3 | (2a+b) => 3 | (a+3k) which could only be true if 3 | a.






                            share|cite|improve this answer






















                              up vote
                              0
                              down vote










                              up vote
                              0
                              down vote









                              Assuming we found a b that satisfies the first condition 3 | (a+b) => (a+b)=3k for some k.
                              Substituting b=3k-a into the second condition yields 3 | (2a+b) => 3 | (a+3k) which could only be true if 3 | a.






                              share|cite|improve this answer












                              Assuming we found a b that satisfies the first condition 3 | (a+b) => (a+b)=3k for some k.
                              Substituting b=3k-a into the second condition yields 3 | (2a+b) => 3 | (a+3k) which could only be true if 3 | a.







                              share|cite|improve this answer












                              share|cite|improve this answer



                              share|cite|improve this answer










                              answered Aug 18 at 5:04









                              KevB

                              666




                              666




















                                  up vote
                                  0
                                  down vote













                                  Divisibilty by 3 can be easily be proved by modular arithmetic.



                                  Suppose we have a number $A$ which is :



                                  $A = a_n cdot 10^n+a_n-1 cdot 10^n-1+a_n-2 cdot 10^n-2+ cdots + a_2 cdot 10^2 +a_1 cdot 10+ a_0 $
                                  We know



                                  $1 equiv 10 pmod3$



                                  Therefore we substitute 10 s with 1 s :



                                  $A = a_n cdot 10^n+a_n-1 cdot 10^n-1+a_n-2 cdot 10^n-2+ cdots + a_2 cdot 10^2 +a_1 cdot 10+ a_0 equiv a_n cdot 1+a_n-1 cdot 1 + a_n-2 cdot 1 + cdots + a_2 cdot 1 +a_1 cdot 1 + a_0$
                                  You can see that if a number wants to be divisible by 3 sum of all of its digits should be divisible by 3



                                  Hope that helped!






                                  share|cite|improve this answer
























                                    up vote
                                    0
                                    down vote













                                    Divisibilty by 3 can be easily be proved by modular arithmetic.



                                    Suppose we have a number $A$ which is :



                                    $A = a_n cdot 10^n+a_n-1 cdot 10^n-1+a_n-2 cdot 10^n-2+ cdots + a_2 cdot 10^2 +a_1 cdot 10+ a_0 $
                                    We know



                                    $1 equiv 10 pmod3$



                                    Therefore we substitute 10 s with 1 s :



                                    $A = a_n cdot 10^n+a_n-1 cdot 10^n-1+a_n-2 cdot 10^n-2+ cdots + a_2 cdot 10^2 +a_1 cdot 10+ a_0 equiv a_n cdot 1+a_n-1 cdot 1 + a_n-2 cdot 1 + cdots + a_2 cdot 1 +a_1 cdot 1 + a_0$
                                    You can see that if a number wants to be divisible by 3 sum of all of its digits should be divisible by 3



                                    Hope that helped!






                                    share|cite|improve this answer






















                                      up vote
                                      0
                                      down vote










                                      up vote
                                      0
                                      down vote









                                      Divisibilty by 3 can be easily be proved by modular arithmetic.



                                      Suppose we have a number $A$ which is :



                                      $A = a_n cdot 10^n+a_n-1 cdot 10^n-1+a_n-2 cdot 10^n-2+ cdots + a_2 cdot 10^2 +a_1 cdot 10+ a_0 $
                                      We know



                                      $1 equiv 10 pmod3$



                                      Therefore we substitute 10 s with 1 s :



                                      $A = a_n cdot 10^n+a_n-1 cdot 10^n-1+a_n-2 cdot 10^n-2+ cdots + a_2 cdot 10^2 +a_1 cdot 10+ a_0 equiv a_n cdot 1+a_n-1 cdot 1 + a_n-2 cdot 1 + cdots + a_2 cdot 1 +a_1 cdot 1 + a_0$
                                      You can see that if a number wants to be divisible by 3 sum of all of its digits should be divisible by 3



                                      Hope that helped!






                                      share|cite|improve this answer












                                      Divisibilty by 3 can be easily be proved by modular arithmetic.



                                      Suppose we have a number $A$ which is :



                                      $A = a_n cdot 10^n+a_n-1 cdot 10^n-1+a_n-2 cdot 10^n-2+ cdots + a_2 cdot 10^2 +a_1 cdot 10+ a_0 $
                                      We know



                                      $1 equiv 10 pmod3$



                                      Therefore we substitute 10 s with 1 s :



                                      $A = a_n cdot 10^n+a_n-1 cdot 10^n-1+a_n-2 cdot 10^n-2+ cdots + a_2 cdot 10^2 +a_1 cdot 10+ a_0 equiv a_n cdot 1+a_n-1 cdot 1 + a_n-2 cdot 1 + cdots + a_2 cdot 1 +a_1 cdot 1 + a_0$
                                      You can see that if a number wants to be divisible by 3 sum of all of its digits should be divisible by 3



                                      Hope that helped!







                                      share|cite|improve this answer












                                      share|cite|improve this answer



                                      share|cite|improve this answer










                                      answered Aug 18 at 7:27









                                      Abbas

                                      727




                                      727






















                                           

                                          draft saved


                                          draft discarded


























                                           


                                          draft saved


                                          draft discarded














                                          StackExchange.ready(
                                          function ()
                                          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2886422%2fproving-divisibility-by-3%23new-answer', 'question_page');

                                          );

                                          Post as a guest













































































                                          這個網誌中的熱門文章

                                          How to combine Bézier curves to a surface?

                                          Mutual Information Always Non-negative

                                          Why am i infinitely getting the same tweet with the Twitter Search API?