Cody

Problem 2269. Create the following sequence : 0 1 1 4 9 25 64 169 ...

The sequence

 0, 1, 1, 4, 9, 25, 64, 169, ...

represents the square of the sequence of Fibonacci numbers.

Let n represent the number of elements to display and let y represent the sequence of squares of Fibonacci numbers.

Example

 n = 4
 y = [0 1 1 4]

Solution Stats

62.75% Correct | 37.25% Incorrect
Last solution submitted on Sep 20, 2016

Problem Comments

Solution Comments

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Join the 15-year community celebration.

Play games and win prizes!

Learn more