presto-main/src/main/java/io/prestosql/operator/aggregation/histogram/HashUtil.java/HashUtil/nextSumOfSquares
class HashUtil:    public static int nextSumOfSquares(int probeCount)
    {
        return (probeCount * (probeCount * probeCount + 1)) / 2;
    }