Guess the Logic!
logic(1) = 1
logic(2) = 2
logic(3) = 3
logic(4) = 6
logic(5) = 9
logic(6) = 18
logic(7) = 27
logic(8) = 54
Make a function logic(x) which will return value equivalent to logic.

Solution Stats

349 Solutions

206 Solvers

Last Solution submitted on Feb 19, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers206

Suggested Problems

More from this Author40

Community Treasure Hunt

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

Start Hunting!