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.

[Q]: [38, 96, 17, 173, 142]
[A]: [19, 48, 52, 520, 71]


[Q]: [192, 187, 27, 59, 6]
[A]: [96, 562, 82, 178, 3]


[Q]: [43, 196, 12, 68, 5, 165]
[A]:
[130, 98, 6, 34, 16, 496]