good naturals in base 3
Source: Canada Repêchage 2024/2 CMOQR
March 25, 2024
number theory
Problem Statement
Call a natural number good if its base expansion has no consecutive digits that are the same. For example, is good since its base representation is . Find the th smallest good number ( is not considered to be a natural number). Your answer should be in base .