Find and display the first Collatz sequence that is longer than 100 and the first that is longer than 200.
This problem has been solved!
Do you need an answer to a question different from the above? Ask your question!
Question:
only print the results for the two requested sequences - one just larger than 100 in length and one just larger than 200 in length.
For your submission print the sequences for lengths of 1 - 8. Then print the sequences for the two long sequences that your code discovers: the first one of length = 100 and the first one of length = 200.
Related Book For
Systems analysis and design
ISBN: 978-0136089162
8th Edition
Authors: kenneth e. kendall, julie e. kendall
View Solution
Create a free account to access the answer
Cannot find your solution?
Post a FREE question now and get an answer within minutes.
* Average response time.
Posted Date: September 07, 2023 02:58:35