(In reply to
re: solution  answer for base 9 seems wrong by Charlie)
Of course, the formula for base 9 neglected that 81 is also less than 82. The formula should have included a term for a denominator of 81:
floor((floor(82/3) + floor(82/9) + floor(82/27) + floor(82/81)/2) = 20

Posted by Charlie
on 20211130 09:44:34 