← Complete problem index

PROJECT EULER · #0388

Distinct Lines

Statement only · SolvedOriginal problem ↗

Consider all lattice points (a,b,c) with 0a,b,cN.

From the origin O(0,0,0) all lines are drawn to the other lattice points.
Let D(N) be the number of distinct such lines.

You are given that D(1000000)=831909254469114121.

Find D(1010). Give as your answer the first nine digits followed by the last nine digits.

Write-up coming later

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