Problem 61019. Find the logic and return the nth number (plus)
This problem is the harder version of Problem 61015
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
note: with this plus version you have to find the Nth number with extremely large N. Because the result can be extremely large, we will take the modulus of the nth number by 1e9+7
eg:
n=5
--> output=9
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers3
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!