Let \(f(x)=x^{2016}\pm x^{2015}\pm \ldots \pm x \pm 1\) be a monic polynomial whose non-leading coefficients are either 1 or \(-1\). If \(f(x)\) has no real roots, what is the maximal number of coefficients \(-1\) the polynomial \(f(x)\) can have?

Excel in math and science

Master concepts by solving fun, challenging problems.

It's hard to learn from lectures and videos

Learn more effectively through short, interactive explorations.

Used and loved by over 6 million people

Learn from a vibrant community of students and enthusiasts,
including olympiad champions, researchers, and professionals.

Your answer seems reasonable.
Find out if you're right!