I wish to calculate the following integral:
$$\oint_{\gamma}\bar z^ndz$$
$\gamma$ is a triangle with vertices at $0,1,i$, in the positive direction and $n\in \mathbb Z$.
Since $\bar z^n$ is not analytic, I can't say that the integral is 0, so it has to be calculated manually. I tried to use that $\bar z=x-iy$, but I still could not solve this.