Mamma Triangolo baked a triangular pizza. She wants to cut the pizza into pieces. She first chooses a point in the interior (not boundary) of the triangle pizza, and then performs cuts, which all start from and extend straight to the boundary of the pizza so that the pieces are all triangles and all have the same area.
Let be the number of different ways for Mamma Triangolo to cut the pizza, subject to the constraints.
For example, .
Also , and .
Let . You are given and .
Find . Give your answer modulo .
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.