PROJECT EULER · #0535
Fractal Sequence
Consider the infinite integer sequence S starting with:
Circle the first occurrence of each integer.
The sequence is characterized by the following properties:
- The circled numbers are consecutive integers starting with
. - Immediately preceding each non-circled numbers
, there are exactly adjacent circled numbers, where is the floor function. - If we remove all circled numbers, the remaining numbers form a sequence identical to
, so is a fractal sequence.
Let
You are given
Find
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.