Problem 1780 · Medium

Check if Number is a Sum of Powers of Three

Decide whether n is a sum of distinct powers of three.

Open the interactive visualisation