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

A071961 a(n) = Sum_{i=0..n} K(n, i) where K(x, y) is the Kronecker symbol (x / y).

Original entry on oeis.org

0, 2, 1, 0, 2, 0, 2, 4, 0, 6, 2, 2, 0, 0, 4, 6, 8, 0, 0, 2, 0, 0, 2, 6, 0, 20, 6, 0, 0, 0, 4, 12, 0, 0, 4, 4, 12, 0, 6, 12, 0, 0, 4, 0, 0, 0, 4, 10, 0, 42, 2, 4, 0, 0, 2, 18, 0, 0, 2, 6, 0, 0, 8, 2, 32, 0, 8, -2, 0, 0, 4, 14, 0, 0, 10, 4, 0, 0, 4, 22, 0, 54
Offset: 0

Views

Author

Benoit Cloitre, Jun 16 2002

Keywords

Comments

a(n) = A096396(n) - A096397(n). - Reinhard Zumkeller, Mar 24 2012
a(n) < 0 for n in A071958. - Robert G. Wilson v, Mar 21 2015

Crossrefs

Row sums of A372728.
Records and their positions: A372933, A372934, A372935, A372936.

Programs

  • Mathematica
    f[n_] := Sum[KroneckerSymbol[n, k], {k, 0, n}];
    Table[f[n], {n, 0, 81}]  (* Robert G. Wilson v, Mar 21 2015 *)
  • PARI
    for(n=0, 100, print1(sum(i=1, n, kronecker(n,i)), ","))
    
  • SageMath
    print([sum(kronecker(n, k) for k in range(n + 1)) for n in range(82)])
    # Peter Luschny, May 16 2024

Extensions

Offset set to 0, a(0) = 0 added, a(1) and name adapted by Peter Luschny, May 16 2024

A372934 Positions of records in A071961.

Original entry on oeis.org

0, 1, 7, 9, 16, 25, 49, 81, 121, 169, 289, 361, 529, 841, 961, 1369, 1681, 1849, 2209, 2809, 3481, 3721, 4489, 5041, 5329, 6241, 6889, 7921, 9409, 10201, 10609, 11449, 11881, 12769, 14641, 16129, 17161, 18769, 19321, 22201, 22801, 24649, 26569, 27889, 29929, 32041, 32761
Offset: 1

Views

Author

Hugo Pfoertner, May 17 2024

Keywords

Crossrefs

A372933 are the corresponding records.

Programs

  • PARI
    a372934(upto) = {my (m=-oo); for (n=0, upto, my (s = sum(k=0, n, kronecker(n,k))); if (s>m, print1(n,", "); m=s))};
    a372934(33000)

A372935 New record minima in A071961, divided by 2 and negated.

Original entry on oeis.org

0, 1, 2, 4, 8, 11, 12, 13, 16, 19, 27, 29, 30, 34, 41, 50, 52, 56, 69, 77, 79, 81, 85, 101, 113, 115, 122, 134, 138, 149, 150, 160, 174, 177, 186, 202, 206, 210, 214, 215, 221, 240, 255, 263, 284, 314, 330, 337, 342, 358, 364, 370, 393, 424, 438, 448, 486, 506, 548, 562, 582, 626
Offset: 1

Views

Author

Hugo Pfoertner, May 17 2024

Keywords

Crossrefs

A372936 gives the corresponding positions in A071961.

Programs

  • PARI
    a372935(nmax) = {my (m=oo); for (n=0, nmax, my (s=sum (k=0, n, kronecker(n,k))); if (s
    				

A372936 Positions of new record minima A372935 in A071961.

Original entry on oeis.org

0, 67, 163, 427, 643, 1027, 1963, 2467, 2707, 3547, 4387, 5347, 6163, 6187, 12043, 12787, 19123, 19603, 19963, 26227, 41683, 43987, 45643, 53227, 54883, 64123, 70027, 80083, 90907, 93883, 109387, 134347, 144787, 158227, 165427, 183307, 198763, 233203, 235987, 236347
Offset: 1

Views

Author

Hugo Pfoertner, May 17 2024

Keywords

Comments

Apparently, a(n) == 1 (mod 6) for n>1.

Crossrefs

A372935 are the corresponding minima.

Programs

  • PARI
    a372936(nmax) = {my (m=oo); for (n=0, nmax, my (s=sum (k=0, n, kronecker(n, k))); if (s
    				
Showing 1-4 of 4 results.