Cody

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].

https://www.google.com/search?q=george+cantor+rational+numbers&sxsrf=ACYBGNRVSQwqht5aNwdOW_gz4u5v5be2Bg:1572821754264&source=lnms&tbm=isch&sa=X&ved=0ahUKEwjpydTPkc_lAhUG8HMBHcyRA5cQ_AUIEigB&biw=1340&bih=722#imgrc=ERbtWs-JE4EhRM:

Solution Stats

66.67% Correct | 33.33% Incorrect
Last Solution submitted on Nov 18, 2019