Unit squares modulo powers of two #
Every element of the form 1 + 8a is the square of a unit modulo 2^{k+1}.
The square root has the form 1 + 4t: the bijection t ↦ 2t² + t supplies t.
In particular, an integer congruent to one modulo eight gives a unit square at every
positive dyadic exponent. The variant 5 - 4r, for a unit r, provides the rotation
coefficient for pairs of odd cyclic dyadic forms.
For any modulus divisible by sixteen, the kernel of reduction to half the modulus
consists of squares (ZMod.isSquare_of_cast_half_eq_one). This also applies when the
modulus has odd factors and gives the dyadic conductor bound for quadratic characters.
References #
- O. T. O'Meara, Introduction to Quadratic Forms, §93.
- V. V. Nikulin, Integral symmetric bilinear forms and some of their applications, Proposition 1.8.2(c).