Find the pattern for the following sequence:
pat(1) = 1
pat(2) = 9
pat(3) = 25
pat(7) = 169
Create a function which satisfies the pattern shown above.
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers259
Suggested Problems
-
2564 Solvers
-
1843 Solvers
-
Return unique values without sorting
1024 Solvers
-
Number of 1s in a binary string
11560 Solvers
-
Longest run of consecutive numbers
6741 Solvers
More from this Author180
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!