Sums of squares with restrictions involving primes (1811.08341v4)
Abstract: The well-known Lagrange's four-square theorem states that any integer $n\in\mathbb{N}={0,1,2,...}$ can be written as the sum of four squares. Recently, Z.-W. Sun investigated the representations of $n$ as $x2+y2+z2+w2$ with certain linear restrictions involving the integer variables $x,y,z,w$. In this paper, via the theory of quadratic forms, we further study the representations $n=x2+y2+z2+w2$ (resp., $n=x2+y2+z2+2w2$) with certain linear restrictions involving primes. For example, we obtain the following results: (i) Each positive integer $n>1$ can be written as $x2+y2+z2+2w2$ ($x,y,z,w\in\mathbb N$) with $x+y$ prime. (ii) Every positive integer can be written as $x2+y2+z2+2w2$ ($x,y,z,w\in\mathbb N$) with $x+2y$ prime. (iii) Let $k$ be any positive integer, and let $d\ge 2{k-1}$ be a positive odd integer with $4d2+1$ prime. Then any sufficiently large integer can be written as $x2+y2+z2+2w2$ $(x,y,z,w\in\mathbb N)$ with $x+2dy=pk$ for some prime $p$.