Recall the blancmange function from Problem 226: , where is the distance from to the nearest integer.
For positive integers , we write It can be shown that is always an integer.
For example, , and .
Find . Give your answer modulo .
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.