Posted: Mon Jan 27, 2020 1:24 pm
There's an error in the problem statement. It currently says
It should saythe denominator is a power of 3 i.e. $b=3^k, k>0$.
(The other possible correction, $>$ to $\ge$, doesn't match up with the test cases).the denominator is a power of 3 other than 1, i.e. $b=3^k, k>0$.