In this task you will be given a list of integers. For every element in the list, if the element is even you should divide by two, if the element is odd you should multiply by three then add one. The output should be a list of integers that is the result of applying that logic to the input list.
--------
Question: [15, 47, 15]

Answer: [46, 142, 46]


Question: [132, 116]

Answer: [66, 58]


Question: [179, 75, 148, 72, 150, 135, 4, 102, 64]

Answer:
[538, 226, 74, 36, 75, 406, 2, 51, 32]