PROJECT EULER · #0558
Irrational Base
Let
Every positive integer can be written as the sum of distinct increasing powers of
If we require the number of terms to be finite and the difference between any two exponents to be three or more, then the representation is unique.
For example,
Interestingly, the relation holds for the complex roots of the equation.
Let
More formally, for all positive integers
under the conditions that:
Let
You are given
Find
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.