← Complete problem index

PROJECT EULER · #0747

Triangular Pizza

Statement only · UnsolvedOriginal problem ↗

Mamma Triangolo baked a triangular pizza. She wants to cut the pizza into n pieces. She first chooses a point P in the interior (not boundary) of the triangle pizza, and then performs n cuts, which all start from P and extend straight to the boundary of the pizza so that the n pieces are all triangles and all have the same area.

Let ψ(n) be the number of different ways for Mamma Triangolo to cut the pizza, subject to the constraints.
For example, ψ(3)=7.

Also ψ(6)=34, and ψ(10)=90.

Let Ψ(m)=n=3mψ(n). You are given Ψ(10)=345 and Ψ(1000)=172166601.

Find Ψ(108). Give your answer modulo 1000000007.

Write-up coming later

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