Pythagorean Quadrilaterals (noch nicht übersetzt)
A pythagorean triangle with catheti a and b and hypotenuse c is characterized by the well-known equation a2+b2=c2. However, this can also be formulated differently:
When inscribed into a circle with radius r, a triangle with sides a, b and c is pythagorean, if and only if a2+b2+c2=8r2.
Analogously, we call a quadrilateral ABCD with sides a, b, c and d, inscribed in a circle with radius r, a pythagorean quadrilateral, if a2+b2+c2+d2=8r2.
We further call a pythagorean quadrilateral a pythagorean lattice grid quadrilateral, if all four vertices are lattice grid points with the same distance r from the origin O (which then happens to be the centre of the circumcircle).
Let f(r) be the number of different pythagorean lattice grid quadrilaterals for which the radius of the circumcircle is r. For example f(1)=1, f(√2)=1, f(√5)=38 and f(5)=167.
Two of the pythagorean lattice grid quadrilaterals with r=√5 are illustrated below:


Let S(n)=∑d|nf(√d). For example, S(325)=S(52⋅13)=f(1)+f(√5)+f(5)+f(√13)+f(√65)+f(5√13)=2370 and S(1105)=S(5⋅13⋅17)=5535.
Find S(1411033124176203125)=S(56⋅133⋅172⋅29⋅37⋅41⋅53⋅61).