Problem 61018. Find the logic and return the nth number

  • Created by Le
given a sequence of numbers arranged in the following order:
A=0,1,3,4,9,10,12,13,27,28,30,31,36,37,......
Write a function that takes n as a parameter, we expect the output to be the nth number of this sequence
eg:
n=5
--> output=9

Solution Stats

100.0% Correct | 0.0% Incorrect
Last Solution submitted on Oct 21, 2025

Solution Comments

Show comments

Problem Recent Solvers4

Suggested Problems

More from this Author4

Problem Tags

Community Treasure Hunt

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

Start Hunting!