login
A396867
Least negated fundamental discriminant -D of imaginary quadratic fields such that omega(-D) = n, where omega = A001221.
0
3, 15, 84, 420, 5460, 87780, 1141140, 19399380, 562582020, 13831757940, 401120980260, 14841476269620, 608500527054420, 29994623540902020, 1229779565176982820, 65178316954380089460, 3975877334217185457060, 257649886920664493635380, 15716643102160534111758180
OFFSET
1,1
COMMENTS
For n >= 3, a(n) is divisible by 4 but not by 8. See my link "Terms of A396867" below for a proof.
For n >= 0, the least -D such that the class group of real quadratic field with discriminant D has 2-rank n (A319659) is a(n+1).
FORMULA
Let p_i = prime(i), q_i = A002144(i) be the i-th prime congruent to 1 modulo 4, and r_i = A002145(i) be the i-th prime congruent to 3 modulo 4. Suppose that {p_2, ..., p_n} = {q_1, ..., q_{n-1-m}} U {r_1, ..., r_m}. Write N = 4*p_2*...*p_n. For n >= 3:
- If m is even, then a(n) = N.
- If m is odd, then a(n) is either (q_{n-m}/r_m)*N or (r_{m+1}/q_{n-1-m})*N (i.e., obtained by either removing the largest prime <= prime(n) congruent to 1 modulo 4 and adding the least prime > prime(n) congruent to 3 modulo 4, or removing the largest prime <= prime(n) congruent to 3 modulo 4 and adding the least prime > prime(n) congruent to 1 modulo 4).
See my link "Terms of A396867" above.
EXAMPLE
For n = 3, we have {3, 5} = {q_1=5} U {r_1=3}. Since the number of primes congruent to 3 modulo 4 is odd, a(n) is the minimum between 4*5*13 and 4*3*7, which is 4*3*7 = 84.
For n = 7, we have {3, 5, 7, 11, 13, 17} = {q_1=5, q_2=13, q_3=17} U {r_1=3, r_2=7, r_3=11}. Since the number of primes congruent to 3 modulo 4 is odd, a(n) is the minimum between 4*5*13*17*29*3*7 and 4*5*13*3*7*11*19, which is 4*5*13*3*7*11*19 = 1141140.
PROG
(PARI) a(n) = {
if(n==1, return(3));
if(n==2, return(15));
my(N=4, res=1, plim=prime(n), q, r);
forprime(p=3, plim, N=N*p; res=(res*p)%4; if(p%4==1, q=p, r=p)); \\ N = 4*p_2*...*p_n, q is the largest prime <= p_n congruent to 1 mod 4, r is the largest prime <= p_n congruent to 3 mod 4
if(res==1, return(N)); \\ if the number of primes <= p_n congruent to 3 mod 4 is even, then a(n) = N
forprime(p=plim+1, oo, if(p%4==3, q=p/q; break())); \\ smallest prime > p_n congruent to 3 mod 4
forprime(p=plim+1, oo, if(p%4==1, r=p/r; break())); \\ smallest prime > p_n congruent to 1 mod 4
return(N * min(q, r));
}
CROSSREFS
See A396868 for the case of real quadratic fields.
Sequence in context: A195885 A115910 A355094 * A106569 A260769 A026032
KEYWORD
nonn,new
AUTHOR
Jianing Song, Jun 08 2026
STATUS
approved