English

Finding Sums of Four Squares via Complex Continued Fractions

Number Theory 2022-05-03 v1

Abstract

The problem of representing a given positive integer as a sum of four squares of integers has been widely concerned for a long time, and for a given positive odd nn one can find a representation by doing arithmetic in a maximal order of quaternion algebra once a pair of (positive) integers x,yx,y with x2+y21modnx^2+y^2\equiv-1\mod n is given. In this paper, we introduce a new method to find a representation of odd integer ww given x,yx,y satisfying the above requirement. This method can avoid the complicated non-commutative structure in quaternion algebra, which is similar to the one we use to obtain a representation of a prime p1mod4p\equiv1\mod4 as sum of two squares by doing continued fraction expansions, except that here we will expand complex number using Hurwitz algorithm.

Keywords

Cite

@article{arxiv.2205.00642,
  title  = {Finding Sums of Four Squares via Complex Continued Fractions},
  author = {Zhaonan Wang and Yingpu Deng},
  journal= {arXiv preprint arXiv:2205.00642},
  year   = {2022}
}