so what i actually have here is the sum of the values n minus one compares, plus one swap, but as two comparisons one swap, so one just swaps but actually the terms i'm looking at here are the number of comparisons the sum of the numbers one to n minus one is what we're trying to compute here.