Solution

Let x=AC=BF, y=AD=BE, and z=AE=BD.
Ptolemy's Theorem on ABCD gives 81y+31⋅81=xz, and Ptolemy on ACDF gives x⋅z+812=y2. Subtracting these equations give y2−81y−112⋅81=0, and from this y=144. Ptolemy on ADEF gives 81y+812=z2, and from this z=135. Finally, plugging back into the first equation gives x=105, so x+y+z=105+144+135=384.
Solution 2
Let θ be the inscribed angle in each of the 5 sides of length 81, so dsinθ=81. Since the inscribed angles sum to π, dsin5θ=dsin(π−5θ)=31.
Now consider the Chebyshev polynomials that put sinθsinnθ in terms of cosθ:
sinθsin2θ=2cosθ,sinθsin3θ=4cos2θ−1
sinθsin4θ=8cos3θ−4cosθ,sinθsin5θ=16cos4θ−12cos2θ+1
The sum of the diagonals is dsin2θ+dsin3θ+dsin4θ, which becomes (dsinθ)(8cos3θ+4cos2θ−2cosθ−1), and we're given 16cos4θ−12cos2θ+1=8131
Solve for cosθ: 16cos4θ−12cos2θ+49=49−8150
(4cos2θ−23)2=324729−324200=(1823)2
8cos2θ−3=923 or −923, so 8cos2θ=950 or 94
cos2θ=3625 or 181, which means cosθ must be 65 if 5θ<π.
Now (dsinθ)(8cos3θ+4cos2θ−2cosθ−1)=81(8⋅216125+4⋅3625−2⋅65−1)
=3(8⋅8125+4⋅475−2⋅245−27)=3(125+75−45−27)=384
Solution 3 (Risky)
This solution refers to the diagram given in Solution 1.
Applying Ptolemy’s Theorem to quadrilateral ADEF, we obtain
81y+812=z2.
Applying Ptolemy’s Theorem to quadrilateral ABCF, we obtain
31y+812=x2.
Since this is an AIME problem and the question asks for the sum of the lengths of the three diagonals, we may assume that all diagonal lengths are integers.
Rewriting the first equation,
81y=z2−812=(z+81)(z−81).
Because both y and z are integers, z must be a multiple of 9. Additionally, we observe that y>z, so we test the smallest such value of z satisfying this condition, namely z=135. Substituting gives
y=811352−812=144.
Substituting y=144 into the second equation,
x2=31(144)+812=11025,
so x=105.
Finally, summing the three diagonal lengths, 105+135+144=384.
~Voidling
Video Solution by OmegaLearn
https://youtu.be/DVuf-uXjfzY?t=522
~ pi_is_3.14