Problem 61003. Padovan Polynomials

Hello there. I'm afraid I bear bad news - Anakin Skywalker is no longer a Jedi.
But fear not young Padawan, we shall not falter against the Sith.
For now, you are tasked to generate the coefficients of Padovan Polynomials of a given order n -
(Believe me, this is going to help us fight against the treacherous and evil Sith empire)
P1(x) = 1
output = 1;
P1(x) = 0
output = 0;
P3(x) = x;
output = [1 0];
P5(x) = x^2
output = [1 0 0];
P8(x) = 3*x^2;
output = [3 0 0];
Young Padawan, there will be obstacles on this path. Be wary of them.
(Only vectorized solutions will be accepted. Check the test suite for banned functions)

Solution Stats

53.85% Correct | 46.15% Incorrect
Last Solution submitted on Sep 21, 2025

Solution Comments

Show comments

Problem Recent Solvers5

Suggested Problems

More from this Author40

Problem Tags

Community Treasure Hunt

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

Start Hunting!