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