Background
Exercise 17: This exercise shows that factorization in $\Bbb{Q}[x]$ is algorithmic. Let $f(x)\in \mathbb{Z}[x]$ be a polynomial degree $n$. If $f$ is reducible, it has a factor $g$ of degree at most $\lfloor\frac{n}{2} \rfloor$. Take any integers $a_1,\ldots,a_{{\lfloor\frac{n}{2} \rfloor}+1}$. We have that $g(a_i)$ divides $f(a_i)$, so there are only a finite number of possibilities for $g(a_i)$. A polynomial of degree $k$ is determined by its values in $k+1$ points. Thus there are only finitely many possible factors $g$ to test.
Questions
For the above exercise, there are several things that are confusing. The statements:
If $f$ is reducible it has a factor $g$ of degree at most $\lfloor\frac{n}{2} \rfloor\quad (1)$.
Take any integers $a_1,\ldots,a_{{\lfloor\frac{n}{2} \rfloor}+1}\quad (2)$.
A polynomial of degree $k$ is determined by its values in $k+1$ points.
For the statement stated in $(1)$ is that a theorem, I am not sure where did $\lfloor\frac{n}{2} \rfloor$ come from.
For $(2)$, assuming $(1)$ to be true, ${\lfloor\frac{n}{2} \rfloor}+1$ why do we need ${\lfloor\frac{n}{2} \rfloor}+1$ $a_i$? Could it just be as well if we need $i+1$ for $i\in \Bbb{N}$?
For $(3)$ I thought a polynomial of degree $k$ has at most $k$ roots, so we only need $k$ number of points? Or is the author referring to some other math facts?