Create the following sequence : 0 1 1 4 9 25 64 169 ... - MATLAB Cody - MATLAB Central

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

34.4% Correct | 65.6% Incorrect
Last Solution submitted on Apr 27, 2025

Problem Comments

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8

Problem Recent Solvers197

Suggested Problems

More from this Author8

Community Treasure Hunt

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

Start Hunting!