called = Map[Mod[#, 13] &, Range[0, 51]]
{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 0, 1, 2, 3, 4, 5, 6, 7, 8, \ 9, 10, 11, 12, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 0, 1, 2, 3, \ 4, 5, 6, 7, 8, 9, 10, 11, 12}
{{0, 16175}, {1, 68929}, {2, 143830}, {3, 198761}, {4, 201272}, {5, 161134}, {6, 105438}, {7, 58535}, {8, 28166}, {9, 11655}, {10, 4119}, {11, 1394}, {12, 449}, {13, 108}, {14, 27}, {15, 7}, {16, 1}}
0.016175
He simulates 100000 random draw-cycles and counts the matches results (0, 1, 2, ... matches). I realyl like this. Describe the problem, instead of brooding on an exact solution. Mathematica is perfect for this.
No comments:
Post a Comment