logoalt Hacker News

lapetitejort04/23/20250 repliesview on HN

That is correct. I use pseudo-binary to represent the steps the number takes. Simply counting the number of steps is enough to get n, as all steps will have an implicit or explicit even step.