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]: [51, 190, 32, 87]
[A]: [154, 95, 16, 262]


[Q]: [153, 163, 144, 162, 118, 99, 184]
[A]: [460, 490, 72, 81, 59, 298, 92]


[Q]: [165, 156, 86, 171, 36, 131, 130, 62, 80]
[A]:
[496, 78, 43, 514, 18, 394, 65, 31, 40]