Problem 45194. Cantor counting
Find the nth cantor's rational number. the sequence is given below in the link. Sequence: 1/1,1/2,2/1,3/1,2/2,1/3,1/4... ... ... for n=5, out=[2,2].
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers36
Suggested Problems
-
Project Euler: Problem 2, Sum of even Fibonacci
2781 Solvers
-
Create an n-by-n null matrix and fill with ones certain positions
682 Solvers
-
Replace secondary diagonal elements of a square array
181 Solvers
-
2194 Solvers
-
Calculate sin(x) without sin(x)
115 Solvers
More from this Author174
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!