def get_carol(n): result = (2**n) - 1 return result * result - 2