PUZZLE IBM-286
Representation of numbers using powers of 2 and 3
IBM Research · Ponder This · 2022-02
IBM Ponder This #286 · February 2022
It is well known that every natural number can be uniquely written as the sum of powers of 2, e.g.,
However, if we allow the representation of numbers as a sum of the product of a power of 2 and a power of 3, it is possible to find for every number a representation where for each pair of summands, none divides the other, e.g.,
Let’s look at the number 10100100101110110000. That’s a 20-digit number in base 10, whose digits consist only of 1s and 0s, with a leading 1. It can be represented in the above method as [(41, 2), (30, 12), (29, 13), (26, 19), (20, 23), (13, 28), (12, 31), (4, 37)].
Your goal: Find a number with exactly 200 decimal digits, consisting only of the digits 1 and 0 with a leading 1, that can be represented by a sum of less than 150 summands. Write your solution in two lines: The first consisting of the number itself, and the second consisting of the list of powers, in the list format given above.
A bonus "*" will be given for finding a 300-digit number with a sum of less than 215 summands.
Solution
Best opened after a real attemptTo be added.