a=10
the formula is 10*11/2 = 55
it's not an average, but you only have to know the goal of your file