Write a function that takes an input number n and produces a sequence (i.e., all values up to and including the nth value) computed with
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers7
Suggested Problems
-
Return a list sorted by number of consecutive occurrences
432 Solvers
-
Project Euler: Problem 18, Maximum path sum I
144 Solvers
-
Highly divisible triangular number (inspired by Project Euler 12)
164 Solvers
-
94 Solvers
-
Easy Sequences 1: Find the index of an element
52 Solvers
More from this Author323
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Hi Chris. I think a couple of changes need to be made in the problem description. First, there is a sign error in the definition of a(n). Second, it should say that the function, with argument 'n', is supposed to return an array of values a(1:n) and not just a single value.
Thanks William. I made those changes.