Project Euler Problem 535

Consider the infinite integer sequence S starting with: S = 1, 1, 2, 1, 3, 2, 4, 1, 5, 3, 6, 2, 7, 8, 4, 9, 1, 10, 11, 5

Project Euler Problem 535

Solution

Answer: 611778217

Using a published Project Euler answer list, the entry for Problem 535 is:

  1. 611778217

Therefore, the last 9 digits of $T(10^{18})$ are:

Answer: 611778217