Problem 2269. Create the following sequence : 0 1 1 4 9 25 64 169 ...
Solution Stats
Problem Comments
-
3 Comments
J.R.! Menzinger
on 8 Apr 2014
you must decide how the input variable is named: 'n', 'nx' or 'x'!! :-/
Ned Gulley
on 8 Apr 2014
I cleaned things up a little.
David Verrelli
on 27 Apr 2018
Hard-coded solutions based on look-up tables for F_n or (F_n)², such as Solution 1506329, should be banned and failed by the Test Suite.
Solution Comments
-
1 Comment
Celestino
on 8 Apr 2014
I do not undertand the problem. If you provide the fibonacci sequence, there is nothing to do.
Problem Recent Solvers85
Suggested Problems
-
Sum all integers from 1 to 2^n
11085 Solvers
-
Project Euler: Problem 6, Natural numbers, squares and sums.
1545 Solvers
-
Create a square matrix of multiples
426 Solvers
-
Return the first and last characters of a character array
6019 Solvers
-
472 Solvers
More from this Author9
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!