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

A306500 a(n) is the smallest prime p such that Sum_{primes q <= p} Kronecker(-A003657(n),q) > 0, or 0 if no such prime exists.

Original entry on oeis.org

608981813029, 26861, 2, 3, 5, 2, 11, 3, 2, 5, 2, 11, 2, 11, 53, 2, 13, 17, 2, 3, 5, 163, 3, 2, 2, 11, 5, 2, 31, 31, 2, 2, 3, 23, 2, 41, 3, 2, 13, 47, 2, 5, 19, 7, 11, 2, 191, 2, 3, 19, 2, 15073, 3, 2, 29, 5, 2, 41, 109, 2, 11, 2, 31, 59, 3, 2, 19, 2, 11, 53, 2, 1019, 137
Offset: 1

Views

Author

Jianing Song, Feb 19 2019

Keywords

Comments

Let D be a fundamental discriminant (only the case where D is fundamental is considered because {Kronecker(D,k)} forms a primitive real Dirichlet character with period |D| if and only if D is fundamental), it seems that Sum_{primes q <= p} Kronecker(D,p) <= 0 occurs much more often than its opposite does. This can be seen as a variation of the well-known "Chebyshev's bias". Sequence gives the least prime that violates the inequality when D runs through all negative discriminants.
For any D, the primes p such that Kronecker(D,p) = 1 has asymptotic density 1/2 in all the primes, so a(n) should be > 0 for all n.
Actually, for most n, a(n) is relatively small compared with A003657(n). There are only 127 n's in [1, 3043] (there are 3043 terms in A003657 below 10000) such that a(n) > A003657(n). The largest terms among the 127 corresponding terms are a(1) = 608981813029 (with A003657(1) = 3), a(1955) = 24996194023 (with A003657(1955) = 6240) and a(847) = 1694759239 (with A003657(847) = 2787).

Examples

			Let D = -A003657(18) = -52, j(k) = Sum_{primes q <= prime(k)} Kronecker(D,q).
For k = 1, Kronecker(-52,2) = 0, so j(1) = 0;
For k = 2, Kronecker(-52,3) = -1, so j(2) = -1;
For k = 3, Kronecker(-52,5) = -1, so j(3) = -2;
For k = 4, Kronecker(-52,7) = +1, so j(4) = -1;
For k = 5, Kronecker(-52,11) = +1, so j(5) = 0;
For k = 6, Kronecker(-52,13) = 0, so j(6) = 0;
For k = 7, Kronecker(-52,17) = +1, so j(7) = 1.
The first time for j > 0 occurs at the prime 17, so a(18) = 17.
		

Crossrefs

Cf. A003657, A306499 (the positive discriminants case).
The indices of primes are given in A306503.

Programs

  • PARI
    b(n) = my(i=0); forprime(p=2,oo,i+=kronecker(n,p); if(i>0, return(p)))
    print1(608981813029, ", "); for(n=4, 300, if(isfundamental(-n), print1(b(-n), ", ")))

A306502 a(n) is the index in primes of A306499(n), or 0 if A306499(n) = 0.

Original entry on oeis.org

1, 102091236, 732722, 6181, 314, 1, 199, 3, 2, 128, 1, 5, 2, 1, 4, 7, 5, 1, 4, 3, 1, 6, 1, 2, 9, 4, 2, 1, 6, 8, 1, 9, 7, 1, 3, 1, 4, 2, 1, 6, 2, 1, 8, 4, 1, 11, 11, 3, 7, 1, 6, 6, 2, 15, 1, 3, 2, 1, 12, 1, 15, 1, 3, 4, 1, 14, 1, 2, 5, 3, 2, 1, 10, 16, 1, 13, 1, 8, 1
Offset: 1

Views

Author

Jianing Song, Feb 19 2019

Keywords

Comments

a(n) is the smallest integer k such that Sum_{i=1..k} Kronecker(A003658(n),prime(i)) > 0, or 0 if no such k exists.
See A306499 for the actual primes.

Examples

			See A306499 for the example that shows a(16) = 7.
		

Crossrefs

Programs

  • PARI
    b(n) = my(i=0); forprime(p=2, oo, i+=kronecker(n, p); if(i>0, return(p)))
    for(n=1, 300, if(isfundamental(n), print1(primepi(b(n)), ", ")))
    
  • Sage
    # uses[KroneckerSum from A306499]
    A306499 = KroneckerSum()
    print([prime_pi(next(A306499)) for  in range(77)]) # _Peter Luschny, Feb 26 2019

A329225 a(n) is the smallest number k such that Sum_{i=1..k} Kronecker(prime(i),prime(n)) > 0 (or equivalently, Sum_{i=1..k} Kronecker(prime(i),prime(n)) = 1), or 0 if no such k exists.

Original entry on oeis.org

732722, 23338590792, 102091236, 1, 3, 314, 1, 5, 1, 128, 1, 5, 1, 16, 1, 7, 3, 3, 38, 1, 1, 1, 5, 1, 1, 9, 1, 9, 3, 1, 1, 3, 1, 5, 11, 1, 7, 1760, 1, 15, 3, 3, 1, 1, 15, 1, 17, 1, 5, 3, 1, 1, 1, 3, 1, 1, 15, 1, 9, 1, 25, 70, 27, 1, 1, 19, 35, 1, 19, 3, 1, 1, 1, 7, 41, 1, 5
Offset: 1

Views

Author

Jianing Song, Nov 08 2019

Keywords

Comments

a(n) is the index in primes of A329224(n), or 0 if A329224(n) = 0.
For further information see A329224, which is the main entry for these sequences.

Examples

			For prime(10) = 29, k = 128 is the first case such that Sum_{i=1..k} Kronecker(prime(i),29) = 1 > 0, so a(10) = 128.
		

Crossrefs

Cf. A306502, A306503. See A329224 for the actual primes.

Programs

  • PARI
    a(n) = if(n==2, 23338590792, if(n==3, 102091236, my(p=prime(n), i=0); forprime(q=2, oo, i+=kronecker(q, p); if(i>0, return(primepi(q))))))

Extensions

Edited by Peter Munn, Jun 26 2025
Showing 1-3 of 3 results.