Ask Question
28 May, 03:36

Choose any positive integer. Powers of two here are not very interesting, so choose something else. If the number you have chosen is even, divide it by two. If it's odd, multiply it by three and add one. Now, with the result, repeat the same process. If the number is even divide it by two. If it's odd multiply it by three and add one. Keep repeating this process on the outcome. You will generate (*recursively*) a sequence of positive integers.

+2
Answers (1)
  1. 28 May, 03:42
    0
    Step-by-step explanation:

    Let the integer be 6 for even and 7 for odd (say)

    For 6, we divide by 2, now get 3. Now we multiply by 3 and add 1 to get 10. Now since 10 is even divide by 5, now multiply by 3 and add 1 to get 16. Now divide by 2 again by 2 again by 2 again by 2 till we get rid of even numbers.

    The result is 1, so multiply by 3 and add 1 we get 4 now divide 2 times by 2 to get 1, thus this result now again repeats after 2 times.

    Say if we select off number 3, multiply by 3 and add 1 to get 10 now divide by 5, now repeat the same process as above for 5 until we get 1 and it gets repeated every third time.

    Thus whether odd or even after some processes, we get 1 and the process again and again returns to 1.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Choose any positive integer. Powers of two here are not very interesting, so choose something else. If the number you have chosen is even, ...” in 📗 Mathematics if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers