In this post I want to explore again the property discussed in my paper “Lill’s Method and the Sum of Arctangents”. I’ll apply the property to this question: If tan(θ_{1})=2, tan(θ_{2})=3,tan(θ_{3})=5,…,tan(θ_{n})=n-th prime number, then what is tan(θ_{1} + θ_{2} +… θ_{n})?

The question can be easily solved with a calculator. We’ll see that the answer is always a rational number, so I want to obtain the fraction that is equal to the tangent of sum of angles. We’ll also see that the answer can be obtained using the coefficients of polynomial equations and that Lill’s method can provide a visual representation of the answer.

### Polynomial Equations and Lill’s Method

In Lill’s method, each real root x has a corresponding angle θ such that x=-tan(θ). Because of the negative sign before the tangent, it’s more convenient to consider the Polynomials that have -tan(θ_{1})=-2, -tan(θ_{2})=-3,-tan(θ_{3})=-5,…,-tan(θ_{n})=-n-th prime number as roots when we’ll do the Lill representation. These polynomials are of the form (x+2)(x+3)(x+5)…(x+p_{n}).

If P(x)=x^{n}+a_{n-1}x^{n-1}+…+a_{1}x+a_{0} , then P_{0}P_{1} represents the coefficient 1 (coefficient of x^{n} ), P_{1}P_{2} =a_{n-1} ,… P_{n}P_{n+1} =a_{0} . Also tan( P_{1}P_{0}P_{n+1})= tan(θ_{1} + θ_{2} +… θ_{n}). In the next section we’ll see the visual representation using Lill’s method.

Algebraically, the answer can be obtained using the following formula, where a_{n} =1:

### Sequence

By definition tan(θ_{1})=2, so no representation is required. To obtain tan(θ_{1} + θ_{2} ) let’s consider the polynomial (x+2)(x+3)= x^{2}+5x+6. We can see that tan( P_{1}P_{0}P_{3})=5/(1-6)=5/-5=**-1**.

To obtain tan(θ_{1} + θ_{2} +θ_{3} ), let’s consider the polynomial (x+2)(x+3)(x+5)=x^{3} + 10 x^{2} + 31x + 30. tan( P_{1}P_{0}P_{4})=(10-30)/(1-31)=-20/-30=**2/3**.

As the degree increases, we’ll get bigger and bigger spirals rotating counterclockwise. For bigger degrees is easier to just use the algebraic equation mentioned in the previous section. So to obtain tan(θ_{1} + θ_{2} +θ_{3} +θ_{4} ), we’ll consider the polynomial (x+2)(x+3)(x+5)(x+7)=x^{4} + 17 x^{3} + 101 x^{2} + 247 x + 210. tan( P_{1}P_{0}P_{5})=(17-247)/(1-101+210)=-230/110=**-23/11**.

Using the same method we get tan(θ_{1} + θ_{2} +θ_{3} +θ_{4} +θ_{5} )=**49/132**, tan(θ_{1} + θ_{2} +θ_{3} +θ_{4} +θ_{5} +θ_{6} )=**-353/101** and tan(θ_{1} + θ_{2} +θ_{3} +θ_{4} +θ_{5} +θ_{6} +θ_{7} )=**682/3051**.

### Final Notes

We can see that tan(θ_{1}) and tan(θ_{1} + θ_{2} ) are integers. Are there tan(θ_{1} + θ_{2} +… θ_{n}) equal to integers for n>2? Are there tan(θ_{1} + θ_{2} +… θ_{n}) that have the denominator or the numerator equal to 0?

The method used in this post can be used to obtain the OEIS sequences A180657, A220447, A105750 and A105751 if we let tan(θ_{1})=1, tan(θ_{2})=2,tan(θ_{3})=3,…,tan(θ_{n})=n.

In my paper “Representing Polynomials with Complex Coefficients using Lill’s Method” I mentioned that sum of angles property can be extended even to polynomials with complex roots (I might add complex roots and complex coefficients). A more fitting name for the property is probably **“Lill’s sum of root angles property”**.