Consider the Gaussian integer . A base representation of a Gaussian integer is a finite sequence of digits such that:
- Each is in
- There are no leading zeroes, i.e. , unless is itself
Here are base representations of a few Gaussian integers:
Remarkably, every Gaussian integer has a unique base representation!
Define as the number of s in the unique base representation of . For example, and .
Define as the sum of for all integers such that and . For example, .
Find .
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.