P388
projecteuler.net

Distinct Lines

ℹ️Published on Saturday, 9th June 2012, 02:00 pm; Solved by 653;
Difficulty rating: 55%

Consider all lattice points $(a,b,c)$ with $0 \le a,b,c \le N$.

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(1\,000\,000) = 831909254469114121$.

Find $D(10^{10})$. Give as your answer the first nine digits followed by the last nine digits.



Soluzione

Last modified: May 01, 2025. Website built with Franklin.jl and the lovely Julia programming language.