For $x \neq 1$:
- every $“\cdots x1x\cdots“$ gives +1 pt
- every $“\cdots x11x\cdots“$ gives +5 pts.
- every $“\cdots x111x\cdots“$ gives +10 pts.
- And so on: $n$ consecutive 1’s gives us $(n-1)5$ points.
To make it clear, the usual 6-sided dice is rolled 100 times, so for example if player rolls dice 1 time - there’s 1/6 chance of getting 1 point; rolls two times - then there’s $\frac{1}{6}\frac{5}{6}2$ chance of 1 point(“1x” or “x1”) and $\left(\frac{1}{6}\right)^2$ of getting 5 points(only if “11” rolled out). The question: what is the mean score after rolling dice 100 times?
The problem is: how do we calculate the mean when the number of rolls is so huge? It’s clear that using definition of the mean directly is not an option because number of different configurations for getting any score is immense(only if that score is not, say, 99*5 which require all the 1’s).
I tried to use induction, but it didn’t worked out, for 3-4 rolls it already gets complicated. Moreover, how am I suppose to use it? If I know mean for &n& rolls and then I add $(n+1)$th roll - it will add 0, 1 or 5 points depending on which number rolled in $n$th place. Seems like knowing mean for $n$ rolls won’t be much of a help because after one more roll chance of getting any score is different.
Another idea given to me by roommate is to fix number of ones that we get in entire 100-length sequence(so probability is fixed as well), and see what number of points we can possibly get with that number of 1’s - to know that these numbers will appear in formula for mean with known probability factor. But I’m not sure about that also because the amount of combinations is still insane.
I ran out of ideas for now. Feels like there must be some efficient, less bloody way to calculate all that because our teacher gave us only 40 minutes for that problem (and another one), which completely freaked me out. All I wanted to say - I really appreciate any of your help since I absolutely have to figure this out.
One more question: could anyone recommend some book with hard combinatorial problems in probability? Or some good textbook which could explain how to solve problems of that kind. That would be very helpful as well, thank you.
Seems like I found a solution.
Since contribution of each roll is dependent on its neighbours, and the mean function is linear operator which doesn’t care about dependence - let’s assign random value to each of 100 rolls, making their sum equal to overall score.
$n_i$ denotes i-th roll; $x$ is anything that’s not 1;
Defining value $\xi_1$ which we gonna assign to 1st and 100th roll:
$$\begin{array}{c|c|} \text{$n_1n_2$} & \text{$\xi_1$} \\ \hline xx, x1 & 0 \\ \hline 1x & 1 \\ \hline 11 & 4 \\ \hline \end{array}$$
In other words, it denotes how much 1st roll adds to the sum. In case of $n_1n_2n_3 = 112, 113, \cdots$, $n_1$ gives +4 and $n_2$ gives +1.
Next we define $\xi_i$, $i = 2, 3, \cdots, 99$
$$\begin{array}{c|c|} \text{$n_{i-1}n_{i}n_{i+1}$} & \text{$\xi_i$} \\ \hline 1x1, xx1, xxx, 1xx & 0 \\ \hline x1x, 11x & 1 \\ \hline x11 & 4 \\ \hline 111 & 5 \\ \hline \end{array}$$
$S$ - score.
$$S = \xi_1 + \cdots + \xi_{100} ~ ,$$ $$ \mathbb{E}S = \mathbb{E}\xi_1 + \cdots + \mathbb{E}\xi_{100} = 2\mathbb{E}\xi_1 + 98 \mathbb{E}\xi_2 ~ ,$$
If I’m not messed up here, $\mathbb{E}\xi_1 = 1/4$ and $\mathbb{E}\xi_2 = 55/216$, so the answer is
$\frac{1}{2} + 98\frac{55}{216} \approx 25,45$
(wow, which even correlates with QC_QAOA’s machinery answer in the comments)