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.

Showing 1-10 of 10 results.

A206550 Smallest positive primitive roots Modd n.

Original entry on oeis.org

0, 1, 1, 3, 3, 5, 3, 3, 5, 3, 3, 0, 7, 5, 7, 3, 3, 5, 3, 0, 11, 3, 3, 0, 3, 7, 5, 0, 3, 0, 3, 3, 5, 3, 3, 0, 5, 13, 7, 0, 7, 0, 3, 0, 7, 3, 3, 0, 3, 3, 5, 0, 3, 5, 3, 0, 5, 3, 3, 0, 7, 7, 0, 3, 0, 0, 7, 0, 7, 0, 3, 0, 5, 5, 13, 0, 3, 0, 3, 0, 5, 7, 3, 0, 0, 5, 11
Offset: 1

Views

Author

Wolfdieter Lang, Mar 27 2012

Keywords

Comments

For multiplication Modd n (not to be confused with mod n) see a comment on A203571.
The 0 for n=1 is a primitive root Modd 1, the other zeros indicate that there is no primitive root for this n.
Iff a(n)>0, for n>=2, then the Galois group Gal(Q(2*cos(Pi/n))/Q), which is the multiplicative group of odd reduced residue classes Modd n (hence the notation Modd) is cyclic. For n=1 this group is also cyclic. See A206551 (cyclic moduli n) and A206552 (acyclic, i.e. non-cyclic, moduli n). [Changed by Wolfdieter Lang, Apr 04 2012]

Examples

			n=1: delta(1) = 1, a(1) = 1 == 0 (Modd 1): 0^1 = 0 == 1 (Modd 1).
n=2: delta(2) = 1, a(2) = 1 == 1 (Modd 2): 1^1 = 1 == 1 (Modd 2).
n=4: delta(4) = 2, a(2) = 3 == 3 (Modd 4): 3^2 = 9 == 1 (Modd 4).
n=6: delta(4) = 2, a(6) = 5 == 5 (Modd 6): 5^2 = 25. 25 (Modd 6) = 25 (mod 6) =1.
n=12: delta(12) = 4, a(12) = 0, because no primitive root exists: 5^2 == 1 (Modd 12), 7^2 == 1 (Modd 12) and 11^2 == 1 (Modd 12). The cycle structure of this acyclic group is [[5,1],[7,1],[11,1]]. It is the (abelian) group Z_2 x Z_2.
		

Crossrefs

Cf. A046145 (mod n case).

Formula

a(1) = 0 == 1 (Modd 1).
If no primitive root exists for n>=2 then a(n):=0. If a primitive root exists for n>=2 then a(n) is the smallest positive integer whose order Modd n is delta(n), with delta(n) = A055034(n). That is, with gcd(a(n),2*n) = 1, n>=2, the least positive exponent k such that a(n)^k == 1 (Modd n) is delta(n), and a(n) is the smallest positive representative Modd n with this property.

A206552 Moduli n for which the multiplicative group Modd n is non-cyclic (acyclic).

Original entry on oeis.org

12, 20, 24, 28, 30, 36, 40, 42, 44, 48, 52, 56, 60, 63, 65, 66, 68, 70, 72, 76, 78, 80, 84, 85, 88, 90, 91, 92, 96, 100, 102, 104, 105, 108, 110, 112, 114, 116, 117, 120, 124, 126, 130, 132, 133, 136, 138, 140, 144, 145, 148, 150, 152, 154, 156, 160, 164, 165
Offset: 1

Views

Author

Wolfdieter Lang, Mar 27 2012

Keywords

Comments

For Modd n (not to be confused with mod n) see a comment on A203571.
Precisely these numbers n (only the ones <=165 are shown above) have no primitive root Modd n. See the zero entries of A206550, except A206550(1) = 0 which stands for a primitive root 0.
The multiplicative Modd n group is the Galois group Gal(Q(rho(n))/Q), with the algebraic number rho(n) := 2*cos(Pi/n) with minimal polynomial C(n,x), whose coefficients are given in A187360.

Examples

			a(1) = 12 because A206550(12) = 0 for the first time, not counting A206550(1) = 0. The cycle structure of the multiplicative Modd 12 group is [[5,1],[7,1],[11,1]]. This is the (abelian, non-cyclic) group Z_2 x Z_2 (isomorphic to the Klein group V_4 or Dih_2).
a(2) = 20 because A206550(20) = 0 for the second time, not counting A206550(1) = 0. The cycle structure of the multiplicative Modd 20 group is [[3,9,13,1],[7,9,17,1],[11,1],[19,1]]. This is the (abelian, non-cyclic) group Z_4 x Z_2.
		

Crossrefs

Cf. A206550, A206551, A033949 (mod n case).

Formula

A206550(a(n)) = 0, n>=1.

A210845 Values n for which A055034(n) is squarefree.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 9, 11, 13, 14, 18, 21, 22, 23, 25, 29, 31, 33, 43, 46, 47, 49, 53, 59, 61, 62, 67, 69, 71, 77, 79, 83, 86, 93, 94, 98, 99, 103, 107, 118, 121, 129, 131, 134, 139, 141, 142, 147, 149, 157, 158, 161, 166, 167, 169, 173, 177, 179, 191
Offset: 1

Views

Author

Wolfdieter Lang, Apr 11 2012

Keywords

Comments

A055034(n) is the degree delta(n) of the minimal polynomial of the algebraic number rho(n):=2*cos(pi/n), n>=1, whose coefficients are shown in A187360. It is also the order of multiplicative abelian group Modd n (for multiplication Modd n see a comment on A203571). This is the Galois group Gal(Q(rho(n))/Q). If the number of abelian groups of order delta(n) is 1 then this group is necessarily cyclic.
Because A000688 is 1 exactly for the squarefree numbers A005117, the set of a(n) values of the present sequence is a (proper) subset of A206551. Hence it is immediately clear that the multiplicative group Modd a(n) is cyclic, but there are other cyclic Modd n groups, e.g., for n = 8, 10, 15, 16, 17, 19, 26, 27, 32, 34, 35, 37, 38, 39, 41,...

Examples

			a(3)=3 because delta(3)=A055034(3)= 1, and 1 is a member of the squarefree numbers A005117.
a(8)=9 because A055034(9)= 3 = A005117(3).
a(10)=13 because A055034(13)= 6 = A005117(5).
		

Crossrefs

Cf. A206551.

Formula

A055034(a(n)) is squarefree, i.e. from A005117.

A216321 phi(delta(n)), n >= 1, with phi = A000010 (Euler's totient) and delta = A055034 (degree of minimal polynomials with coefficients given in A187360).

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 4, 2, 2, 2, 2, 4, 4, 2, 6, 4, 2, 4, 10, 4, 4, 4, 6, 4, 6, 4, 8, 8, 4, 8, 4, 4, 6, 6, 4, 8, 8, 4, 12, 8, 4, 10, 22, 8, 12, 8, 8, 8, 12, 6, 8, 8, 6, 12, 28, 8, 8, 8, 6, 16, 8, 8, 20, 16, 10, 8, 24, 8, 12, 12, 8, 12, 8, 8, 24, 16, 18, 16, 40, 8, 16, 12
Offset: 1

Views

Author

Wolfdieter Lang, Sep 21 2012

Keywords

Comments

If n belongs to A206551 (cyclic multiplicative group Modd n) then there exist precisely a(n) primitive roots Modd n. For these n values the number of entries in row n of the table A216319 with value delta(n) (the row length) is a(n). Note that a(n) is also defined for the complementary n values from A206552 (non-cyclic multiplicative group Modd n) for which no primitive root Modd n exists.
See also A216322 for the number of primitive roots Modd n.

Examples

			a(8) = 2 because delta(8) = 4 and phi(4) = 2. There are 2 primitive roots Modd 8, namely 3 and 5 (see the two 4s in row n=8 of A216320). 8 = A206551(8).
a(12) = 2 because delta(12) = 4 and phi(4) = 2. But there is no primitive root Modd 12, because 4 does not show up in row n=12 of A216320. 12 = A206552(1).
		

Crossrefs

Cf. A000010, A055034, A216319, A216320, A216322, A010554 (analog in modulo n case).

Programs

Formula

a(n) = phi(delta(n)), n >= 1, with phi = A000010 (Euler's totient) and delta = A055034 with delta(1) = 1 and delta(n) = phi(2*n)/2 if n >= 2.

A210846 (5^(3^(n-1)) + 1)/(2*3^n).

Original entry on oeis.org

1, 7, 36169, 45991238252616223, 851008860651263039991161205833295116837255258128476241
Offset: 1

Views

Author

Wolfdieter Lang, Apr 24 2012

Keywords

Comments

The number of digits of a(n) is 1, 1, 5, 17, 54, 167, 506, 1525, ... .
Integer 2*a(n) implies that 5^delta(3^n) == -1 (mod 3^n), n>=1, with the degree delta(3^n) = phi(2*3^n)/2 = 3^(n-1) of the minimal polynomial C(3^n,x) of the algebraic number 2*cos(pi/3^n). For delta and the coefficient array of C see A055034 and A187360, respectively. That 2*a(n) is indeed an even integer can be shown by analyzing the terms of the binomial expansion of (6-1)^(3^(n-1)) + 1.
This congruence implies that floor(5^(3^(n-1))/3^n) = 2*a(n) - 1, i.e., it is odd. Hence 5^delta(3^n) == +1 (Modd 3^n), n>=2. For Modd n (not to be confused with mod n) see a comment on A203571. One can show that 5 is the smallest positive primitive root Modd 3^n for n>=2 (for n=1 one has 1^1 == +1 (Modd 3)). See A206550. The proof uses the fact that the order of 5 using multiplication Modd 3^n has to be a divisor of delta(3^n)=3^(n-1), i.e., a power of 3. This is because the multiplicative group Modd 3^n has order delta(3^n) and the subgroup formed by the cycle has the order of 5 considered Modd 3^n. Then apply Lagrange's theorem. That for n>=2 no number 5^(3^(n-1-j)), with j=1, 2..., n-1, is congruent +1 (Modd 3^n) follows from the above established congruence and an analysis of the relevant expansion for a given smaller power.
The above statements show that for n>=1 the multiplicative group Modd 3^n is cyclic (for n=1 the cycle is [1], and for n>=2 the cycle is generated by 5). For the cyclic moduli see A206551.

Examples

			n=1: (5^1+1)/6  = 1; n=2: (5^3 + 1)/18 = 126/18 = 7;
n=3: (5^9 +1)/(2*27) = 1953126/54 = 36169.
		

Crossrefs

Cf. A000244 (powers of 3), A068531, A090129 (the case Modd 2^n).

Formula

a(n) = (5^(3^(n-1)) + 1)/(2*3^n).

A210847 a(n) = (3^(2*5^(n-1)) + 1)/(2*5^n), n >= 1.

Original entry on oeis.org

1, 1181, 2871591950767410355081
Offset: 1

Views

Author

Wolfdieter Lang, May 03 2012

Keywords

Comments

The number of digits of a(n) is 1, 4, 22, 117, 593, 2978, 14905, ..., for n >= 1.
Integer a(n) implies that 3^delta(5^n) == -1 (mod 5^n), n>=1, with the degree delta(5^n) = phi(2*5^n)/2 = 2*5^(n-1) of the minimal polynomial C(5^n,x) of the algebraic number 2*cos(Pi/5^n). For delta and the coefficient array of C see A055034 and A187360, respectively. That 2*a(n) is indeed an even integer can be shown by analyzing the terms of the binomial expansion of (10-1)^(5^(n-1)) + 1.
This congruence implies that floor(3^(2*5^(n-1))/5^n) = 2*a(n) - 1, i.e., it is odd. Hence 3^delta(5^n) == +1 (Modd 5^n), n>=1. For Modd n (not to be confused with mod n) see a comment on A203571. One can show that 3 is the smallest positive primitive root Modd 5^n for n>=1. See A206550. The proof uses the fact that the order of 3 using multiplication Modd 5^n has to be a divisor of delta(5^n)=2*5^(n-1), i.e., either 5^e or 2*5^e with certain e>=0. This is because the multiplicative group Modd 5^n has order delta(5^n) and the order of the subgroup formed by the cycle generated by 3 coincides with the order of 3 considered Modd 5^n. Then Lagrange's theorem is applied. That for n>=1 no power of 3 with exponent 2*5^(n-1-j) with j=1,2,..., n-1 is congruent +1 (Modd 5^n) follows by considering the two cases +1 (mod 5^n) and -1 (mod 5^n) separately. The first case is excluded from the above established congruence by an indirect proof. The case -1 (Modd 5^n) can be excluded by an analysis of the relevant expansion for a given smaller power. The other cases 3^k with k = 5^(n-1-j), where j = 0, 1, ..., n-1, are neither -1 (mod 5^n) nor +1 (mod 5^n) because 3^(5^(n-1)) (mod 5^n) is congruent 3 (mod 5) (see A048899), hence neither +1 nor -1 (mod 5^n), respectively. The lower exponents are then excluded in both cases iteratively by an indirect proof taking fifth powers.
The above statements show that for n>=1 the multiplicative group Modd 5^n is cyclic, and for each n the cycle of length 2*5^(n-1) can be generated starting with 3. For the cyclic moduli see A206551.

Examples

			n = 1: (9 + 1)/(10) = 1; n = 2: (3^10 + 1)/50 = 59050/50 = 1181.
n = 3: (3^50 + 1)/250 = 717897987691852588770250/250 = 2871591950767410355081.
		

Crossrefs

Cf. A068531(n-2), n>=3, (the case p=2), A210846 (the case p=3).

Programs

  • Mathematica
    a[n_] := (3^(2*5^(n-1)) + 1)/(2*5^n); Array[a, 3] (* Amiram Eldar, Jul 11 2025 *)

Formula

a(n) = (3^(2*5^(n-1)) + 1)/(2*5^n), n >= 1.

A216322 Number of primitive roots Modd n (see A216321).

Original entry on oeis.org

1, 1, 1, 1, 1, 2, 2, 2, 2, 4, 0, 2, 2, 2, 4, 4, 2, 6, 0, 2, 4, 10, 0, 4, 4, 6, 0, 6, 0, 8, 8, 4, 8, 4, 0, 6, 6, 4, 0, 8, 0, 12, 8, 4, 10, 22, 8, 12, 8, 8, 8, 12, 6, 8, 8, 6, 12, 28, 8, 8, 8, 6, 16, 8, 8, 20, 16, 10, 8, 24, 8, 12, 12, 8, 12, 8, 8, 24, 16, 18, 16, 40, 8, 16, 12
Offset: 1

Views

Author

Wolfdieter Lang, Sep 21 2012

Keywords

Comments

This sequence coincides with A216321 for all n values from A206551 (cyclic multiplicative Modd n group) and the entry is 0 otherwise (if no primitive root exists, that is, n is from the complementary sequence A206552).

Examples

			a(8) = phi(phi(2*8)/2) = 2 , with phi = A000010, because 8 = A206551(8).
a(12) = 0 because 12 = A206552(1).
		

Crossrefs

Cf. A216321, A046144 (modulo n analog).

Formula

a(n) = A216321(n) if n belongs to the sequence A206551 and a(n)=0 if n belongs to A206552.

A207331 Array of indices (or logarithms) Modd p for odd numbers smaller than p relative to basis of smallest primitive root.

Original entry on oeis.org

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

Views

Author

Wolfdieter Lang, Mar 27 2012

Keywords

Comments

For Modd n (not to be confused with mod n) see a comment on A203571.
The row lengths sequence for this array is 1 for row no. 1 and (p(n)-1)/2 with p(n):=A000040(n) (the primes).
For the definition of the index of a reduced number a mod n (but here we use Modd n) relative to a primitive root mod n, see, e.g., the Apostol reference, p. 213, and the tables on pp. 216-7. This mod n array is found under A054503 if the smallest primitive root mod n is taken as base. Because of its properties the index ind_b(a) is also called log_b(a), with the base b.
Here for Modd n, n>=2, primitive roots exist only for the values n with A206550(n)>0. There the smallest positive primitive roots, called here B(n) are also found. The allowed n values are shown in A206551. The indices Modd p(n), p(n):=A000040(n) (the primes) are called Ind_B(p(n))(a), with the odd numbers a smaller than p(n): 2*m-1=1,3,...,p(n)-2, for m=1,2,..., (p(n)-1)/2.
For odd p(n) the index Ind_B(p(n))(2*m-1) is defined as the unique value k from {0,1,...,(p(n)-3)/2}, such that B(p(n))^k = 2*m-1, with the base B(p(n)) the smallest positive primitive root Modd p(n).

Examples

			n, p(n)\m 1   2   3  4  5   6   7   8    9   10   11 12  13 14
    2m-1: 1   3   5  7  9  11  13  15   17   19   21 23  25 27
1,   2:   0
2,   3:   0
3,   5:   0   1
4,   7:   0   1   2
5,  11:   0   1   3  4  2
6,  13:   0   2   3  1  4   5
7,  17:   0   1   5  3  2   7   4   6
8,  19:   0   1   4  6  2   3   8   5    7
9,  23:   0   1   9  6  2   4   5  10    8    3   7
10, 29:   0   1  10  8  2   5  12  11    7   13   9   4   6  3
...
a(6,5) =4 because the base B(13) is here A206550(13)=7, and 7^4 = 2401, 2401 (Modd 13) := 2401 (mod 13) = 9 = 2*5-1.
		

References

  • T. M. Apostol, Introduction to Analytic Number Theory, Springer-Verlag, 1986.

Crossrefs

Cf. A054503 (mod n case).

Formula

a(n,m) = Ind_B(p(n))(2*m-1), m=1,2,..., (p(n)-1)/2, n>=1. See the comment section for the definition of Ind_B(a).

A215046 Increasingly ordered list of those values m for which the degree of the minimal polynomial of 2*cos(Pi/m) (see A187360) is prime.

Original entry on oeis.org

4, 5, 6, 7, 9, 11, 23, 47, 59, 83, 107, 167, 179, 227, 263, 347, 359, 383, 467, 479, 503, 563, 587, 719, 839, 863, 887, 983, 1019, 1187, 1283, 1307, 1319, 1367, 1439, 1487, 1523, 1619, 1823, 1907, 2027, 2039, 2063, 2099, 2207, 2447, 2459
Offset: 1

Views

Author

Wolfdieter Lang, Sep 03 2012

Keywords

Comments

The degree delta(m) of the minimal polynomial of rho(m) := 2*cos(Pi/m), called C(m,x) with coefficient array A187360, is given by A055034(m).
If delta(m) = phi(2*m)/2, m>=2, delta(1) = 1, with phi = A000010, is prime then the (Abelian) Galois group G(Q(rho(m))/Q) is cyclic. Because this Galois group of C(m,x) has order delta(m) this follows from a corollary to Lagrange's theorem, or also from Cauchy's theorem on groups.
Because the mentioned Galois group is isomorphic to the multiplicative group Modd m of order delta(m) (see a comment on A203571) all m = a(n) values appear in A206551.
This sequence is also a subsequence of A210845 because p is squarefree (see A005117).

Examples

			a(4) = 7, because 7 satisfies phi(14)/2 = phi(2*7)/2 = 1*6/2 = 3, which is prime; and 7 is the fourth smallest number m satisfying: phi(2*m)/2 is prime.
		

Crossrefs

Cf. A055034.

Formula

phi(2*m)/2 is prime iff m=a(n), n>=1, with phi = A000010 (Euler's totient).

A289812 n for which a Factor Pair Latin Square of order n exists.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 21, 22, 23, 25, 26, 27, 29, 31, 32
Offset: 1

Views

Author

Keywords

Comments

This sequences differs from A206551 because no Factor Pair Latin Square of order 45 exists.
It is known that every prime power (A000961) as well as twice every prime number (A100484) appears in this sequence.

Crossrefs

Showing 1-10 of 10 results.