← Complete problem index

PROJECT EULER · #0337

Totient Stairstep Sequences

Statement only · UnsolvedOriginal problem ↗

Let {a1,a2,,an} be an integer sequence of length n such that:

  • a1=6
  • for all 1i<n: ϕ(ai)<ϕ(ai+1)<ai<ai+1.1

Let S(N) be the number of such sequences with anN.
For example, S(10)=4: {6}, {6,8}, {6,8,9} and {6,10}.
We can verify that S(100)=482073668 and S(10000)mod108=73808307.

Find S(20000000)mod108.

1 ϕ denotes Euler's totient function.

Write-up coming later

The complete problem is available here. An approach, code, and answer will be added later.