PROJECT EULER · #0705
Total Inversion Count of Divided Sequences
The inversion count of a sequence of digits is the smallest number of adjacent pairs that must be swapped to sort the sequence.
For example,
If each digit of a sequence is replaced by one of its divisors a divided sequence is obtained.
For example, the sequence
Define
For example,
Define
You are given
Find
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.