[CSC 330] Quick Clarification on Collatz

Andrew J. Pounds pounds_aj at mercer.edu
Wed Dec 1 15:40:03 EST 2021


So on your collatz project you program should take ONE INPUT -- which 
will be the maximum number (which will not exceed 5 billion) to use for 
your program.  For example, if I ran my program an put in 100 for the 
largest integer, I would calculate the collatz sequences between 1 and 
100 and would get the following output...

  Sorted based on sequence length
                    97                  118
                    73                  115
                    54                  112
                    27                  111
                    82                  110
                    41                  109
                    62                  107
                    31                  106
                    94                  105
                    47                  104
  Sorted based on integer size
                    97                  118
                    94                  105
                    82                  110
                    73                  115
                    62                  107
                    54                  112
                    47                  104
                    41                  109
                    31                  106
                    27                  111

Let me know if you have other questions.


-- 
*Andrew J. Pounds, Ph.D.*
/Professor of Chemistry and Computer Science/
/Director of the Computational Science Program/
/Mercer University, Macon, GA, 31207 (478) 301-5627 /
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://theochem.mercer.edu/pipermail/csc330/attachments/20211201/30a53f2e/attachment.html>


More information about the csc330 mailing list