#Write a function to calculate the following arithmetic operation and return the result.
A = 2 + (3x)3 + y/2n
(x, y and n are arguments of the function where x is an integer in the range 0 < x <4, y is a positive 8-bit
number and n is an integer in the range ( 0 < n < 7).