For how many integers \(k\) between 1 and 2017 inclusive can the polynomial
\[\displaystyle 1+x+x^2+x^3 + \cdots +x^k=\sum_{n=0}^{k}x^n\]
be expressed as a product of quadratics with real coefficients?

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!