Sequences with divisibility












1














A sequence is such that $a_o =1, a_1= 1, a_{n+1}
=a_{n}a_{n-1}+1$
so we have to comment on divisibilty of $a_{2007} $ by 4.



I found out first few values in sequence as
1,1,2,3,7,22, .... which told me that only $a_{3n} $ is even.
But can there be some other elaborative method?










share|cite|improve this question





























    1














    A sequence is such that $a_o =1, a_1= 1, a_{n+1}
    =a_{n}a_{n-1}+1$
    so we have to comment on divisibilty of $a_{2007} $ by 4.



    I found out first few values in sequence as
    1,1,2,3,7,22, .... which told me that only $a_{3n} $ is even.
    But can there be some other elaborative method?










    share|cite|improve this question



























      1












      1








      1







      A sequence is such that $a_o =1, a_1= 1, a_{n+1}
      =a_{n}a_{n-1}+1$
      so we have to comment on divisibilty of $a_{2007} $ by 4.



      I found out first few values in sequence as
      1,1,2,3,7,22, .... which told me that only $a_{3n} $ is even.
      But can there be some other elaborative method?










      share|cite|improve this question















      A sequence is such that $a_o =1, a_1= 1, a_{n+1}
      =a_{n}a_{n-1}+1$
      so we have to comment on divisibilty of $a_{2007} $ by 4.



      I found out first few values in sequence as
      1,1,2,3,7,22, .... which told me that only $a_{3n} $ is even.
      But can there be some other elaborative method?







      sequences-and-series






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Dec 26 '18 at 17:51









      Bernard

      118k639112




      118k639112










      asked Dec 26 '18 at 17:42









      maveric

      67611




      67611






















          3 Answers
          3






          active

          oldest

          votes


















          2














          The sequence $a_nbmod 4$ is eventually periodic with a readily determined period ...






          share|cite|improve this answer































            1














            Hint $ $ There are $j<k$ with $,(a_j,a_{j+1})equiv (a_k,a_{k+1}),pmod{!4} $ since there are only finitely many such pairs $!bmod {!4}$. The recurrence depends only on the pair of prior values so this leads to cyclic behavior.






            share|cite|improve this answer





















            • For more on this idea see my posts on reinventing the wheel (cycle)
              – Bill Dubuque
              Dec 26 '18 at 18:42





















            0














            Questions regarding divisibility in general are often a lot easier to tackle using modulaic algebra since we don't care about precisely what values the numbers will assume. In case you don't know what the modulo k operator is, it is basically the remainder that you get after you divide a number by k. If a number is divisible by k, so in our case 4, then it is zero in mod 4 since there is no rest.



            So in this case we can translate the first values that you got into mod 4 as follows: 1,1,2,3,3,2 ... Now let's multiply a number in mod 2 by a number in mod 3. These numbers can be written as a=(4c+2) and b=(4d+3), so the result of their multiplication is 4d+6. However, we should add an extra one in the sequence, which will give us 4d+7. As you can verify, this number is indeed 3 in mod 4. Whenever we multiply two numbers that are 3 in mod 4, the next number in the sequence will be 2.



            Therefore we can conjecture that no element in the entire sequence will be divisible by 4 since each one of them will be either 2 or 3 in mod 4.






            share|cite|improve this answer








            New contributor




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


















              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%2f3053142%2fsequences-with-divisibility%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









              2














              The sequence $a_nbmod 4$ is eventually periodic with a readily determined period ...






              share|cite|improve this answer




























                2














                The sequence $a_nbmod 4$ is eventually periodic with a readily determined period ...






                share|cite|improve this answer


























                  2












                  2








                  2






                  The sequence $a_nbmod 4$ is eventually periodic with a readily determined period ...






                  share|cite|improve this answer














                  The sequence $a_nbmod 4$ is eventually periodic with a readily determined period ...







                  share|cite|improve this answer














                  share|cite|improve this answer



                  share|cite|improve this answer








                  edited Dec 26 '18 at 17:49

























                  answered Dec 26 '18 at 17:44









                  Hagen von Eitzen

                  276k21269496




                  276k21269496























                      1














                      Hint $ $ There are $j<k$ with $,(a_j,a_{j+1})equiv (a_k,a_{k+1}),pmod{!4} $ since there are only finitely many such pairs $!bmod {!4}$. The recurrence depends only on the pair of prior values so this leads to cyclic behavior.






                      share|cite|improve this answer





















                      • For more on this idea see my posts on reinventing the wheel (cycle)
                        – Bill Dubuque
                        Dec 26 '18 at 18:42


















                      1














                      Hint $ $ There are $j<k$ with $,(a_j,a_{j+1})equiv (a_k,a_{k+1}),pmod{!4} $ since there are only finitely many such pairs $!bmod {!4}$. The recurrence depends only on the pair of prior values so this leads to cyclic behavior.






                      share|cite|improve this answer





















                      • For more on this idea see my posts on reinventing the wheel (cycle)
                        – Bill Dubuque
                        Dec 26 '18 at 18:42
















                      1












                      1








                      1






                      Hint $ $ There are $j<k$ with $,(a_j,a_{j+1})equiv (a_k,a_{k+1}),pmod{!4} $ since there are only finitely many such pairs $!bmod {!4}$. The recurrence depends only on the pair of prior values so this leads to cyclic behavior.






                      share|cite|improve this answer












                      Hint $ $ There are $j<k$ with $,(a_j,a_{j+1})equiv (a_k,a_{k+1}),pmod{!4} $ since there are only finitely many such pairs $!bmod {!4}$. The recurrence depends only on the pair of prior values so this leads to cyclic behavior.







                      share|cite|improve this answer












                      share|cite|improve this answer



                      share|cite|improve this answer










                      answered Dec 26 '18 at 18:39









                      Bill Dubuque

                      208k29190628




                      208k29190628












                      • For more on this idea see my posts on reinventing the wheel (cycle)
                        – Bill Dubuque
                        Dec 26 '18 at 18:42




















                      • For more on this idea see my posts on reinventing the wheel (cycle)
                        – Bill Dubuque
                        Dec 26 '18 at 18:42


















                      For more on this idea see my posts on reinventing the wheel (cycle)
                      – Bill Dubuque
                      Dec 26 '18 at 18:42






                      For more on this idea see my posts on reinventing the wheel (cycle)
                      – Bill Dubuque
                      Dec 26 '18 at 18:42













                      0














                      Questions regarding divisibility in general are often a lot easier to tackle using modulaic algebra since we don't care about precisely what values the numbers will assume. In case you don't know what the modulo k operator is, it is basically the remainder that you get after you divide a number by k. If a number is divisible by k, so in our case 4, then it is zero in mod 4 since there is no rest.



                      So in this case we can translate the first values that you got into mod 4 as follows: 1,1,2,3,3,2 ... Now let's multiply a number in mod 2 by a number in mod 3. These numbers can be written as a=(4c+2) and b=(4d+3), so the result of their multiplication is 4d+6. However, we should add an extra one in the sequence, which will give us 4d+7. As you can verify, this number is indeed 3 in mod 4. Whenever we multiply two numbers that are 3 in mod 4, the next number in the sequence will be 2.



                      Therefore we can conjecture that no element in the entire sequence will be divisible by 4 since each one of them will be either 2 or 3 in mod 4.






                      share|cite|improve this answer








                      New contributor




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























                        0














                        Questions regarding divisibility in general are often a lot easier to tackle using modulaic algebra since we don't care about precisely what values the numbers will assume. In case you don't know what the modulo k operator is, it is basically the remainder that you get after you divide a number by k. If a number is divisible by k, so in our case 4, then it is zero in mod 4 since there is no rest.



                        So in this case we can translate the first values that you got into mod 4 as follows: 1,1,2,3,3,2 ... Now let's multiply a number in mod 2 by a number in mod 3. These numbers can be written as a=(4c+2) and b=(4d+3), so the result of their multiplication is 4d+6. However, we should add an extra one in the sequence, which will give us 4d+7. As you can verify, this number is indeed 3 in mod 4. Whenever we multiply two numbers that are 3 in mod 4, the next number in the sequence will be 2.



                        Therefore we can conjecture that no element in the entire sequence will be divisible by 4 since each one of them will be either 2 or 3 in mod 4.






                        share|cite|improve this answer








                        New contributor




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





















                          0












                          0








                          0






                          Questions regarding divisibility in general are often a lot easier to tackle using modulaic algebra since we don't care about precisely what values the numbers will assume. In case you don't know what the modulo k operator is, it is basically the remainder that you get after you divide a number by k. If a number is divisible by k, so in our case 4, then it is zero in mod 4 since there is no rest.



                          So in this case we can translate the first values that you got into mod 4 as follows: 1,1,2,3,3,2 ... Now let's multiply a number in mod 2 by a number in mod 3. These numbers can be written as a=(4c+2) and b=(4d+3), so the result of their multiplication is 4d+6. However, we should add an extra one in the sequence, which will give us 4d+7. As you can verify, this number is indeed 3 in mod 4. Whenever we multiply two numbers that are 3 in mod 4, the next number in the sequence will be 2.



                          Therefore we can conjecture that no element in the entire sequence will be divisible by 4 since each one of them will be either 2 or 3 in mod 4.






                          share|cite|improve this answer








                          New contributor




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









                          Questions regarding divisibility in general are often a lot easier to tackle using modulaic algebra since we don't care about precisely what values the numbers will assume. In case you don't know what the modulo k operator is, it is basically the remainder that you get after you divide a number by k. If a number is divisible by k, so in our case 4, then it is zero in mod 4 since there is no rest.



                          So in this case we can translate the first values that you got into mod 4 as follows: 1,1,2,3,3,2 ... Now let's multiply a number in mod 2 by a number in mod 3. These numbers can be written as a=(4c+2) and b=(4d+3), so the result of their multiplication is 4d+6. However, we should add an extra one in the sequence, which will give us 4d+7. As you can verify, this number is indeed 3 in mod 4. Whenever we multiply two numbers that are 3 in mod 4, the next number in the sequence will be 2.



                          Therefore we can conjecture that no element in the entire sequence will be divisible by 4 since each one of them will be either 2 or 3 in mod 4.







                          share|cite|improve this answer








                          New contributor




                          tyler1 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 answer



                          share|cite|improve this answer






                          New contributor




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









                          answered Dec 26 '18 at 18:13









                          tyler1

                          92




                          92




                          New contributor




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





                          New contributor





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






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






























                              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%2f3053142%2fsequences-with-divisibility%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

                              Human spaceflight

                              Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

                              File:DeusFollowingSea.jpg