1.8 KiB
1.8 KiB
id | challengeType | title | forumTopicId |
---|---|---|---|
5900f5461000cf542c510058 | 5 | Problem 473: Phigital number base | 302150 |
Description
To represent this sum of powers of \varphi
we use a string of 0's and 1's with a point to indicate where the negative exponents start.
We call this the representation in the phigital numberbase.
So 1=1_{\varphi}
, 2=10.01_{\varphi}
, 3=100.01_{\varphi}
and 14=100100.001001_{\varphi}
.
The strings representing 1, 2 and 14 in the phigital number base are palindromic, while the string representing 3 is not. (the phigital point is not the middle character).
The sum of the positive integers not exceeding 1000 whose phigital representation is palindromic is 4345.
Find the sum of the positive integers not exceeding 10^{10}
whose phigital representation is palindromic.
Instructions
Tests
tests:
- text: <code>euler473()</code> should return 35856681704365.
testString: assert.strictEqual(euler473(), 35856681704365);
Challenge Seed
function euler473() {
// Good luck!
return true;
}
euler473();
Solution
// solution required