Let $Q$ be a polynomial \[Q(x)=a_0+a_1x+\cdots+a_nx^n,\]where $a_0,\ldots,a_n$ are nonnegative integers.  Given that $Q(1)=4$ and $Q(5)=152$, find $Q(6)$.
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Let $Q$ be a polynomial \[Q(x)=a_0+a_1x+\cdots+a_nx^n,\]where $a_0,\ldots,a_n$ are nonnegative integers.  Given that $Q(1)=4$ and $Q(5)=152$, find $Q(6)$.
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
254
Let $Q$ be a polynomial \[Q(x)=a_0+a_1x+\cdots+a_nx^n,\]where $a_0,\ldots,a_n$ are nonnegative integers.  Given that $Q(1)=4$ and $Q(5)=152$, find $Q(6)$.
train