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.

A215200 Triangle read by rows, Kronecker symbol (n-k|k) for n >= 1, 1 <= k <= n.

Original entry on oeis.org

1, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, -1, -1, 1, 0, 1, 0, 0, 0, 1, 0, 1, -1, 1, 1, -1, 1, 0, 1, 0, -1, 0, -1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1, 0, 0, 0, -1, 0, 1, 0, 1, 1, -1, 1, 1, 1, 1, -1, 1, 1, 0, 1, 0, 0, 0, -1, 0, -1, 0, 0, 0, 1, 0
Offset: 1

Views

Author

Peter Luschny, Aug 05 2012

Keywords

Comments

Signed version of A054521.

Examples

			Triangle begins:
  1,
  1,  0,
  1,  1,  0,
  1,  0,  1, 0,
  1, -1, -1, 1,  0,
  1,  0,  0, 0,  1, 0,
  1, -1,  1, 1, -1, 1,  0,
  1,  0, -1, 0, -1, 0,  1, 0,
  1,  1,  0, 1,  1, 0,  1, 1, 0,
  1,  0,  1, 0,  0, 0, -1, 0, 1, 0,
From _Jianing Song_, Dec 26 2018: (Start)
This sequence can also be arranged into a square array T(n,k) = Kronecker symbol(n|k) with n >= 0, k >= 1, read by antidiagonals:
  1  0  0  0  0  0  0 ... ((0|k) = A000007(k+1))
  1  1  1  1  1  1  1 ... ((1|k) = A000012)
  1  0 -1  0 -1  0 -1 ... ((2|k) = A091337)
  1 -1  0  1 -1  0 -1 ... ((3|k) = A091338)
  1  0  1  0  1  0  1 ... ((4|k) = A000035)
  1 -1 -1  1  0  1 -1 ... ((5|k) = A080891)
  1  0  0  0  1  0 -1 ... ((6|k) = A322796)
  1  1  1  1 -1  1  0 ... ((7|k) = A089509)
  ... (End)
		

References

  • Henri Cohen: A Course in Computational Algebraic Number Theory, p. 29.

Crossrefs

Rows of square array include: A000012, A091337, A091338, A000035, A080891, A322796, A089509.

Programs

  • Magma
    /* As triangle */ [[KroneckerSymbol(n-k, k):  k in [1..n]]: n in [1..21]]; // Vincenzo Librandi, Apr 24 2018
  • Maple
    A215200_row := n -> seq(numtheory[jacobi](n-k,k),k=1..n);
    for n from 1 to 13 do A215200_row(n) od;
  • Mathematica
    Column[Table[KroneckerSymbol[n - k, k], {n, 10}, {k, n}], Center] (* Alonso del Arte, Aug 06 2012 *)
  • PARI
    T(n,k) = kronecker(n-k, k);
    tabl(nn) = for(n=1, nn, for(k=1, n, print1(T(n,k), ", ")); print); \\ Michel Marcus, Apr 24 2018
    
  • Sage
    def A215200_row(n): return [kronecker_symbol(n-k,k) for k in (1..n)]
    for n in (1..13): print(A215200_row(n))
    

A215283 Row sums of triangle A215200.

Original entry on oeis.org

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

Views

Author

Peter Luschny, Aug 07 2012

Keywords

Comments

The unsigned version of A215200 is A054521 which has as row sums the Euler totient function A000010.

Crossrefs

Programs

  • Maple
    f:= n -> add(numtheory:-jacobi(n-k,k),k=1..n); # Robert Israel, Mar 11 2018
  • Mathematica
    a[n_] := Sum[ KroneckerSymbol[n - k, k], {k, 1, n}]; Table[a[n], {n, 1, 81}] (* Jean-François Alcover, Jul 02 2013 *)
  • PARI
    a(n) = sum(k = 1, n, kronecker(n-k, k)); \\ Amiram Eldar, Nov 07 2024
  • Sage
    def A215200_row(n): return [kronecker_symbol(n-k, k) for k in (1..n)]
    [sum(A215200_row(n)) for n in (1..81)]
    

Formula

a(n) = Sum_{k=1..n} (n-k | k) where (i | j) is the Kronecker symbol.

A215285 Numbers m such that Sum_{k=1..m} (m - k | k) = phi(m), where (i|j) is the Kronecker symbol and phi(m) is the Euler totient function.

Original entry on oeis.org

1, 2, 3, 4, 6, 9, 16, 36, 64, 100, 144, 196, 256, 324, 400, 484, 576, 676, 784, 900, 1024, 1156, 1296, 1444, 1600, 1764, 1936, 2116, 2304, 2500, 2704, 2916, 3136, 3364, 3600, 3844, 4096, 4356, 4624, 4900, 5184, 5476, 5776, 6084, 6400, 6724, 7056, 7396, 7744
Offset: 1

Views

Author

Peter Luschny, Aug 07 2012

Keywords

Comments

n is in this sequence if and only if sum_{k=1..n} (n-k|k) = sum_{k=1..n} |(n-k|k)|.

Crossrefs

Programs

  • Mathematica
    Reap[ Do[ If[ Sum[ KroneckerSymbol[n - k, k], {k, 1, n}] == EulerPhi[n], Print[n]; Sow[n]], {n, 1, 8000}]][[2, 1]] (* Jean-François Alcover, Jul 29 2013 *)
  • PARI
    is(m) = sum(k = 1, m, kronecker(m-k, k)) == eulerphi(m); \\ Amiram Eldar, Nov 08 2024
  • Sage
    def A215200_row(n): return [kronecker_symbol(n-k, k) for k in (1..n)]
    [n for n in (1..1000) if sum(A215200_row(n)) == euler_phi(n)]
    
Showing 1-3 of 3 results.