C Programming Help (Collatz Conjecture)
Hey so explaining everthing: I have a sequence following the simplerule:
– If the current term is even: the next term is half the currentterm.
– If the current term is odd: the next term is three times thecurrent term, plus 1.
we continue this until we reach one and count each termused.
For example: For he number 17, we have:
17 52 26 13 40 20 10 5 16 8 4 2 1
Hence, the count is 13.
What I specifically need assistance with is that Ineed to find the smallest starting value (number) which has a countover 1234.
ie:
– 1 has count
PayPal Gateway not configured
PayPal Gateway not configured