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 11-20 of 44 results. Next

A206549 Nontrivial solution of x^2 == 1 (Modd p), where p is the n-th prime of the form 4*k+1, for odd restricted residue classes Modd p.

Original entry on oeis.org

3, 5, 13, 17, 31, 9, 23, 11, 27, 55, 75, 91, 33, 15, 37, 105, 129, 93, 19, 81, 183, 107, 89, 177, 241, 187, 217, 53, 155, 25, 203, 189, 213, 311, 269, 115, 63, 381, 143, 29, 179, 67, 109, 413, 301, 235, 489, 439, 483, 553
Offset: 1

Views

Author

Wolfdieter Lang, Feb 13 2012

Keywords

Comments

For multiplication Modd n (not to be confused with multiplication mod n) see a comment on A203571.
The trivial solution of x^2 == 1 (Modd n) is x = 1 (Modd n). Note that x = -1 (Modd n) == +1 (Modd n). In the ordinary mod n case the trivial solution is 1 (mod 2) for n=2 (-1 == +1 (mod 2)) and if n>2 the two trivial solutions are 1 (mod n) and the noncongruent -1 (mod n) == n-1 (mod n).
Here multiplication on the reduced residue system Modd p, p an odd prime, with only odd numbers is considered (which is possible, contrary to mod p). In order to have inverses one has to exclude all reduced residue classes Modd p with even numbers. The (p-1)/2 residue classes are then [1],[3],...,[p-2]. For m=1,3,...,p-2, the class [m] Modd p is the union of the ordinary reduced residue classes mod 2p: [m] and [-m]=[2p-m]. Besides the trivial solution x=+1 (Modd p) (note that -1 == +1 (Modd p)) there is a further nontrivial solution if and only if (p-1)/2 is even, i.e. p=A002144(n) (primes of the form 4*k+1), n>=1. The present sequence entry a(n) gives the smallest positive representative for this nontrivial solution Modd A002144(n).
This result uses the fact that every finite group of prime order p is the cyclic group Z_p (Corollary to Lagrange's or also Cauchy's theorem on finite groups or see A000688 for abelian groups). Here for the multiplicative group Modd p (on the odd residue classes) which has order (p-1)/2, for p an odd prime. This turns out to be the Galois group for the minimal polynomial C(p,x), whose coefficients are found in A187360. The sequence {a(n)} arises if one asks for the smallest positive members of the odd restricted residue system Modd p, namely [1],[3],...,[p-2], which are their own inverses besides the trivial element 1 (Modd p).
The row a(n) has in the table for the multiplicative group Modd A002144(n) a 1 on the diagonal, if the table is written for the odd representatives 1,3,...,p-2. The only other diagonal entry 1 appears for the element 1. Note that in the ordinary mod p case, p an odd prime, one always has for the multiplicative group mod p (which has p-1 residue classes) in the multiplication table the diagonal entry 1 only for the representatives 1 and p-1, but p-1 == -1 (mod p) is a trivial solution of x^2 == 1 (mod p).

Examples

			a(6)=9 because the corresponding prime is A002144(6)=41, 9^2 = 81, and 81 Modd 41 is per definition -81 mod 2*41 = +1 (the definition uses the parity of floor(81/41) = 1 being odd, hence the - sign), thus 9^2 == 1 (Modd 41), and 9 is not congruent to 1 (Modd 41) (or -1 (Modd 41)), hence a nontrivial solution.
A002144(n):  5, 13, 17, 29, 37, 41, 53, 61, 73, 89, 97, ...
a(n):        3,  5, 13, 17, 31,  9, 23, 11, 27, 55, 75, ...
3^2 = 9, 9 Modd 5 := -9 mod 10 = 1, the smallest positive representative of the class 1 (Modd 5) = {+-1,+-9,+-11,+-19,...}.
5^2 = 25, 25 Modd 13 := -25 mod 26 = 1.
13^2 = 169, 169 Modd 17 := -169 mod 34 = 1.
17^2 = 289, 289 Modd 29 := -289 mod 2*29 = 1.
...
E.g., for the odd prime 7, not in A002144, there are no self-inverse elements in the multiplicative group Modd 7 (on the odd numbers) except the trivial 1. The inverse of 3 is 5 (Modd 7) and vice versa, since 3*5 = 15 and 15 Modd 7 := 15 mod 14 = 1. (*)
From _Rémi Guillaume_, Sep 08 2024: (Start)
(*) The finite multiplicative group Modd 7 (on the odd residue classes) is of odd order: (7-1)/2 = 3, and is isomorphic to the additive cyclic group Z_3. Moreover, Z_3 has two generating elements: [1] and [2] (mod 3), and no nontrivial self-opposite elements -- since [1]+[2] = [0] (mod 3); likewise, {[1],[3],[5]} (Modd 7) has two generating elements: [3] and [5] (Modd 7), and no nontrivial self-inverse elements -- since [3]*[5] = [1] (Modd 7).
13 is an odd prime in A002144; the finite multiplicative group Modd 13 (on the odd residue classes) is of even order: (13-1)/2 = 6 = 2*3, and is isomorphic to the additive cyclic group Z_6. Moreover, Z_6 has two generating elements: [1] and [5] (mod 6), and one nontrivial self-opposite element: 3*[1] = 3*[5] = [3] (mod 6) -- since [1]+[5] = [2]+[4] = 2*[3] = [0] (mod 6); likewise, {[1],[3],[5],[7],[9],[11]} (Modd 13) has two generating elements: [7] and [11] (Modd 13), and one nontrivial self-inverse element: [7]^3 = [11]^3 = [5] (Modd 13) -- since [3]*[9] = [5]^2 = [7]*[11] = [1] (Modd 13).
17 is an odd prime in A002144; the finite multiplicative group Modd 17 (on the odd residue classes) is of even order: (17-1)/2 = 8 = 2*4, and is isomorphic to the additive cyclic group Z_8. Moreover, Z_8 has four generating elements: [1], [3], [5], [7] (mod 8), and one nontrivial self-opposite element: 4*[1] = 4*[3] = 4*[5] = 4*[7] = [4] (mod 8) -- since [1]+[7] = [2]+[6] = [3]+[5] = 2*[4] = [0] (mod 8); likewise, {[1],[3],[5],[7],[9],[11],[13],[15]} (Modd 17) has four generating elements: [3], [5], [7], [11] (Modd 17), and one nontrivial self-inverse element: [3]^4 = [5]^4 = [7]^4 = [11]^4 = [13] (Modd 17) -- since [3]*[11] = [5]*[7] = [9]*[15] = [13]^2 = [1] (Modd 17).
(End)
		

Crossrefs

See A203571 for Modd n, A002144 for corresponding primes.

Formula

a(n)^2 == 1 (Modd A002144(n)), n>=1, a(n) the smallest positive solution not 1. For Modd p, p an odd prime, see the comment section and the examples.

A207337 Primes of the form (m^2+1)/10.

Original entry on oeis.org

5, 17, 29, 53, 73, 109, 137, 281, 397, 449, 593, 757, 941, 1061, 1277, 1613, 1877, 2161, 2341, 2657, 2789, 3881, 4973, 5153, 6101, 6917, 7129, 7673, 8009, 8237, 8821, 9181, 10433, 12041, 13177, 13469, 13913, 14669, 15761, 17389, 18233, 18749
Offset: 1

Views

Author

Wolfdieter Lang, Feb 27 2012

Keywords

Comments

Equivalently, primes of the form (K^2 + (K+1)^2)/5. The connection to the primes of the form (m^2+1)/10 is given by m=2*K+1 (m is necessarily odd). The corresponsding m=m(n) values are given in A002733(n).
Equivalently, primes of the form (4*T(K)+1)/5, with the corresponding triangular numbers T(K):=A000217(K), for K(n)=(m(n)-1)/2, given in A207339(n).
For n>=2 the smallest positive representative of the class of nontrivial solutions of the congruence x^2==1 (Modd a(n)) is x=m(n). The trivial solution is the class with representative x=1, which also includes -1. For the prime a(1)=5 the smallest positive nontrivial solution is 3 (see A027862(1) with A002731(1)). Such a nontrivial smallest positive representative exists for each unique class of solutions of this congruence Modd p for any prime p of the form 4*k+1, given in A002144. Here the subset with k=k(n)=(a(n)-1)/4 appears, namely 1, 4, 7, 13, 18, 27, 34, 70,... For Modd n see a comment on A203571.

Examples

			a(3)=29, m(3)=A002733(3)=17. T(K(3))=A000217((17-1)/2)= A000217(8)=A207339(3)=36. (8^2+9^2)/5 = 29 = (4*36+1)/5.
		

Crossrefs

Programs

  • Haskell
    a207337 n = a207337_list !! (n-1)
    a207337_list = f a002522_list where
       f (x:xs) | m == 0 && a010051 y == 1 = y : f xs
                | otherwise                = f xs
                where (y,m) = divMod x 10
    -- Reinhard Zumkeller, Apr 06 2012

Formula

a(n) is the n-th member of the increasingly ordered list of primes of the form (m^2+1)/10, where m=m(n) is necessarily an odd integer, namely A002733(n).

A141453 Primes p such that either p = 2^k + 1 or p = 2^k - 1, k>=0.

Original entry on oeis.org

2, 3, 5, 7, 17, 31, 127, 257, 8191, 65537, 131071, 524287, 2147483647, 2305843009213693951, 618970019642690137449562111, 162259276829213363391578010288127, 170141183460469231731687303715884105727
Offset: 1

Views

Author

Leroy Quet, Aug 07 2008

Keywords

Comments

Sequence consists of 2 and the union of the Mersenne primes (A000668) and the Fermat primes (A019434).
a(18) has 157 digits and is too large to include. - Ray Chandler, Jun 22 2009
From Wolfdieter Lang, Mar 28 2012: (Start)
The sequence of exponents k of 2 for these Mersenne or Fermat primes is k=[0, 1, 2, 3, 4, 5, 7, 8, 13, 16, 17, 19, 31, 61, 89, 107, 127,...], n>=1, if 3 is considered as Fermat prime.
The second exponent is 2 if 3 is considered as Mersenne prime. The next exponent k(18)=521 for the Mersenne prime a(18).
r(a(n)) := sqrt(a(n)*2^(k(n)+2) + 1) is a solution of the congruence x^2 == 1 (mod a(n)*2^(k(n)+1)), n>=1. The sequence k is given in the preceding comment. If n=2 then, besides r(3) = 5, also sqrt(3*2^(2+2) + 1) = 7 is an incongruent solution mod 12 if the exponent 2 is chosen. For n=2 there are altogether four incongruent solutions of x^2 == 1 (mod 12), namely 1, 12-1 = 11, r(3)=5 and 12-5 = 7. If n=1 there are altogether two incongruent solutions, namely 1 and r(2) = 3 = 4-1 (a trivial solution == -1 (mod 4)). For n>=3 there are eight incongruent solutions, and besides the trivial (positive) ones, 1 and a(n)*2^(k(n)+1) - 1, one has a nontrivial pair r(a(n)) and a(n)*2^(k(n)+1) - r(a(n)). For the number of incongruent solutions of the congruence x^2 == 1 (mod n) see A060594. For the r(a(n)) values see A210844.
r(a(n)), n>=1, also solves the congruence x^2 == 1 (Modd a(n)*2^(k(n)+1)), because floor((r(a(n))^2)/(a(n)*2^(k(n)+1)) is even. For Modd n (not to be confused with mod n) see a comment on A203571.
(End)

Examples

			From _Wolfdieter Lang_, Mar 28 2012: (Start)
Solutions to the congruence x^2 == 1 (mod a(n)*2^(k(n)+1):
n=3: r(5) = sqrt(5*2^(2+2) + 1) = 9. 9^2 = 81 == 1 (mod 5*8).
  The companion solution is 40-9 = 31. Because floor(81/40)=2 is even, 81 == 1 (Modd 40) also.
n=4: r(7) =  sqrt(7*2^(3+2) + 1) = 15. 15^2 = 225 == 1 (mod 7*16). The companion solution is 112-15 = 97. Because floor(225/112)=2 is even, 225 == 1 (Modd 112) also.
n=7: r(127) = sqrt(127*2^(7+2) + 1) = 255. 255^2 == 1 (mod 127*2^8). The companion solution is 32512-255 = 32257.
(End)
		

Crossrefs

Programs

  • Mathematica
    Select[Prime[Range[30000]], Length[FactorInteger[#-1]]==1 || Length[FactorInteger[#+1]]==1&] (* Vladimir Joseph Stephan Orlovsky, Feb 03 2012 *)
    Select[Union[Join @@ Array[2^# + {-1, +1} &, 140, 0]], PrimeQ] (* Michael De Vlieger, Oct 23 2017 *)

Extensions

More terms from R. J. Mathar, Jan 23 2009
a(17) from Ray Chandler, Jun 22 2009

A193682 Period 8: repeat [0, 1, 2, 3, 0, 3, 2, 1].

Original entry on oeis.org

0, 1, 2, 3, 0, 3, 2, 1, 0, 1, 2, 3, 0, 3, 2, 1, 0, 1, 2, 3, 0, 3, 2, 1, 0, 1, 2, 3, 0, 3, 2, 1, 0, 1, 2, 3, 0, 3, 2, 1, 0, 1, 2, 3, 0, 3, 2, 1, 0, 1, 2, 3, 0, 3, 2, 1, 0, 1, 2, 3, 0, 3, 2, 1, 0, 1, 2, 3, 0, 3, 2, 1, 0, 1, 2, 3, 0, 3, 2, 1, 0, 1, 2, 3, 0, 3, 2, 1, 0, 1, 2, 3, 0, 3, 2, 1, 0, 1, 2, 3, 0
Offset: 0

Views

Author

Wolfdieter Lang, Sep 30 2011

Keywords

Comments

This sequence can be continued periodically for negative values of n.
See a comment on A203571 where a k-family of 2k-periodic sequences P_k has been defined. The present sequence is P_4. - Wolfdieter Lang, Feb 02 2012

Examples

			a(10) = 10(mod 4) = 2 because 10\4 = floor(10/4)=2 is even; the parity is +1.
a(7) = (4-7)(mod 4) = 1 because 7\4 = floor(7/4)=1 is odd; the parity is -1.
		

Crossrefs

Cf. A193680 (mod 3 case).
Cf: A203571.

Programs

Formula

a(n) = n mod 4 if (-1)^floor(n/4)=+1, otherwise (4-n) mod 4, n >= 0. (-1)^floor(n/4) is the parity of the quotient floor(n/4). This quotient is sometimes denoted by n\4.
O.g.f.: x*(1+2*x+3*x^2+3*x^4+2*x^5+x^6)/( (1-x)*(1+x)*(1+x^2)*(1+x^4)).
a(n) = floor(410107/33333333*10^(n+1)) mod 10. - Hieronymus Fischer, Jan 04 2013
a(n) = floor(2323/21845*4^(n+1)) mod 4. - Hieronymus Fischer, Jan 04 2013

A216319 Irregular triangle: row n lists the odd numbers of the reduced residue system modulo n.

Original entry on oeis.org

1, 1, 1, 1, 3, 1, 3, 1, 5, 1, 3, 5, 1, 3, 5, 7, 1, 5, 7, 1, 3, 7, 9, 1, 3, 5, 7, 9, 1, 5, 7, 11, 1, 3, 5, 7, 9, 11, 1, 3, 5, 9, 11, 13, 1, 7, 11, 13, 1, 3, 5, 7, 9, 11, 13, 15, 1, 3, 5, 7, 9, 11, 13, 15, 1, 5, 7, 11, 13, 17, 1, 3, 5, 7, 9, 11, 13, 15, 17, 1, 3, 7, 9, 11, 13, 17, 19
Offset: 1

Views

Author

Wolfdieter Lang, Sep 21 2012

Keywords

Comments

The length of row n is delta(n) = A055034(n).
Here the smallest nonnegative complete system modulo n is used: {0,1,...,n-1}, and the reduced residue system modulo n (A038566) is the set of numbers k from this set which satisfy gcd(k, n) = 1. The present array lists only the odd numbers. For n = 1 one should take 0 because gcd(0, 1) = 1, but because 1 == 0 (mod 1) we prefer the odd 1.
This is the sub-array obtained from A038566 by deleting the even numbers.
In the multiplicative group Modd n (see a comment in A203571) each of the delta(n) members of row n forms a reduced residue class Modd n with only odd numbers. E.g., n=4 (only the positive members are listed, the negative members should be amended): [1] = {1, 7, 9, 15, 17, 23, 25, 31, 33, 39,...}; [3] = {3, 5, 11, 13, 19, 21, 27, 29, 35, 37...}. Multiplication Modd n can be done class-wise: 7*15 == 1*1 (Modd 4) = 1; 11*13 ==3*3 (Modd 4) = 1; 7*5 == 1*3 (Modd 4) = 3.
The orders 'Moddulo' n of the elements in row n are given in A216320.

Examples

			The array starts:
n\k 1  2   3   4   5   6   7   8   9...
---------------------------------------
1   1
2   1
3   1
4   1  3
5   1  3
6   1  5
7   1  3   5
8   1  3   5   7
9   1  5   7
10  1  3   7   9
11  1  3   5   7   9
12  1  5   7  11
13  1  3   5   7   9  11
14  1  3   5   9  11  13
15  1  7  11  13
16  1  3   5   7   9  11  13  15
17  1  3   5   7   9  11  13  15
18  1  5   7  11  13  17
19  1  3   5   7   9  11  13  15  17
20  1  3   7   9  11  13  17  19
...
		

Crossrefs

Cf. A038566 (row n lists all numbers in the reduced residue system modulo n).

Programs

  • Mathematica
    Table[Select[Range[1, n, 2], GCD[#, n] == 1 &], {n, 20}] (* Michael De Vlieger, Oct 15 2020 *)
  • PARI
    row(n) = select(x->(((x%2)==1) && (gcd(n, x)==1)), [1..n]); \\ Michel Marcus, Jun 10 2020

Formula

a(n, k) is the k-th odd member of the smallest nonnegative reduced residue system modulo n. See the comment above.

A204453 Period length 14: [0, 1, 2, 3, 4, 5, 6, 0, 6, 5, 4, 3, 2, 1] repeated.

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 0, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 0, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 0, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 0, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 0, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 0, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5
Offset: 0

Views

Author

Wolfdieter Lang, Jan 17 2012

Keywords

Comments

This sequence can be continued periodically for negative values of n, and then a(-n) = a(n).
This is the seventh sequence of a k-family of sequences P_k, k>=1, which starts with A000007(n+1), n>=0, (the 0-sequence), A000035, A193680, A193682, A203572, A for k=1..6, respectively.
See a comment on A203571 for the general case of the P_k sequences. For a(n)=P_7(n) the nonnegative members of the equivalence classes [0], [1],...,[6], defined by p==q iff P_7(p)=P_7(q), are found in the array A113807 if there the last class [7], starting with 7, is replaced by 0,7,14,..., to become the first class [0] (nonnegative part).

Examples

			a(16) = 16(mod 7) = 2 because 16\7 = floor(16/7)=2 is even; the sign is +1.
a(9) = (7-9)(mod 7) = 5 because 9\7 = floor(9/7)=1 is odd; the sign is -1.
		

Crossrefs

Cf. A203572 (k=6), A113807, A010876.

Formula

a(n) = n(mod 7) if (-1)^floor(n/7)=+1 else (7-n)(mod 7), n>=0. (-1)^floor(n/7) is the sign corresponding to the parity of the quotient floor(n/7). This quotient is sometimes denoted by n\7.
O.g.f.: x*(1+2*x+3*x^2+4*x^3+5*x^4+6*x^5+6*x^7+5*x^8+4*x^9+ 3*x^10+2*x^11+x^12)/(1-x^14).
a(n) = (7*m*(m^4-21*m^3+175*m^2-735*m+1624)*((-1)^floor(n/7)-1)-10908*(-1)^floor(n/7)+12348)*m/1440 where m = n-7*floor(n/7). - Luce ETIENNE, Oct 13 2017

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.

A216320 Irregular triangle: row n lists the Modd n order of the odd members of the reduced smallest nonnegative residue class modulo n.

Original entry on oeis.org

1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 3, 3, 1, 4, 4, 2, 1, 3, 3, 1, 4, 4, 2, 1, 5, 5, 5, 5, 1, 2, 2, 2, 1, 3, 2, 6, 3, 6, 1, 3, 6, 3, 6, 2, 1, 4, 2, 4, 1, 8, 8, 4, 4, 8, 8, 2, 1, 8, 8, 8, 4, 8, 2, 4, 1, 6, 6, 3, 3, 2, 1, 9, 9, 3, 9, 3, 9, 9, 9, 1, 4, 4, 2, 2, 4, 4, 2, 1, 3, 6, 2, 3, 6
Offset: 1

Views

Author

Wolfdieter Lang, Sep 21 2012

Keywords

Comments

The length of row n is delta(n):=A055034(n).
For the multiplicative group Modd n see a comment on A203571, and also on A216319.
A216319(n,k)^a(n,k) == +1 (Modd n), n >= 1.
If the Modd n order of an (odd) element from row n of A216319 is delta(n) (the row length) then this element is a primitive root Modd n. There is no primitive root Modd n if no such element of order delta(n) exists. For example, n = 12, 20, ... (see A206552 for more of these n values). There are phi(delta(n)) = A216321(n) such primitive roots Modd n if there exists one, where phi=A000010 (Euler's totient). The multiplicative group Modd n is cyclic if and only if there exists a primitive root Modd n. The multiplicative group Modd n is isomorphic to the Galois group G(Q(rho(n))/Q) with the algebraic number rho(n) := 2*cos(Pi/n), n>=1.

Examples

			The table a(n,k) begins:
  n\k 1  2  3  4  5  6  7  8  9 ...
  1   1
  2   1
  3   1
  4   1  2
  5   1  2
  6   1  2
  7   1  3  3
  8   1  4  4  2
  9   1  3  3
  10  1  4  4  2
  11  1  5  5  5  5
  12  1  2  2  2
  13  1  3  2  6  3  6
  14  1  3  6  3  6  2
  15  1  4  2  4
  16  1  8  8  4  4  8  8  2
  17  1  8  8  8  4  8  2  4
  18  1  6  6  3  3  2
  19  1  9  9  3  9  3  9  9  9
  20  1  4  4  2  2  4  4  2
  ...
a(7,2) = 3 because A216319(7,2) = 3 and 3^1 == 3 (Modd 7);
  3^2 = 9 == 5 (Modd 7) because floor(9/7)= 1 which is odd, therefore 9 (Modd 7) = -9 (mod 7) = 5; 3^3 == 5*3 (Modd n)
  = +1 because floor(15/7)=2 which is even, therefore 15 (Modd 7) = 15 (modd 7) = +1.
Row n=12 is the first row without an order = delta(n) (row length), in this case 4. Therefore there is no primitive root Modd 12, and the multiplicative group Modd 12 is non-cyclic.
  Its cycle structure is [[5,1],[7,1],[11,1]] which is the group Z_2 x Z_2 (the Klein 4-group).
		

Crossrefs

Formula

a(n,k) = order of A216319(n,k) Modd n, n>=1, k=1, 2, ..., A055034(n). This means: A216319(n,k)^a(n,k) == +1 (Modd n), n>=1, and a(n,k) is the smallest positive integer exponent satisfying this congruence. For Modd n see a comment on A203571.

A002733 Numbers k such that (k^2 + 1)/10 is prime.

Original entry on oeis.org

7, 13, 17, 23, 27, 33, 37, 53, 63, 67, 77, 87, 97, 103, 113, 127, 137, 147, 153, 163, 167, 197, 223, 227, 247, 263, 267, 277, 283, 287, 297, 303, 323, 347, 363, 367, 373, 383, 397
Offset: 1

Views

Author

Keywords

Comments

Contribution from Wolfdieter Lang, Feb 27 2012: (Start)
The corresponding primes (n^2 + 1)/10 are given in A207337(n).
a(n) is the smallest positive representative of the class of nontrivial solutions of the congruence x^2 == 1 (Modd A207337(n)), if n >= 2. The trivial solution is the class with representative x=1, which also includes -1. For Modd n see a comment on A203571. For n=1: a(1) = 7 == 3 (Modd 5), and 3 is the smallest positive solution > 1.
The unique class of nontrivial solutions of the congruence x^2 == 1 (Modd p), with p an odd prime, exists for any p of the form 4*k+1, given in A002144. Here a subset of these primes is covered, the ones for k = k(n) = (a(n)^2 - 9)/40. These k-values are [1, 4, 7, 13, 18, 27, 34, 70, 99, 112, ...].
(End)

References

  • L. Euler, De numeris primis valde magnis (E283), reprinted in: Opera Omnia. Teubner, Leipzig, 1911, Series (1), Vol. 3, p. 25.
  • N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Programs

  • Haskell
    a002733 = a000196 . (subtract 1) . (* 10) . a207337
    -- Reinhard Zumkeller, Apr 06 2012
  • Maple
    a := [ ]: for n from 1 to 400 do if (n^2+1 mod 10) = 0 and isprime((n^2+1)/10) then a := [ op(a), n ]; fi; od;
  • Mathematica
    Select[Range[573], PrimeQ[(#^2 + 1)/10] &] (* T. D. Noe, Feb 28 2012 *)
  • PARI
    forstep(n=7,1e3,[6,4],if(isprime(n^2\10+1),print1(n", "))) \\ Charles R Greathouse IV, Mar 11 2012
    

Formula

a(n) = sqrt(10*A207337(n)-1) = sqrt(8*A207339(n)+1), n >= 1. - Wolfdieter Lang, Feb 27 2012
Previous Showing 11-20 of 44 results. Next