Let $((x)):=x-\lfloor x \rfloor -1/2$, where $\lfloor x \rfloor $ denotes the greatest integer $\le x$. 
Let $a,b,c,...$ denote arbitrary natural numbers. It is clear that
$$ \int\_0^a ((x/a)) dx =0.$$
A little exercise shows that 
$$ \int\_0^{ab} ((x/a))((x/b)) dx =\frac{\gcd(a,b)^2}{12}.$$
It appears that 
$$ \int\_0^{abc} ((x/a))((x/b))((x/c)) dx =0,$$
but I have not been able to determine a general formula for 
$$ \int\_0^{abcd} ((x/a))((x/b))((x/c))((x/d))dx.$$
I would be interested in a general formula for the last integral, and for similar integrals with a larger number of factors. It seems that these integrals, or the corresponding sums, such as
$$ \sum\_{k=0}^{ab-1} ((k/a))((k/b)) = \frac{\gcd(a,b)^2-1}{12},$$
should be in the literature, but I have not been able to find a reference. 



Integrals of products of fractional parts
One place where I have seen this come up is in a paper of [Lemke Oliver and Soundararajan](https://arxiv.org/abs/1709.06168). Here such quantities appear naturally in computing moments of some remainder terms, and Proposition 3.1 gives some basic properties. The sums are very closely related to the integrals (see Proposition 3.2 there). These are not too hard to establish, and I don't know really anything non-trivial about these integrals. I think it would be quite interesting to understand even the four fold integrals better. 


