Using a Do-loop to find divisors mod 13 [on hold]












1












$begingroup$


I want to check sum of divisors of i mod 13 fori = 1 to i = 20. I tried writing a Do-Print loop so it looks like



Do[Print[DivisorSigma[1, i], {i, 20} mod 13] 


Any help will be greatly appreciated,










share|improve this question









New contributor




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







$endgroup$



put on hold as off-topic by Daniel Lichtblau, m_goldberg, MarcoB, eyorble, march 4 hours ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Daniel Lichtblau, m_goldberg, MarcoB, eyorble, march

If this question can be reworded to fit the rules in the help center, please edit the question.





















    1












    $begingroup$


    I want to check sum of divisors of i mod 13 fori = 1 to i = 20. I tried writing a Do-Print loop so it looks like



    Do[Print[DivisorSigma[1, i], {i, 20} mod 13] 


    Any help will be greatly appreciated,










    share|improve this question









    New contributor




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







    $endgroup$



    put on hold as off-topic by Daniel Lichtblau, m_goldberg, MarcoB, eyorble, march 4 hours ago


    This question appears to be off-topic. The users who voted to close gave this specific reason:


    • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Daniel Lichtblau, m_goldberg, MarcoB, eyorble, march

    If this question can be reworded to fit the rules in the help center, please edit the question.



















      1












      1








      1





      $begingroup$


      I want to check sum of divisors of i mod 13 fori = 1 to i = 20. I tried writing a Do-Print loop so it looks like



      Do[Print[DivisorSigma[1, i], {i, 20} mod 13] 


      Any help will be greatly appreciated,










      share|improve this question









      New contributor




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







      $endgroup$




      I want to check sum of divisors of i mod 13 fori = 1 to i = 20. I tried writing a Do-Print loop so it looks like



      Do[Print[DivisorSigma[1, i], {i, 20} mod 13] 


      Any help will be greatly appreciated,







      core-language number-theory






      share|improve this question









      New contributor




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











      share|improve this question









      New contributor




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









      share|improve this question




      share|improve this question








      edited yesterday









      m_goldberg

      86.5k872196




      86.5k872196






      New contributor




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









      asked yesterday









      argamonargamon

      82




      82




      New contributor




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





      New contributor





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






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




      put on hold as off-topic by Daniel Lichtblau, m_goldberg, MarcoB, eyorble, march 4 hours ago


      This question appears to be off-topic. The users who voted to close gave this specific reason:


      • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Daniel Lichtblau, m_goldberg, MarcoB, eyorble, march

      If this question can be reworded to fit the rules in the help center, please edit the question.







      put on hold as off-topic by Daniel Lichtblau, m_goldberg, MarcoB, eyorble, march 4 hours ago


      This question appears to be off-topic. The users who voted to close gave this specific reason:


      • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Daniel Lichtblau, m_goldberg, MarcoB, eyorble, march

      If this question can be reworded to fit the rules in the help center, please edit the question.






















          2 Answers
          2






          active

          oldest

          votes


















          2












          $begingroup$

          Table[DivisorSigma[1, i], {i, 20} ] // Mod[#, 13] &
          (*{1, 3, 4, 7, 6, 12, 8, 2, 0, 5, 12, 2, 1, 11, 11, 5, 5, 0, 7, 3}*)


          or



          Do[Print[Mod[DivisorSigma[1, i], 13]], {i, 20}]


          which gives a column of the same numbers as before that you can look at, but it is more difficult use in further expressions.






          share|improve this answer











          $endgroup$













          • $begingroup$
            thank you so much
            $endgroup$
            – argamon
            yesterday










          • $begingroup$
            You're welcome.
            $endgroup$
            – Bill Watts
            yesterday



















          2












          $begingroup$

          You can do it without iterators because the functions you need (Mod, DivisorSigma) are Listable:



          Mod[DivisorSigma[1, Range[20]], 13]



          {1, 3, 4, 7, 6, 12, 8, 2, 0, 5, 12, 2, 1, 11, 11, 5, 5, 0, 7, 3}




          Note: Listable functions are applied separately to each element in a list.






          share|improve this answer









          $endgroup$













          • $begingroup$
            that's also very useful and helpful thank you
            $endgroup$
            – argamon
            yesterday


















          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2












          $begingroup$

          Table[DivisorSigma[1, i], {i, 20} ] // Mod[#, 13] &
          (*{1, 3, 4, 7, 6, 12, 8, 2, 0, 5, 12, 2, 1, 11, 11, 5, 5, 0, 7, 3}*)


          or



          Do[Print[Mod[DivisorSigma[1, i], 13]], {i, 20}]


          which gives a column of the same numbers as before that you can look at, but it is more difficult use in further expressions.






          share|improve this answer











          $endgroup$













          • $begingroup$
            thank you so much
            $endgroup$
            – argamon
            yesterday










          • $begingroup$
            You're welcome.
            $endgroup$
            – Bill Watts
            yesterday
















          2












          $begingroup$

          Table[DivisorSigma[1, i], {i, 20} ] // Mod[#, 13] &
          (*{1, 3, 4, 7, 6, 12, 8, 2, 0, 5, 12, 2, 1, 11, 11, 5, 5, 0, 7, 3}*)


          or



          Do[Print[Mod[DivisorSigma[1, i], 13]], {i, 20}]


          which gives a column of the same numbers as before that you can look at, but it is more difficult use in further expressions.






          share|improve this answer











          $endgroup$













          • $begingroup$
            thank you so much
            $endgroup$
            – argamon
            yesterday










          • $begingroup$
            You're welcome.
            $endgroup$
            – Bill Watts
            yesterday














          2












          2








          2





          $begingroup$

          Table[DivisorSigma[1, i], {i, 20} ] // Mod[#, 13] &
          (*{1, 3, 4, 7, 6, 12, 8, 2, 0, 5, 12, 2, 1, 11, 11, 5, 5, 0, 7, 3}*)


          or



          Do[Print[Mod[DivisorSigma[1, i], 13]], {i, 20}]


          which gives a column of the same numbers as before that you can look at, but it is more difficult use in further expressions.






          share|improve this answer











          $endgroup$



          Table[DivisorSigma[1, i], {i, 20} ] // Mod[#, 13] &
          (*{1, 3, 4, 7, 6, 12, 8, 2, 0, 5, 12, 2, 1, 11, 11, 5, 5, 0, 7, 3}*)


          or



          Do[Print[Mod[DivisorSigma[1, i], 13]], {i, 20}]


          which gives a column of the same numbers as before that you can look at, but it is more difficult use in further expressions.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited yesterday

























          answered yesterday









          Bill WattsBill Watts

          3,4311620




          3,4311620












          • $begingroup$
            thank you so much
            $endgroup$
            – argamon
            yesterday










          • $begingroup$
            You're welcome.
            $endgroup$
            – Bill Watts
            yesterday


















          • $begingroup$
            thank you so much
            $endgroup$
            – argamon
            yesterday










          • $begingroup$
            You're welcome.
            $endgroup$
            – Bill Watts
            yesterday
















          $begingroup$
          thank you so much
          $endgroup$
          – argamon
          yesterday




          $begingroup$
          thank you so much
          $endgroup$
          – argamon
          yesterday












          $begingroup$
          You're welcome.
          $endgroup$
          – Bill Watts
          yesterday




          $begingroup$
          You're welcome.
          $endgroup$
          – Bill Watts
          yesterday











          2












          $begingroup$

          You can do it without iterators because the functions you need (Mod, DivisorSigma) are Listable:



          Mod[DivisorSigma[1, Range[20]], 13]



          {1, 3, 4, 7, 6, 12, 8, 2, 0, 5, 12, 2, 1, 11, 11, 5, 5, 0, 7, 3}




          Note: Listable functions are applied separately to each element in a list.






          share|improve this answer









          $endgroup$













          • $begingroup$
            that's also very useful and helpful thank you
            $endgroup$
            – argamon
            yesterday
















          2












          $begingroup$

          You can do it without iterators because the functions you need (Mod, DivisorSigma) are Listable:



          Mod[DivisorSigma[1, Range[20]], 13]



          {1, 3, 4, 7, 6, 12, 8, 2, 0, 5, 12, 2, 1, 11, 11, 5, 5, 0, 7, 3}




          Note: Listable functions are applied separately to each element in a list.






          share|improve this answer









          $endgroup$













          • $begingroup$
            that's also very useful and helpful thank you
            $endgroup$
            – argamon
            yesterday














          2












          2








          2





          $begingroup$

          You can do it without iterators because the functions you need (Mod, DivisorSigma) are Listable:



          Mod[DivisorSigma[1, Range[20]], 13]



          {1, 3, 4, 7, 6, 12, 8, 2, 0, 5, 12, 2, 1, 11, 11, 5, 5, 0, 7, 3}




          Note: Listable functions are applied separately to each element in a list.






          share|improve this answer









          $endgroup$



          You can do it without iterators because the functions you need (Mod, DivisorSigma) are Listable:



          Mod[DivisorSigma[1, Range[20]], 13]



          {1, 3, 4, 7, 6, 12, 8, 2, 0, 5, 12, 2, 1, 11, 11, 5, 5, 0, 7, 3}




          Note: Listable functions are applied separately to each element in a list.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered yesterday









          kglrkglr

          185k10202420




          185k10202420












          • $begingroup$
            that's also very useful and helpful thank you
            $endgroup$
            – argamon
            yesterday


















          • $begingroup$
            that's also very useful and helpful thank you
            $endgroup$
            – argamon
            yesterday
















          $begingroup$
          that's also very useful and helpful thank you
          $endgroup$
          – argamon
          yesterday




          $begingroup$
          that's also very useful and helpful thank you
          $endgroup$
          – argamon
          yesterday



          Popular posts from this blog

          How to label and detect the document text images

          Vallis Paradisi

          Tabula Rosettana