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

A350872 Number of coincidence site lattices of index n in square lattice.

Original entry on oeis.org

1, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0
Offset: 1

Views

Author

Andrey Zabolotskiy, Jan 20 2022

Keywords

Comments

A coincidence site lattice (CSL), or coincidence sublattice, is a full-rank sublattice arising as an intersection of the parent lattice with its copy rotated around the origin. It is necessarily primitive.
A primitive sublattice of the square lattice is a CSL if it is square (i. e., similar to the parent lattice) and has odd index.
In this sequence, any two CSLs differing by any isometry are counted as distinct.
a(n) is also the number of ordered pairs of coprime integers (p, q) with p >= 0 and q > 0 such that p^2 + q^2 = n^2.

Examples

			a(5) = 2 index-5 CSLs have bases (2, 1), (-1, 2) and (1, 2), (-2, 1).
		

Crossrefs

Cf. A031358 (nonzero quadrisection), A004613 (positions of nonzero terms), A024362, A154269, A338690, A271102.
Cf. enumeration of wider classes of sublattices of Z^2: A000203 (all sublattices), A350871 (all well-rounded sublattices), A002654 (all square sublattices), A001615 (all primitive sublattices), A000089 (all primitive square sublattices).
Cf. enumeration of CSLs in other lattices: A331140 (Z^4), A331139 (D_4), A331142 (A_4).

Programs

  • Mathematica
    csl[1] = 1;
    csl[n_] := With[{f = First@Transpose@FactorInteger@n}, If[Union@Mod[f, 4] == {1}, 2^Length@f, 0]];
    Array[csl, 87]
  • PARI
    a(n) = {my(f = factor(n)); prod(i = 1, #f~, if(f[i, 1]%4 == 1, 2, 0));} \\ Amiram Eldar, Oct 23 2023

Formula

Multiplicative with a(p^e) = 2 if p == 1 (mod 4), otherwise 0.
a(4*n+1) = A031358(n), other terms are 0.
a(n) = 2 * A024362(n) for n > 1.
Dirichlet convolution of A000089 and A154269.
Dirichlet convolution of A338690 and A271102.
From Amiram Eldar, Oct 23 2023: (Start)
Dirichlet g.f.: Product_{primes p == 1 (mod 4)} (1 + 1/p^s)/(1 - 1/p^s).
Sum_{k=1..n} a(k) = (1/Pi) * n + O(sqrt(n)*log(n)).
(both from Baake and Zeiner, 2017) (End)
Showing 1-1 of 1 results.