Sums of squares in rings of integers with 2 inverted
We prove that in a ring of S-integers containing 1/2, any totally positive element is a sum of five squares. We also exhibit examples of such rings where some totally positive elements cannot be written as the sum of four squares.