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: [141, 38, 200, 197, 58, 164, 108, 167, 121]

Answer: [424, 19, 100, 592, 29, 82, 54, 502, 364]


Question: [71, 2, 164, 191, 21, 62, 163]

Answer: [214, 1, 82, 574, 64, 31, 490]


Question: [75, 97, 196, 74, 100, 34, 17]

Answer:
[226, 292, 98, 37, 50, 17, 52]