← Complete problem index

PROJECT EULER · #0881

Divisor Graph Width

Statement only · SolvedOriginal problem ↗

For a positive integer n create a graph using its divisors as vertices. An edge is drawn between two vertices a<b if their quotient b/a is prime. The graph can be arranged into levels where vertex n is at level 0 and vertices that are a distance k from n are on level k. Define g(n) to be the maximum number of vertices in a single level.

0881_example45.jpg

The example above shows that g(45)=2. You are also given g(5040)=12.

Find the smallest number, n, such that g(n)104.

Write-up coming later

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