A257161 The length of the period under Zagier-reduction of the principal indefinite quadratic binary form of discriminant D(n) = A079896(n).
1, 2, 1, 3, 5, 4, 1, 2, 2, 5, 1, 4, 7, 6, 11, 3, 1, 2, 10, 7, 2, 7, 1, 11, 9, 8, 2, 4, 21, 7, 1, 2, 4, 9, 6, 21, 2, 3, 1, 27, 11, 10, 3, 5, 17, 6, 23, 16, 1, 2, 8, 11, 2, 15, 2, 6, 2, 27, 1
Offset: 1
Keywords
Examples
For n=4, the a(4) = 3 forms in the principal cycle of discriminant A079896(4) = 13 are x^2 + 5*x*y + 3*y^2, 3*x^2 + 5*x*y + y^2, and 3*x^2 + 7*x*y + 3*y^2.
References
- D. B. Zagier, Zetafunktionen und quadratische Korper, Springer, 1981.
Crossrefs
Cf. A226166.
Formula
With D=n^2-4, a(n) equals the number of pairs (a,k) with |k| < sqrt(D), k^2 congruent to D (mod 4), a > (sqrt(D) - k)/2, a exactly dividing (D-k^2)/4.
Extensions
Offset corrected by Robin Visser, Jun 08 2025
Comments