Problem 61006. Shapiro Polynomials

Given an order n, return the coefficients of 1st Shapiro polynomials Pn(x) -
%Example
P1(x) = x + 1 => Output = [1 1];
P3(x) = x^7 - x^6 + x^5 + x^4 - x^3 + x^2 + x + 1 => Output = [1 -1 1 1 -1 1 1 1];

Solution Stats

58.82% Correct | 41.18% Incorrect
Last Solution submitted on Jan 26, 2026

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers8

Suggested Problems

More from this Author43

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!