Let Q(z) and R(z) be the unique polynomials such that z2022+1=(z2−z+1)Q(z)+R(z) and the degree of R is less than 2. What is R(z)?
z
1
2
−z
z+1