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-2 of 2 results.

A354257 a(n) is the smallest k such that there exists a degree-k primitive Dirichlet characters modulo n, or -1 no such k exists.

Original entry on oeis.org

1, -1, 2, 2, 2, -1, 2, 2, 3, -1, 2, 2, 2, -1, 2, 4, 2, -1, 2, 2, 2, -1, 2, 2, 5, -1, 9, 2, 2, -1, 2, 8, 2, -1, 2, 6, 2, -1, 2, 2, 2, -1, 2, 2, 6, -1, 2, 4, 7, -1, 2, 2, 2, -1, 2, 2, 2, -1, 2, 2, 2, -1, 3, 16, 2, -1, 2, 2, 2, -1, 2, 6, 2, -1, 10, 2, 2, -1, 2, 4, 27, -1, 2, 2, 2, -1, 2, 2, 2, -1
Offset: 1

Views

Author

Jianing Song, May 21 2022

Keywords

Comments

For n !== 2 (mod 4), a(n) is the smallest k such that A354058(n,k) != 0 (or the smallest k such that A354061(n,k) != 0).
For n !== 2 (mod 4), a(n) is the smallest k such that Sum_{d|n} mu(n/d)*#{x in (Z/dZ)*: x^k == 1 (mod d)} != 0, where mu = A008683, (Z/dZ)* is the multiplicative group of integers modulo d.

Examples

			a(45) = 6: there does not exist a linear, quadratic, cubic, quartic or quintic primitive Dirichlet characters modulo 45, but there are 4 sextic primitive Dirichlet characters.
a(63) = 3: there does not exist a linear or quadratic primitive Dirichlet characters modulo 63, but there are 4 cubic primitive Dirichlet characters.
		

Crossrefs

A354258 gives the earliest occurrence of each positive integers.
Indices of 2: A003657 U A003658 \ {1}.

Programs

  • PARI
    a(n) = if(n%4==2, return(-1), my(e_0 = valuation(n,2)); n=n>>e_0; my(L=factor(n),w=omega(n),v=[],M=1); for(j=1, w, if(L[j,2]==1, v=concat(v,j), M*=L[j,1]^(L[j,2]-1))); if(e_0 >= 2, return(2^max(e_0-2,1)*M), for(i=1, #v, if(gcd(M,L[v[i],1]-1)==1, return(2*M))); return(M)))

Formula

Write n = 2^(e_0) * (p_1) * ... * (p_r) * (q_1)^(e_1) * ... * (q_s)^(e_s), where (p_i)'s and (q_j)'s are distinct odd primes, e_j >= 2. Let M = Product_{j=1..s} (q_j)^(e_j-1):
(i) if e_0 = 1, then a(n) = -1;
(ii) if e_0 = 2, then a(n) = 2*M;
(iii) if e_0 >= 3, then a(n) = 2^(e_0-2)*M;
(iv) if e_0 = 0, then a(n) = M if for every 1 <= i <= r, there exists 1 <= j <= s such that q_j divides p_i - 1; otherwise a(n) = 2*M.
Let k >= 1. Write k = 2^(e_0) * (q_1)^(e_1) * ... * (q_s)^(e_s), e_j >= 1. Let N = Product_{j=1..s} (q_j)^(e_j+1):
(i) if e_0 = 0, then a(n) = k <=> n = (p_1) * ... * (p_r) * N, where: p_i != q_j, and for every 1 <= i <= r, there exists 1 <= j <= s such that q_j divides p_i - 1.
(ii) if e_0 = 1, then a(n) = k <=> (a) n = (p_1) * ... * (p_r) * N, where: p_i != q_j, and there exists 1 <= i <= r such that none of (q_j)'s divides p_i - 1; or (b) n = (4 or 8) * N * (an odd squarefree number coprime to N);
(iii) if e_0 >= 2, then a(n) = k <=> n = 2^(e_0+2) * N * (an odd squarefree number coprime to N).

A354270 Numbers k such that min{m: A354257(m) = k} = k^2.

Original entry on oeis.org

1, 3, 4, 5, 6, 7, 11, 12, 13, 15, 17, 19, 20, 21, 23, 28, 29, 30, 31, 33, 35, 37, 39, 41, 42, 43, 44, 47, 51, 52, 53, 55, 57, 59, 60, 61, 65, 66, 67, 68, 69, 71, 73, 76, 77, 78, 79, 83, 84, 85, 87, 89, 91, 92, 93, 95, 97, 101, 102, 103, 105, 107, 109, 111, 113
Offset: 1

Views

Author

Jianing Song, May 21 2022

Keywords

Comments

Numbers m such that A354258(k) = k^2.
Consists of the union of {squarefree numbers that are odd or congruent to 6 modulo 12} U {4 times odd squarefree numbers}.
The maximum run length of consecutive numbers is 5, and they are of the form 24*m+3..24*m+7 or 24*m+17..24*m+21.

Examples

			3..7 are terms since the first 3, 4, 5, 6 or 7 in A354257 occur at the 9th, the 16th, the 25th, the 36th or the 49th places respectively.
65..69 are terms since the first 65, 66, 67, 68 or 69 in A354257 occur at the 4225th, the 4356th, the 4489th, the 4624th or the 4761st places respectively.
		

Crossrefs

Programs

  • PARI
    isA354270(n) = ((n%2 || n%12==6) && issquarefree(n)) || (n%8==4 && issquarefree(n/4))
Showing 1-2 of 2 results.