Answer: It depends. The following sample program will print the average values ββfor various module values. Obviously, this is not a mathematical proof, but it should already give you a sense of how the average values ββbehave:
using System; using System.Collections.Generic; using System.Linq; class Program { static Random rand; static void Main(string[] args) { rand = new Random(); for (int modulus = 1; modulus < 1000; modulus++) { calculateAverage(modulus); } } public static void calculateAverage(int modulus) { List<int> moduloList = new List<int>(100); for (int i = 0; i < 100; i++) { int sum = 0; for (int k = 0; k < 6; k++) { sum += rand.Next(0, 33); } moduloList.Add(sum % modulus); } Console.WriteLine("Average for modulus {0}: {1}", modulus, moduloList.Average()); } }
Generated Output:
Average for modulus 1: 0 Average for modulus 2: 0,49 Average for modulus 3: 1,03 Average for modulus 4: 1,47 Average for modulus 5: 1,96 Average for modulus 6: 2,55 Average for modulus 7: 3,03 Average for modulus 8: 3,42 Average for modulus 9: 4,15 Average for modulus 10: 5,06 Average for modulus 11: 4,62 Average for modulus 12: 5,9 Average for modulus 13: 5,82 Average for modulus 14: 6,8 Average for modulus 15: 7,28 Average for modulus 16: 7,8 Average for modulus 17: 8,15 Average for modulus 18: 9,34 Average for modulus 19: 9,2 Average for modulus 20: 10,36 Average for modulus 21: 9,74 Average for modulus 22: 9,41 Average for modulus 23: 11,5 Average for modulus 24: 11,51 Average for modulus 25: 11,45 Average for modulus 26: 13,05 Average for modulus 27: 12,59 Average for modulus 28: 14,92 Average for modulus 29: 13,1 Average for modulus 30: 14,1 Average for modulus 31: 15,5 Average for modulus 32: 16,46 Average for modulus 33: 16,54 Average for modulus 34: 16,38 Average for modulus 35: 19,61 Average for modulus 36: 17,26 Average for modulus 37: 15,96 Average for modulus 38: 19,44 Average for modulus 39: 17,07 Average for modulus 40: 17,73