Find and display the first Collatz sequence that is longer than 100 and the first that is
Fantastic news! We've Found the answer you've been seeking!
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
Posted Date: