PROJECT EULER · #0238
Infinite String Tour
Create a sequence of numbers using the "Blum Blum Shub" pseudo-random number generator:
Concatenate these numbers
Then,
For a positive integer
For instance:
The substrings
with respective sums of digits equal to
start at position
The substrings
with respective sums of digits equal to
start at position
The substrings
with respective sums of digits equal to
start at position
Note that substring
We can verify that, for
Find
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.