Ask Question
25 July, 02:10

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.

+5
Answers (1)
  1. 25 July, 02:46
    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 you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers