A376258 Decimal expansion of the probability where a change occurs in the optimal strategy for a coin game where you have to set aside at least one coin every round.
5, 4, 9, 5, 0, 2, 1, 7, 7, 7, 6, 4, 2, 0, 1, 5, 4, 3, 1, 4, 4, 4, 5, 6, 5, 4, 6, 8, 7, 6, 3, 8, 4, 9, 4, 6, 5, 2, 1, 3, 7, 1, 8, 6, 5, 0, 2, 9, 0, 0, 1, 7, 2, 3, 6, 7, 2, 5, 1, 6, 8, 2, 6, 1, 3, 7, 5, 2, 0, 3, 0, 6, 5, 1, 9, 7, 7, 0, 7, 7, 1, 0, 7, 2, 4, 0, 2, 4, 8, 3, 8, 0, 1, 4, 2, 9, 3, 6, 5, 9
Offset: 0
Examples
0.54950217776420154314445654687638494652137186502900172367251682613752030651977...
Links
- Wouter van Doorn, On maximizing the number of heads when you need to set aside at least one coin every round, arXiv:2406.14700 [math.CO], 2024.
Programs
-
PARI
\p 125 q = 0.5; r = 0.5; m = 2; {for(a = 1, 120, for(k = 0, 10, p = q + k/10^m; L = 10*m; v = vector(L); v[1] = p; v[2] = -p^3 + 3*p; n = 2; while(v[n] < v[1] + (n-1) && n < L, n=n+1; v[n] = v[n-1] + 1 + p^n*(n-1-v[n-1]) + n*p^(n-1)*(1-p)*max(0, n-2+p-v[n-1]) - (1-p)^n); if(n==L, r = p)); q = r; m = m + 1)} print(p);
Comments