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

66.67% Correct | 33.33% Incorrect
Last Solution submitted on Dec 14, 2025

Solution Comments

Show comments

Problem Recent Solvers18

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!