# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/ Search: id:a183919 Showing 1-1 of 1 %I A183919 #17 Dec 26 2018 16:54:23 %S A183919 1,1,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, %T A183919 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, %U A183919 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 %N A183919 Characteristic sequence for sin(2Pi/n) being rational. %C A183919 The sequence is 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, followed by zeros. %C A183919 In the I. Niven reference a formula for the algebraic degree of 2*sin(2*Pi/n) is found in theorem 3.9. This theorem is attributed to D. H. Lehmer, but the sine part in the Lehmer reference is wrong (to wit: n=12 has rational value 2*sin(2*Pi/12)=2*sin(Pi/6)= 1. Hence the degree is 1 = phi(12)/4, as in Niven's book, but not phi(12)/2 = 2 as in Lehmer's paper (the Sines-table there is wrong). %D A183919 I. Niven, Irrational Numbers, The Math. Assoc. of America, second printing, 1963, distributed by John Wiley and Sons. %H A183919 Antti Karttunen, Table of n, a(n) for n = 1..10000 %H A183919 D. H. Lehmer, A Note on Trigonometric Algebraic Numbers, Am. Math. Monthly 40 (3) (1933) 165-6. %H A183919 Index entries for characteristic functions %F A183919 a(n) = 1 if sin(2*Pi/n) is rational, and a(n) = 0 if it is irrational. %e A183919 The rational values of 2*sin(2*Pi/n) are 0, 0, 2 and 1 for n=1, 2, 4 and 12, respectively. Otherwise irrational values appear. %o A183919 (PARI) A183919(n) = if(n<1, 0, polcoeff( x^1+x^2+x^4+x^12, n)); \\ _Antti Karttunen_, Dec 24 2018, after code in A089011 %Y A183919 Cf. sequence for cos(2Pi/n) is A183918. %K A183919 nonn,easy %O A183919 1 %A A183919 _Wolfdieter Lang_, Jan 13 2011 # Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE