STS and middle-square utility