Let $P(x)$ be a cubic polynomial such that $P(0) = -3$ and $P(1) = 4.$  When $P(x)$ is divided by $x^2 + x + 1,$ the remainder is $2x - 1.$  What is the quotient when $P(x)$ is divided by $x^2 + x + 1$?
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Let $P(x)$ be a cubic polynomial such that $P(0) = -3$ and $P(1) = 4.$  When $P(x)$ is divided by $x^2 + x + 1,$ the remainder is $2x - 1.$  What is the quotient when $P(x)$ is divided by $x^2 + x + 1$?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
3x - 2
Let $P(x)$ be a cubic polynomial such that $P(0) = -3$ and $P(1) = 4.$  When $P(x)$ is divided by $x^2 + x + 1,$ the remainder is $2x - 1.$  What is the quotient when $P(x)$ is divided by $x^2 + x + 1$?
train