OFFSET
1,8
COMMENTS
After a(2), this matches A034380 except for n = 63, 65, 80, 85, ... - R. J. Mathar, Feb 27 2009 [Updated by Andrey Zabolotskiy, May 09 2018]
LINKS
Andrey Zabolotskiy, Table of n, a(n) for n = 1..5000
J. S. Rutherford, Sublattice enumeration. IV. Equivalence classes of plane sublattices by parent Patterson symmetry and colour lattice group type, Act. Cryst. A65 (2009) 156-163, Table 5 symmetry *mm2.
FORMULA
MATHEMATICA
a[n_] := If[n <= 2, 0, Sum[Boole[Mod[k^2, n] == 1], {k, 1, n}]/2];
Table[a[n], {n, 1, 100}] (* Jean-François Alcover, Apr 12 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Feb 25 2009
EXTENSIONS
New name and more terms from Andrey Zabolotskiy, May 09 2018
STATUS
approved