An Essay on Bitcoin attacks (Phrased in terms of a Two-Phase Soccer Match) By Shalosh B. Ekhad Assume that two Soccer teams, the Good Guys Team and the Bad Guys Team play\ each other. We assume that the probability of the Bad Guys Team scoring the next goal is q, and hence that the probability of the Good Guys Team scoring the next goal \ is 1-q. We also assume that the outcome of each goal is INDEPENDENT of the outcomes \ of the other goals. We assume throughout this essay that q is strictly positive but less than 1/\ 2, so the Good Guys have an advantage. There are two phases. Phase I: The teams play until the Good Guys Team scores n goals. By this tim\ e, the Bad Guys Team scored a certain number of goals let's call it m. In the unlikely event that m is larger or equal to n, the g\ ame ends immediately, and the Bad Guys Team is declared the winner. Otherwise, the game proceeds to Phase II. Phase II: Keep playing until the Bad Guys Team forces a tie, i.e. they both \ have the same number of goals, and then the Bad Guys Team is declared the winner, or the Good Guys Team is so much a\ head (say by a Zillion goals), to make it hopeless for the Bad Guys to catch up, in which case the Good Guys Team w\ on. Definition: Let, P[n](q), that we will call the Rosenfeld polynomials (in ho\ nor of Meni Rosenfeld, who wrote the great article Analysis of hashrate-based double spending, ArXiv 1402.2009v1 [cs. CR], 9 Fe\ b. 2014. ) be the probability of the Bad Guys Team winning. Theorem 0 (Meni Rosenfeld, ArXiv 1402.2009v1, Eq. (1), p. 7) / n \ |----- | n | \ m| P[n](q) = 1 - (1 - q) | ) binomial(n + m - 1, m) q | | / | |----- | \m = 0 / / n \ |----- | n | \ m| + q | ) binomial(n + m - 1, m) (1 - q) | | / | |----- | \m = 0 / Using the so-called Zeilberger algorithm, we find a second-order linear recu\ rrence that enables the fast computation of the first 10000, say, Rosenfeld polynomials, much faster than\ using the definition. Theorem 1: The Rosenfeld polynomials, P[n](q), satisfy the following linear recurrence with polynomial coefficients. 2 2 (4 n q - 4 n q - 6 q - n + 6 q + 1) P[n - 1](q) P[n](q) = - ------------------------------------------------- n - 1 2 q (q - 1) (2 n - 3) P[n - 2](q) + --------------------------------- n - 1 with initial conditions: P[0](q) = 1, P[1](q) = 2 q and in Maple format P[n](q) = -(4*n*q^2-4*n*q-6*q^2-n+6*q+1)/(n-1)*P[n-1](q)+2*q*(q-1)*(2*n-3)/(n-1 )*P[n-2](q) P[0](q) = 1, P[1](q) = 2*q In another interesting paper, by Cyril Grunspan and Ricardo Perez-Marco, en\ titled Double Speed Races arXiv: 1702.02867v2 [cs.CR] 17 Feb 2017 the authors stated and proved the following asymptotic formula for P[n](q) (\ valid, of course, for 0