Since the expected value for a given number on the die for n throws is n times 1/6, thus 1020/6 = 170, the formula returns a chi-square value of 13.27.
1020/6 = 170, формула возвращает хи-квадрат, равный 13,27.