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 4, if the element is odd you should multiply by 4 then add 2. The output should be a list of numbers that is the result of applying that logic to the input list. You should not round any decimals in the output. Zero should be counted as an even integer.

Q: [97, 41, 63, -46, 29]

A: [390, 166, 254, -11.5, 118]
****
Q: [77, 38, 62, -49, -74, 21, -58, 60, -25]

A: [310, 9.5, 15.5, -194, -18.5, 86, -14.5, 15.0, -98]
****
Q: [-59, 26, 17, -5, 39, -96, -64, -28]

A:
[-234, 6.5, 70, -18, 158, -24.0, -16.0, -7.0]
****