# Lill’s Method, Prime Numbers and Tangent of Sum of Angles

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+pn).

If P(x)=xn+an-1xn-1+…+a1x+a0 , then P0P1 represents the coefficient 1 (coefficient of xn ), P1P2 =an-1 ,… PnPn+1 =a0 . Also tan( P1P0Pn+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 an =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)= x2+5x+6. We can see that tan( P1P0P3)=5/(1-6)=5/-5=-1.

To obtain tan(θ1 + θ23 ), let’s consider the polynomial (x+2)(x+3)(x+5)=x3 + 10 x2 + 31x + 30. tan( P1P0P4)=(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 + θ234 ), we’ll consider the polynomial (x+2)(x+3)(x+5)(x+7)=x4 + 17 x3 + 101 x2 + 247 x + 210. tan( P1P0P5)=(17-247)/(1-101+210)=-230/110=-23/11.

Using the same method we get tan(θ1 + θ2345 )=49/132, tan(θ1 + θ23456 )=-353/101 and tan(θ1 + θ234567 )=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”.