Solution 1
Since we are dealing with acute angles, tan(arctana)=a.
Note that tan(arctana+arctanb)=1−aba+b, by tangent addition. Thus, arctana+arctanb=arctan1−aba+b.
Applying this to the first two terms, we get arctan31+arctan41=arctan117.
Now, arctan117+arctan51=arctan2423.
We now have arctan2423+arctann1=4π=arctan1. Thus, 1−24n232423+n1=1; and simplifying, 23n+24=24n−23⟹n=47.
Solution 2 (generalization)
From the expansion of eiAeiBeiCeiD, we can see that
cos(A+B+C+D)=cosAcosBcosCcosD−41sym∑sinAsinBcosCcosD+sinAsinBsinCsinD,
and
sin(A+B+C+D)=cyc∑sinAcosBcosCcosD−cyc∑sinAsinBsinCcosD.
If we divide both of these by cosAcosBcosCcosD, then we have
tan(A+B+C+D)=∑tanA−∑tanAtanBtanC1−∑tanAtanB+tanAtanBtanCtanD,
which makes for more direct, less error-prone computations. Substitution gives the desired answer.
Solution 3: Complex Numbers
Adding a series of angles is the same as multiplying the complex numbers whose arguments they are. In general, arctann1, is the argument of n+i. The sum of these angles is then just the argument of the product
(3+i)(4+i)(5+i)(n+i)
and expansion give us (48n−46)+(48+46n)i. Since the argument of this complex number is 4π, its real and imaginary parts must be equal; then, we can we set them equal to get
48n−46=48+46n.
Therefore, n=47.
Solution 4 Sketch
You could always just bash out sin(a+b+c) (where a,b,c,n are the angles of the triangles respectively) using the sum identities again and again until you get a pretty ugly radical and use a triangle to get cos(a+b+c) and from there you use a sum identity again to get sin(a+b+c+n) and using what we found earlier you can find tan(n) by division that gets us 2423
~YBSuburbanTea