cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Previous Showing 41-50 of 84 results. Next

A225975 Square root of A226008(n).

Original entry on oeis.org

0, 2, 2, 6, 1, 10, 6, 14, 4, 18, 10, 22, 3, 26, 14, 30, 8, 34, 18, 38, 5, 42, 22, 46, 12, 50, 26, 54, 7, 58, 30, 62, 16, 66, 34, 70, 9, 74, 38, 78, 20, 82, 42, 86, 11, 90, 46, 94, 24, 98, 50, 102, 13, 106, 54, 110, 28, 114, 58
Offset: 0

Views

Author

Paul Curtz, May 22 2013

Keywords

Comments

Repeated terms of A016825 are in the positions 1,2,3,6,5,10,... (A043547).
From Wolfdieter Lang, Dec 04 2013: (Start)
This sequence a(n), n>=1, appears in the formula 2*sin(2*Pi/n) = R(p(n), x) modulo C(a(n), x), with x = rho(a(n)) = 2*cos(Pi/a(n)), the R-polynomials given in A127672 and the minimal C-polynomials of rho given in A187360. This follows from the identity 2*sin(2*Pi/n) = 2*cos(Pi*p(n)/a(n)) with gcd(p(n), a(n)) = 1. For p(n) see a comment on A106609,
Because R is an integer polynomial it shows that 2*sin(2*Pi/n) is an integer in the algebraic number field Q(rho(a(n))) of degree delta(a(n)) (the degree of C(a(n), x)), with delta(k) = A055034(k). This degree is given in A093819. For the coefficients of 2*sin(2*Pi/n) in the power basis of Q(rho(a(n))) see A231189 . (End)

Examples

			For the first formula: a(0)=-1+1=0, a(1)=-3+5=2, a(2)=-1+3=2, a(3)=-1+7=6, a(4)=0+1=1.
		

Crossrefs

Programs

  • Mathematica
    a[0]=0; a[n_] := Sqrt[Denominator[1/4 - 4/n^2]]; Table[a[n], {n, 0, 58}] (* Jean-François Alcover, May 30 2013 *)
    LinearRecurrence[{0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,-1},{0,2,2,6,1,10,6,14,4,18,10,22,3,26,14,30},60] (* Harvey P. Dale, Nov 21 2019 *)

Formula

a(n) = A106609(n-4) + A106609(n+4) with A106609(-4)=-1, A106609(-3)=-3, A106609(-2)=-1, A106609(-1)=-1.
a(n) = 2*a(n-8) -a(n-16).
a(2n+1) = A016825(n), a(2n) = A145979(n-2) for n>1, a(0)=0, a(2)=2.
a(4n) = A022998(n).
a(4n+1) = A017089(n).
a(4n+2) = A016825(n).
a(4n+3) = A017137(n).
G.f.: x*(2 +2*x +6*x^2 +x^3 +10*x^4 +6*x^5 +14*x^6 +4*x^7 +14*x^8 +6*x^9 +10*x^10 +x^11 +6*x^12 +2*x^13 +2*x^14)/((1-x)^2*(1+x)^2*(1+x^2)^2*(1+x^4)^2). [Bruno Berselli, May 23 2013]
From Wolfdieter Lang, Dec 04 2013: (Start)
a(n) = 2*n if n is odd; if n is even then a(n) is n if n/2 == 1, 3, 5, 7 (mod 8), it is n/2 if n/2 == 0, 4 (mod 8) and it is n/4 if n/2 == 2, 6 (mod 8). This leads to the given G.f..
With c(n) = A178182(n), n>=1, a(n) = c(n)/2 if c(n) is even and c(n) if c(n) is odd. This leads to the preceding formula. (End)

Extensions

Edited by Bruno Berselli, May 24 2013

A228786 Table of coefficients of the minimal polynomials of 2*sin(Pi/n), n >= 1.

Original entry on oeis.org

0, 1, -2, 1, -3, 0, 1, -2, 0, 1, 5, 0, -5, 0, 1, -1, 1, -7, 0, 14, 0, -7, 0, 1, 2, 0, -4, 0, 1, -3, 0, 9, 0, -6, 0, 1, -1, 1, 1, -11, 0, 55, 0, -77, 0, 44, 0, -11, 0, 1, 1, 0, -4, 0, 1, 13, 0, -91, 0, 182, 0, -156, 0, 65, 0, -13, 0, 1, 1, -2, -1, 1, 1, 0, -8, 0, 14, 0, -7, 0, 1, 2, 0, -16, 0, 20, 0, -8, 0, 1, 17, 0, -204, 0, 714, 0, -1122, 0, 935, 0, -442, 0, 119, 0, -17, 0, 1, 1, -3, 0, 1
Offset: 1

Views

Author

Wolfdieter Lang, Oct 07 2013

Keywords

Comments

s(n) := 2*sin(Pi/n) is, for n >= 2, the length ratio side/R of the regular n-gon inscribed in a circle of radius R. This algebraic number s(n), n >= 1, has the degree gamma(n) := A055035(n), and the row length of this table is gamma(n) + 1.
s(n) has been given in the power basis of the relevant algebraic number field in A228783 for even n (bisected into n == 0 (mod 4) and n == 2 (mod 4)), and in A228785 for odd n.
For the computation of the minimal polynomials ps(n,x), using the coefficients of s(n) in the relevant number field, and the conjugates of the corresponding algebraic numbers rho (giving the length ratios (smallest diagonal)/side in the relevant regular polygons see a comment on A228781. Note that the product of the gamma(n) linear factors (x - conjugates) has to be computed modulo the minimal polynomial of the relevant rho(k) = 2*cos(Pi/k) (called C(k,x=rho(k)) in A187360).
Thanks go to Seppo Mustonen, who asked a question about the square of the sum of all lengths in the regular n-gon, which led to this computation of s(n) and its minimal polynomial.
It would be interesting to find out which length ratios in the regular n-gon give the other positive zeros of the minimal polynomial ps(n,x). See some examples below.
The zeros of the row polynomials ps(n,x) are 2*cos(2*Pi*k/c(2*n))) for gcd(k, c(2*n)) = 1, where c(n) = A178182(n), and k from {0, ..., floor(c(2*n)/2)}, for n >= 1. The number of these solutions is gamma(n) = A055035(n). See the formula section. This results from the zeros of the minimal polynomials of sin(2*Pi/n), with coefficients given in A181872/A181873. - Wolfdieter Lang, Oct 30 2019

Examples

			The table a(n, m) starts:
n\m   0  1    2 3   4 5     6 7   8 9   10 12  13 14  15 16 17
1:    0  1
2:   -2  1
3:   -3  0    1
4:   -2  0    1
5:    5  0   -5 0   1
6:   -1  1
7:   -7  0   14 0  -7 0     1
8:    2  0   -4 0   1
9:   -3  0    9 0  -6 0     1
10:  -1  1    1
11: -11  0   55 0 -77 0    44 0 -11 0    1
12:   1  0   -4 0   1
13:  13  0  -91 0 182 0  -156 0  65 0  -13 0   1
14:   1 -2   -1 1
15:   1  0   -8 0  14 0    -7 0   1
16:   2  0  -16 0  20 0    -8 0   1
17:  17  0 -204 0 714 0 -1122 0 935 0 -442  0 119  0 -17  0  1
18:   1 -3    0 1
...
n = 19: [-19, 0, 285, 0, -1254, 0, 2508, 0, -2717, 0, 1729, 0, -665, 0, 152, 0, -19, 0, 1],
n = 20: [1, 0, -12, 0, 19, 0, -8, 0, 1]
n = 5: ps(5,x) = 5 -5*x^2 +1*x^4, with the zeros s(5) = sqrt(3 - tau), sqrt(2 + tau) = tau*s(5) and their negative values, where tau =rho(5) is the golden section. tau*s(5) is the length ratio diagonal/radius in the pentagon.
n = 7: ps(7,x) = -7 + 14*x^2 -7*x^4 + 1*x^6, with the positive zeros s(7) (side/R) about 0.868, s(7)*rho(7) (smallest diagonal/R) about 1.564, and s(7)*(rho(7)^2-1) (longer diagonal/R) about 1.950 in the heptagon inscribed in a circle with radius R.
n = 8: ps(8,x) = 2 -4*x^2 + x^4, with the positive zeros s(8) = sqrt(2-sqrt(2)) and rho(8) = sqrt(2+sqrt(2)) (smallest diagonal/side).
n = 10: ps(10,x) = -1 + x + x^2 with the positive zero s(10) = tau - 1 (the negative solution is -tau).
		

Crossrefs

Formula

a(n, m) = [x^m](minimal polynomial ps(n, x) of 2*sin(Pi/n) over the rationals), n >= 1, m = 0, ..., gamma(n), with gamma(n) = A055035(n).
ps(n,x) = Product_{k=0..floor(c(2*n)/n) and gcd(k, c(2*n)) = 1} (x - 2*cos(2*Pi*k/c(2*n)), with c(2*n) = A178182(2*n), for n >= 1. There are gamma(n) = A055035(n) zeros. - Wolfdieter Lang, Oct 30 2019

A230076 a(n) = (A007521(n)-1)/4.

Original entry on oeis.org

1, 3, 7, 9, 13, 15, 25, 27, 37, 39, 43, 45, 49, 57, 67, 69, 73, 79, 87, 93, 97, 99, 105, 115, 127, 135, 139, 153, 163, 165, 169, 175, 177, 183, 189, 193, 199, 205, 207, 213, 219, 235, 249, 253, 255, 265, 267, 273, 277, 279, 295, 303, 307
Offset: 1

Views

Author

Wolfdieter Lang, Oct 24 2013

Keywords

Comments

Because A007521(n) are the primes congruent 5 (mod 8) it is clear that a(n) is congruent 1 (mod 2), that is odd.
2*a(n) = A055034(A007521(n)), the degree of the minimal polynomial C(A007521(n), x) of 2*rho(Pi/A007521(n)) (see A187360).

Examples

			The minimal polynomial C(A007521(2), x) = C(13, x) has degree 6 = 2*a(2) because C(13, x) = x^6 - x^5 - 5*x^4 + 4*x^3 + 6*x^2 - 3*x -1.
		

Crossrefs

Cf. A007521, A055034, A187360, 4*A005123 (1 (mod 8) case), A186287 (3 (mod 8) case), A186302 (7 (mod 8) case).

Programs

  • Mathematica
    (Select[8*Range[0, 200] + 5, PrimeQ] - 1)/4 (* Amiram Eldar, Jun 08 2022 *)

Formula

a(n) = (A007521(n)-1)/4.

A232625 Denominators of abs(n-8)/(2*n), n >= 1.

Original entry on oeis.org

2, 2, 6, 2, 10, 6, 14, 1, 18, 10, 22, 6, 26, 14, 30, 4, 34, 18, 38, 10, 42, 22, 46, 3, 50, 26, 54, 14, 58, 30, 62, 8, 66, 34, 70, 18, 74, 38, 78, 5, 82, 42, 86, 22, 90, 46, 94, 12, 98, 50, 102, 26, 106, 54, 110, 7, 114, 58, 118, 30, 122, 62, 126, 16, 130, 66
Offset: 1

Views

Author

Wolfdieter Lang, Dec 12 2013

Keywords

Comments

The numerators are given in A231190. See the comments there on 2*sin(Pi*4/n).
2*sin(Pi*4/n) = R(b(n), x) (mod C(b(n), x)), with x = 2*cos(Pi/a(n)) =: rho(a(n)). The integer Chebyshev R and C polynomials are found in A127672 and A187360, respectively. b(n) = A231190(n).
delta(a(n)) = deg(2,n), with delta(k) = A055034(k), is the degree of the algebraic number 2*sin(Pi*4/n) given in A232626.

Crossrefs

Cf. A127672 (R), A187360 (C), A231190 (b), A055034 (delta), A232626 (degree k=2), A106609 (k=1, p), A225975 (k=1, q), A093819 (degree k=1).

Programs

  • Mathematica
    a[n_] := Denominator[(n-8)/(2*n)]; Array[a, 100] (* Amiram Eldar, Nov 09 2024 *)
  • PARI
    a(n) = denominator((n-8)/(2*n)); \\ Amiram Eldar, Nov 09 2024

Formula

a(n) = denominator(abs(n-8)/(2*n)), n >= 1.
a(n) = 2*n/gcd(n-8, 16).
a(n) = 2*n if n is odd; if n is even then a(n) = n if n/2 == 1, 3, 5, 7 (mod 8), a(n) = n/2 if n/2 == 2, 6 (mod 8), a(n) == n/4 if n/2 == 0 (mod 8) and a(n) = n/8 if n == 4 (mod 8).
O.g.f.: x*(2*(1+x^30) + 2*x*(1+x^28) + 6*x^2*(1+x^26) + 2*x^3*(1+x^24) + 10*x^4*(1+x^22) + 6*x^5*(1+x^20) + 14*x^6*(1+x^18) + x^7*(1+x^16) + 18*x^8*(1+x^14) + 10*x^9*(1+x^12) + 22*x^10*(1+x^10) + 6*x^11*(1+x^8) + 26*x^12*(1+x^6) + 14*x^13*(1+x^4) + 30*x^14*(1+x^2) + 4*x^15)/(1-x^16)^2.
Sum_{k=1..n} a(k) ~ (171/256) * n^2. - Amiram Eldar, Nov 09 2024

A232633 Coefficient table for minimal polynomials of s(n)^2 = (2*sin(Pi/n))^2.

Original entry on oeis.org

0, 1, -4, 1, -3, 1, -2, 1, 5, -5, 1, -1, 1, -7, 14, -7, 1, 2, -4, 1, -3, 9, -6, 1, 1, -3, 1, -11, 55, -77, 44, -11, 1, 1, -4, 1, 13, -91, 182, -156, 65, -13, 1, -1, 6, -5, 1, 1, -8, 14, -7, 1, 2, -16, 20, -8, 1, 17, -204, 714, -1122, 935, -442, 119, -17, 1, -1, 9, -6, 1, -19, 285, -1254, 2508, -2717, 1729, -665, 152, -19, 1
Offset: 1

Views

Author

Wolfdieter Lang, Dec 19 2013

Keywords

Comments

The length of row n of this table is 1 + A023022(n), n >= 0, that is 2, 2, 2, 2, 3, 2, 4, 3, 4, 3, 6, 3, 7, 4, 5, 5, 9, 4,...
s(n):= 2*sin(Pi/n) is for n >= 2 the length ratio side/R of a regular n-gon inscribed in a circle of radius R (in some units). s(1) = 0. In general s(n)^2 = 4 - rho(n)^2 with rho(n):= 2*cos(Pi/n), for n>=2 this is the length ratio (smallest diagonal)/s(n) in the regular n-gon. If n is even, say 2*l, l>=1, then s(2*l)^2 = 2 - rho(l) (because rho(2*l)^2 = rho(l) +2). Therefore, if n is even s(n)^2 is an integer in the algebraic number field Q(rho(n/2)), and if n is odd then it is an integer in Q(rho(n)). The coefficient tables for the minimal polynomials of s(n)^2, called MPs2(n, x), for even and odd n have been given in A232631 and A232632, respectively. See these entries for details, and the link to the Q(2 cos(pi/n)) paper, Table 4, in A187360 for the power basis representation of the zeros of the minimal polynomial C(n, x) of rho(n).
The degree deg(n) of MPs2(n, x) is therefore delta(n/2) or delta(n) for n even or odd, respectively, where delta(n) = A055034(n). This means that deg(1) = deg(2) =1 and deg(n) = phi(n)/2 = A023022(n), n >= 3. deg(n) = A023022(n).
Especially MPs2(p, x) = Product_{j=0..(p-3)/2} (x - 2*(1 + cos(Pi*(2*j+1)/p))), for p an odd prime (A065091).
This computation was motivated by a preprint of S. Mustonen, P. Haukkanen and J. K. Merikoski, called ``Polynomials associated with squared diagonals of regular polygons'', Nov 16 2013.

Examples

			The table a(n,m) begins:
  n/m    0     1      2      3       4     5     6    7    8   9 ...
  1:     0     1
  2:    -4     1
  3:    -3     1
  4:    -2     1
  5:     5    -5      1
  6:    -1     1
  7:    -7    14     -7      1
  8:     2    -4      1
  9:    -3     9     -6      1
  10:    1    -3      1
  11:  -11    55    -77     44     -11     1
  12:    1    -4      1
  13:   13   -91    182   -156      65   -13     1
  14:   -1     6     -5      1
  15:    1    -8     14     -7       1
  16:    2   -16     20     -8       1
  17:   17  -204    714  -1122     935  -442   119  -17    1
  18:   -1     9     -6      1
  19:  -19   285  -1254   2508   -2717  1729  -665  152  -19   1
  20:    1   -12     19     -8       1
  ...
MPs2(7, x) = Product_{j=0..2} (x - 2*(1 + cos(Pi*(2*j+1)/7))) = (x - (2 + rho(7)))*(x - (2 + (-1 - rho(7) + rho(7)^2)))*(x - (2 + (2 - rho(7)^2))) = (-8+4*z-2*z^2-5*z^3+z^4+z^5) + (14-z+2*z^2+z^3-z^4)*x -7*x^2 +x^3, with z = rho(7), and this becomes  due to C(7, z) = z^3 - z^2 - 2*z + 1, finally MPs2(7, x) = -7 + 14*x - 7*x^2 + x^3.
MPs2(14, x) = Product_{j=0..2} (x - 2*(1 - cos(Pi*(2*j+1)/7))) = (x - (2 - rho(7)))*(x - (2 - (-1 - rho(7) + rho(7)^2)))*(x - (2 - (2 - rho(7)^2))) = -1 + 6*x - 5*x^2 + x^3 (using again C(7, z) = 0 with z = rho(7)).
		

Crossrefs

Cf. A232631 (even n), A232632 (odd n), A023022 (degree), A187360.

Programs

Formula

a(n,m) = [x^m] MPs2(n, x), n >= 0, m = 0, 1, ..., deg(n), with the minimal polynomial MPs2(n, x) of s(n)^2 = (2*sin(Pi/n))^2. The degree is deg(n) = A023022(n).
a(2*l,m) = A232631(l,m), l >= 1, a(2*l+1,m) = A232832(l,m), l >= 0.

A234044 Period 7: repeat [2, -2, 1, 0, 0, 1, -2].

Original entry on oeis.org

2, -2, 1, 0, 0, 1, -2, 2, -2, 1, 0, 0, 1, -2, 2, -2, 1, 0, 0, 1, -2, 2, -2, 1, 0, 0, 1, -2, 2, -2, 1, 0, 0, 1, -2, 2, -2, 1, 0, 0, 1, -2, 2, -2, 1, 0, 0, 1, -2, 2, -2, 1, 0, 0, 1, -2, 2, -2, 1, 0, 0, 1, -2, 2, -2, 1, 0, 0, 1, -2, 2, -2, 1, 0, 0, 1, -2, 2, -2, 1, 0, 0, 1, -2, 2, -2, 1, 0, 0, 1, -2, 2, -2
Offset: 0

Views

Author

Wolfdieter Lang, Feb 27 2014

Keywords

Comments

This is a member of the six sequences which appear for the instance N=7 of the general formula 2*exp(2*Pi*n*I/N) = R(n, x^2-2) + x*S(n-1, x^2-2)*s(N)*I, for n >= 0, with I = sqrt(-1), s(N) = sqrt(2-x)*sqrt(2+x), x = rho(N) := 2*cos(Pi/N) and R and S are the monic Chebyshev polynomials whose coefficient tables are given in A127672 and A049310. If powers x^k with k >= delta(N) = A055034(N) enter in R or x*S then C(N, x), the minimal polynomial of x = rho(N) (see A187360) is used for a reduction. If delta(N) = 2 it may happen that sqrt(2+x) or sqrt(2-x) is an integer in the number field Q(rho(N)). See the N=5 case comment on A164116.
For N=7 with delta(7) = 3, and C(7, x) = x^3 - x^2 - 2*x + 1 the final result becomes 2*exp(2*Pi*n*I/7) = (a(n) + b(n)*x + c(n)*x^2) + (A(n) + B(n)*x + C(n)*x^2)*s(7)*I, with x = rho(7) = 2*cos(Pi/7), a(n) the present sequence, b(n) = A234045(n), c(n) = A234046(n), A(n) = A238468(n), B(n) = A238469(n) and C(n) = A238470(n). The a, b, c and A, B, C brackets are integers in Q(rho(7)).

Examples

			n = 4: 2*exp(8*Pi*I/7) = (2-16*x^2+20*x^4-8*x^6+x^8) + (4*x+10*x^3-6*x^5+x^7)*s(7)*I, reduced with C(7, x) = x^3 - x^2 - 2*x + 1 = 0 this becomes = (-x) + (-1)*s(7)*I with x= 2*cos(Pi/7) and s(7) = 2*sin(Pi/7).The power basis coefficients are thus (a(4), b(4), c(4)) = (0, -1, 0) and (A(4), B(4), C(4)) = (-1, 0, 0).
		

Crossrefs

Cf. A234045, A234046, A238468, A238469, A238470, A099837 (N=3), A056594 (N=4), A164116 (N=5), A057079 (N=6).

Programs

Formula

G.f.: (2 - 2*x + x^2 + x^5 - 2*x^6)/(1 - x^7).
a(n+7) = a(n) for n>=0, with a(0) = -a(1) = -a(6) = 2, a(3) = a(4) =0 and a(2) = a(5) = 1.
From Wesley Ivan Hurt, Jul 16 2016: (Start)
a(n) + a(n-1) + a(n-2) + a(n-3) + a(n-4) + a(n-5) + a(n-6) = 0 for n>5.
a(n) = (1/7) * Sum_{k=1..6} 2*cos((2k)*n*Pi/7) - 2*cos((2k)*(1+n)*Pi/7) + cos((2k)*(2+n)*Pi/7) + cos((2k)*(5+n)*Pi/7) - 2*cos((2k)*(6+n)*Pi/7).
a(n) = 2 + 4*floor(n/7) - 3*floor((1+n)/7) + floor((2+n)/7) - floor((4+n)/7) + 3*floor((5+n)/7) - 4*floor((6+n)/7). (End)

A186302 a(n) = ( A007522(n)-1 )/2.

Original entry on oeis.org

3, 11, 15, 23, 35, 39, 51, 63, 75, 83, 95, 99, 111, 119, 131, 135, 155, 179, 183, 191, 215, 219, 231, 239, 243, 251, 299, 303, 315, 323, 359, 363, 371, 375, 411, 419, 431, 443, 455, 459, 483, 491, 495, 515, 519, 531, 543, 551
Offset: 1

Views

Author

Marco Matosic, Feb 17 2011

Keywords

Comments

From Wolfdieter Lang, Oct 24 2013: (Start)
Each a(n) is of course congruent 3 (mod 4).
a(n) = A055034(p7m8(n)), with p7m8(n) := A007522(n). This is the degree of the minimal polynomial of rho(p7m8(n)):= 2*cos(Pi/p7m8(n)), called C(p7m8(n), x) in A187360. (End)

Examples

			Degree of minimal polynomial C(prime 7 (mod 8), x):
n = 2, p7m8(2) = A007522(2) = 23, delta(23) = 11. - _Wolfdieter Lang_, Oct 24 2013
		

Crossrefs

Programs

Formula

a(n) = A186303(n)-1.

A219839 a(n) is the number of odd integers in 2..(n-1) that have a common factor (other than 1) with n.

Original entry on oeis.org

0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 2, 0, 1, 3, 0, 0, 3, 0, 2, 4, 1, 0, 4, 2, 1, 4, 2, 0, 7, 0, 0, 6, 1, 5, 6, 0, 1, 7, 4, 0, 9, 0, 2, 10, 1, 0, 8, 3, 5, 9, 2, 0, 9, 7, 4, 10, 1, 0, 14, 0, 1, 13, 0, 8, 13, 0, 2, 12, 11, 0, 12, 0, 1, 17, 2, 8, 15, 0, 8, 13, 1, 0, 18
Offset: 1

Views

Author

Lei Zhou, Nov 29 2012

Keywords

Comments

a(n) is also the number of linearly dependent diagonal/side length ratios R(n,k), in the regular n-gon. The following will explain this. In the regular n-gon inscribed in a circle the number of distinct diagonals including the side is floor(n/2). Not all of the corresponding length ratios R(n,k) = d(n,k)/d(n,1), k = 1..floor(n/2), with d(n,1) = s(n) (the length of the side), d(n,2) the length of the smallest diagonal, etc., are linearly independent because C(n,R(n,2)) = 0, where C is the minimal polynomial of R(n,2) = 2*cos(Pi/n) (see A187360) with degree delta(n) = A055034(n). Thus every ratio R(n,j), with j = delta(n)+1, ..., floor(n/2) can be expressed as a linear combination of the independent R(n,k), k=1, ..., delta(n). See the comment from Sep 21 2013 on A053121 for powers of R(n,2) (called there rho(N)). Therefore, a(n) = floor(n/2) - delta(n) is, for n>=2, the number of linearly dependent ratios R(n,k) in the regular n-gon. - Wolfdieter Lang, Sep 23 2013
From Wolfdieter Lang, Nov 23 2020: (Start)
This sequence gives the difference between the number of odd numbers in the smallest nonnegative residue system modulo n (called here RS(n)) and the smallest nonnegative restricted residue system (called here RRS(n), but RRS(1) = {1}, not {0}).
This sequence can be used to find sequence A111774 by recording the positions of the entries >= 1. See a W. Lang comment there, and also A337940, for the proof. Hence the complement of A111774, given in A174090, is given by the numbers m with a(m) = 0. (End)

Examples

			n=1: there is no odd number greater than 2 but smaller than 1-1=0, so a(1)=0.
Same for n=2,3.
n=4: 3 is the only odd number in 2..(4-1), and GCD(3,4)=1, so a(4)=0.
For any prime numbers and numbers in the form of 2^n, no odd number in 2..(n-1) has common factor with n, so a(p)=0 and a(2^n)=0, n>0.
n=6: 3,5 are odd numbers in 2..(6-1), and GCD(3,6)=3>1 and GCD(5,6)=1, so a(6)=1.
n=15: candidates are 3,5,7,9,11,13.  3, 5, and 9 have greater than 1 common factors with 15, so a(15)=3
From _Wolfdieter Lang_, Sep 23 2013: (Start)
Example n = 15 for a(n) = floor(n/2) - delta(n): 1, 3, 5, 7, 9, 11, 13 take out 1, 7, 9, 11, leaving 3, 5, 13. Therefore, a(15) = 7 - 4 = 3. See the formula above for delta.
In the regular 15-gon the 3 (= a(15)) diagonal/side ratios R(15, 5), R(15, 6) and R(15,7) can be expressed as linear combinations of the R(15,j), j=1..4.  See the n-gon comment above. (End)
From _Wolfdieter Lang_, Nov 23 2020: (Start)
n = 1: RS(1) = {0}, RRS(1) = {1}, hence a(1) = 0 - 1 = 0. Here RRS(1) is not {0}(standard) because delta(1) := 1 (the degree of minimal polynomial for 2*cos(Pi//1) = -2 which is x+2, see A187360).
n = 6: RS(6) = {0, 1, 2, 3, 4, 5} and RRS(6) = {1,5}, hence a(6) = 3 - 2 = 1, and A111774(1) = 6 = A337940(1, 1).
a(15) = 7 - 4 = 3, and A111774(6) = 15 = A337940(3, 3) = A337940(4, 1) (multiplicity 2 = A338428(6)). (End)
		

Crossrefs

Cf. A000010, A016035 (see 1st comment there), A004526, A055034, A111774, A174090, A190357, A337940, A338428.

Programs

Formula

a(n) = floor(n/2) - delta(n), with floor(n/2) = A004526 and delta(n) = A055034(n) = phi(2*n)/2, for n >= 2, with Euler's phi A000010. See the Aug 17 2011 comment on A055034. For n = 1 this would be -1, not 0, because delta(1) = 1. - Wolfdieter Lang, Sep 23 2013
Sum_{k=1..n} a(k) ~ c*n^2, where c = 1/4 - 2/Pi^2 = 0.04735763... (A190357). - Amiram Eldar, Feb 23 2025

A228780 Power basis components of the algebraic numbers S2(n) in Q(2*cos(Pi/n)), where S2(n) is the square of the sum of the lengths of the distinct line segments (side and diagonals) in the regular n-gon.

Original entry on oeis.org

4, 3, 6, 4, 3, 4, 12, 6, -1, 4, 4, -2, -4, 6, 4, 3, 8, 4, -16, -8, 12, 6, 3, -4, -8, 4, 4, 0, 4, 10, 4, 3, 8, -8, -12, 4, 4, 28, 14, -40, -20, 12, 6, -1, 8, 12, 4, -2, -8, 28, 28, -26, -20, 6, 4, -1, -8, 16, 28, -16, -20, 4, 4, 4, 2, -12, -6, 8, 4, 3, -8, -24, 28, 44, -20, -24, 4, 4, 0, 8, 28, -4, -40, -12, 10, 4, -1, -16, -24, 0, 12, 4
Offset: 2

Views

Author

Wolfdieter Lang, Oct 01 2013

Keywords

Comments

The length of row n of this irregular array is the degree of the algebraic number rho(n):= 2*cos(Pi/n), given in A055034(n). See a Jul 19 2011 comment there.
The regular n-gon, inscribed in a circle of radius defining the length unit 1, has distinct line segments (chords) (V_0, V_j), j=1, ... , floor(n/2), with the n-gon vertices V_j, j=0, ... , n-1 distributed on the circle in the counterclockwise sense. The corresponding length ratios are denoted by L(n,j)/radius. The side length is s(n) = (V_0, V_1) = 2*sin(Pi/n), and for n >= 4 the first (the smallest) diagonal has length s(n)*rho(n), with rho(n) of degree delta(n) given above. s(2) = 2 is the ratio of the diameter of the circle. rho(2) = 0, but we use here rho(2)^0 = 1.
For n = 3: rho(3) = 1, s(3)^2 = 3. The algebraic number field Q(rho(n)) is the subject of the W. Lang link given below.
S2(n) := (sum(L(n,j)/radius, j=1, ... ,floor(n/2))^2 is seen below to be a number in the field Q(rho(n)) of degree delta(n), namely S2(n) = sum(a(n,k)*rho(n)^k, k=0..(delta(n)-1)). From the definition one has S2(n) = (s(n)*sum(S(j-1,rho(n)), j=1..floor(n/2)))^2, with the Chebyshev S-polynomials (see A049310). Due to s(n) = s(2*n)*rho(2*n), rho(2*n) = sqrt(2 + rho(n)) and an S-identity this becomes S2(n) = (s(2*n)*S(floor(n/2)-1, rho(2*n))*S(floor(n/2), rho(2*n)))^2. This can also be written as S2(n) = 4*(1 - T(2*floor(n/2), rho(2*n)/2))*(1 - T(2*(floor(n/2)+1), rho(2*n)/2))/(4-rho(2*n)^2), with Chebyshev's T-polynomials (see A053120). S2(n), written as a function of rho(n), has to be computed modulo the minimal polynomial C(n,rho(n)) of degree delta(n). These minimal polynomials are treated in A187360 (see the link to a Galois paper there, with its Table 2 and Section 3). The result is then the above given representation of S2(n) in the power basis of Q(rho(n)).
This computation was inspired by an email exchange with Seppo Mustonen. The author thanks him for sending the paper given as a link below. In this connection one should consider the even and odd n cases separately in order to find the square of the total length segments/radius in the regular n-gon, noticing that in the odd n case each distinct chord (side or diagonal) appears 2*(n/2) = n times, whereas in the even n case the longest diagonal of length 2 (in units of the radius) appears only n/2 times and the other chords appear n times.

Examples

			The table a(n,k) begins:
n\k     0    1    2    3    4    5 ...
2:      4
3:      3
4:      6    4
5:      3    4
6:     12    6
7:     -1    4    4
8:     -2   -4    6    4
9:      3    8    4
10:   -16   -8   12    6
11:     3   -4   -8    4    4
12:     0    4   10    4
13:     3    8   -8  -12    4    4
14:    28   14  -40  -20   12    6
15:    -1    8    2    4
...
n=5: S2(5) = (4-rho(5)^2)*(Sum_{j=1..2} S(j-1,rho(5)))^2 = 4 + 8*rho(5) + 3*rho(5)^2 - 2*rho(5)^3 - rho(5)^4, reduced with C(5,x) = x^2 - x - 1, with x = rho(5), using C(5,rho(5)) = 0, to eliminate all powers of rho(5) starting with power 2.
This leads to S2(5) = 3*1 + 4*rho(5). rho(5) = phi, the golden section.
The exact or approximate real values for S2(n) are, for n = 2, ..., 15: 4, 3, 11.65685426, 9.472135960, 22.39230484, 19.19566936, 36.32882142, 32.16343753, 53.49096128, 48.37415020, 73.88698896, 67.82742928, 97.52047276, 90.52313112.
		

Crossrefs

Cf. A228781, A228782 (minimal polynomials for odd and even n).

Formula

a(n,k) = [rho^k] (S2(n) modulo C(n,rho(n)), with S2(n) the square of the sum of the distinct length/radius ratios in the regular n-gon, with rho(n) = 2*cos(Pi/n) given above in a comment, and C(n,x) the minimal polynomial of rho(n) given in A187360 (see Table 2 and section 3 of the paper given in the W. Lang link below).

A228783 Table of coefficients of the algebraic number s(2*l) = 2*sin(Pi/2*l) as a polynomial in powers of rho(2*l) = 2*cos(Pi/(2*l)) if l is even and of rho(l) = 2*cos(Pi/l) if l is odd (reduced version).

Original entry on oeis.org

2, 0, 1, 1, 0, -3, 0, 1, -1, 1, 0, 4, 0, -1, -1, -1, 1, 0, -7, 0, 14, 0, -7, 0, 1, 2, 1, -1, 0, 8, 0, -18, 0, 8, 0, -1, 1, 2, -3, -1, 1, 0, -8, 0, 6, 0, -1, 0, 0, -1, 3, 3, -4, -1, 1, 0, 12, 0, -67, 0, 96, 0, -52, 0, 12, 0, -1, -2, 3, 1, -1, 0, -15, 0, 140, 0, -378, 0, 450, 0, -275, 0, 90, 0, -15, 0, 1
Offset: 1

Views

Author

Wolfdieter Lang, Oct 06 2013

Keywords

Comments

In the regular (2*l)-gon inscribed in a circle of radius R the length ratio side/R is s(2*l) = 2*sin(Pi/(2*l)). This can be written as a polynomial in the length ratio (smallest diagonal)/side given by rho(2*l) = 2*cos(Pi/(2*l)). (For the 2-gon there is no such diagonal and rho(2) = 0). This leads, in a first step, to the triangle A127672 (see the Oct 05 2013 comment there referring also to the bisections signed A111125 and A127677). Because the minimal polynomial of the algebraic number rho(2*l) of degree delta(2*l) = A055034(2*l), called C(2*l,x) (with coefficients given in A187360) one can eliminate all powers rho(2*l)^k with k >= delta(2*l) by using C(2*l,rho(2*l)) = 0. Furthermore, because for odd l only even powers of rho(2*l) appear, but rho(2*l)^2 = 2 + rho(l), one will obtain a reduced table for s(2*l) with powers rho(2*l)^(2*k+1), k= 0, ..., (delta(2*l)-2)/2 if l is even, and with powers rho(l)^m, m=0, ... , delta(l)-1 if l is odd.
This leads to a reduction of the triangle A127672, when applied for the s(2*l) computation, giving the present table with row length delta(4*L) = A055034(4*L) = phi(8*L)/2 if l =2*L, if L >= 1, and phi(2*L+1)/2 = A055035(4*L+2), if l = 2*L + 1, L >= 1, where phi(n) = A000010(n) (Euler totient).
This table gives the coefficients of s(2*l) in the power basis of the algebraic number field Q(rho(2*l)) of degree delta(2*l) = A055034(2*l) if l is even, and in Q(rho(l)) of degree delta(2*l)/2 if l is odd. s(2) and s(6) are rational integers of degree 1.
Thanks go to Seppo Mustonen whose question about the square of the sum of all length in a regular n-gon, led me to this computation.
If l = 2*L+1, L >= 0, that is n == 2 (mod 4), one can obtain s(2*l) more directly in powers of rho(l) by s(2*l) = R(l-1, rho(l)) (mod C(l,rho(l))), with the monic (except for l=1) Chebyshev T-polynomials, called R, in A127672, and the C polynomials from A187360. - Wolfdieter Lang, Oct 10 2013

Examples

			The table a(l,m), with n = 2*l, begins:
n,  l \m  0   1   2    3   4   5   6    7   8   9  10  11 ...
2   1:    2
4   2:    0   1
6   3:    1
8   4:    0  -3   0    1
10  5:   -1   1
12  6:    0   4   0   -1
14  7:   -1  -1   1
16  8:    0  -7   0   14   0  -7   0    1
18  9:    2   1  -1
20 10:    0   8   0  -18   0   8   0   -1
22 11:    1   2  -3   -1   1
24 12:    0  -8   0    6   0  -1   0    0
26 13:   -1   3   3   -4  -1   1
28 14:    0  12   0  -67   0  96   0  -52  0  12  0  -1
30 15:   -2   3   1   -1
...
n = 8, l = 4:  s(8)  = -3*rho(8) + rho(8)^3 = -3*sqrt(2 + sqrt(2)) + (sqrt(2 + sqrt(2)))^3 = (sqrt(2) - 1)*sqrt(2 + sqrt(2)).
n = 10, l = 5:  s(10) =  -1 + rho(5), where rho(5) = tau = (1 + sqrt(5))/2, the golden section.
		

Crossrefs

Cf. A127672, A111125, A127677, A055034, A187360, A228785 (odd n case), A228786 (minimal polynomials).

Formula

a(2*L,m) = [x^m](s(4*L,x)(mod C(4*L,x))), with s(4*L,x) = sum((-1)^(L-1-s)*A111125(L-1,s)*x^(2*s+1),s=0..L-1), L >= 1, m =0, ..., delta(4*L)-1, and
a(2*L+1,m) = [x^m](s(4*L+2,x)(mod C(2*L+1,x))), with s(4*L+2,x) = sum(A127677(L,s)*(2+x)^(L-s)),s=0..L) (with s(2,x) = 2 for L = 0), L >= 0, m = 0, ..., delta(4*L+2)/2, with delta(n) = A055034(2*l).
Previous Showing 41-50 of 84 results. Next