Question 6A function $f$ is given by $f(x)+f\left(1-\frac{1}{x}\right)=1+x$ for $x \in \mathbb{R} \backslash\{0,1\}$. Find a formula for $f$.