5 lines
283 B
Python
5 lines
283 B
Python
"""
|
|
The Collatz conjecture states that if you start with any positive integer n, and if n is even, divide it by 2; if n is
|
|
odd, multiply it by 3 and add 1. Repeat the process. The sequence will always eventually reach 1. Write a program to
|
|
print this sequence for a given number.
|
|
""" |