For a given value of $n$, how can we find integers $a_0, ..., a_n$ so that $\sum\limits_{k=0}^n a_k x^k$ has $n$ distinct real roots and $S=\sum\limits_{k=0}^n |a_k|$ is minimized?
For the first few smallest values of $n$, I have tried to find the coefficients by trial and error. These polynomials have $n$ distinct real roots, but I'm not sure if $S$ is minimized.
$n=1: x, S=\color{red}{1}$
$n=2: x^2-1$ or $x^2-x, S=\color{red}{2}$
$n=3: x^3-x, S=\color{red}{2}$
$n=4: x^4-2x^2+x, S=\color{red}{4}$
$n=5: x^5-3x^3+x, S=\color{red}{5}$
$n=6: x^6-4x^4+3x^2-x, S=\color{red}{9}$
$n=7: x^7-4x^5+4x^3-x, S=\color{red}{10}$
UPDATE
From the comments:
@Xiangxiang Xu confirmed my conjectured results up to $n=7$ using a Python program.
@Peter Košinár confirmed that for $n=8$, $x^8-3x^7-x^6+7x^5-5x^3+x, S=\color{red}{18}$ is best.
@Martin R confirmed that for $n=9$, $x^9-7x^7+11x^5-6x^3+x, S=\color{red}{26}$ is best.
UPDATE $2$
@Tom Sirgedas at Puzzling found that for $n=10$, $x^{10}-4x^{9}-2x^{8}+14x^{7}+x^{6}-16x^{5}+7x^{3}-x, S=\color{red}{46}$, is best.