• Non ci sono risultati.

X v∈{0,1}n Xn(v), where v is a bit string of length n

N/A
N/A
Protected

Academic year: 2021

Condividi "X v∈{0,1}n Xn(v), where v is a bit string of length n"

Copied!
1
0
0

Testo completo

(1)

Problem 11623

(American Mathematical Monthly, Vol.119, February 2012) Proposed by Aruna Gabhe and M. N. Deshpande (India).

A fair coin is tossed n times and the results recorded as a bit string. A run is a maximal subsequence of (possibly just one) identical tosses. Let the random variable Xnbe the number of runs in the bit string not immediately followed by a longer run. (For instance, with bit string 1001101110, there are six runs, of lengths 1, 2, 2, 1, 3, and 1. Of these, the 2nd, 3rd, 5th, and 6th are not followed by a longer run, so X10= 4.) Find E(Xn).

Solution proposed by Roberto Tauraso, Dipartimento di Matematica, Universit`a di Roma “Tor Vergata”, via della Ricerca Scientifica, 00133 Roma, Italy.

Let

an= 2nE(Xn) = X

v∈{0,1}n

Xn(v),

where v is a bit string of length n. Then, it easy to verify that the first terms of this sequence are:

2, 6, 14, 34, 78, 178, 398, 882, 1934, 4210, . . . . We denote by 0a and 1a respectively a run of 0s or 1s of length a ≥ 1.

It follows that as v runs over the 2n possible choises for n ≥ 2, we have that (1) if v = 0n then Xn+1(v 0) = Xn(v) and Xn+1(v 1) = Xn(v) + 1, (2) if v = w 1j0k with 1 ≤ j < k or 1 ≤ k < j then

Xn+1(v 0) = Xn(v) and Xn+1(v 1) = Xn(v) + 1,

(3) if v = w 1k0k with k ≥ 1 then Xn+1(v 0) = Xn(v) − 1 and Xn+1(v 1) = Xn(v) + 1, (4) if v = w 0k1k with k ≥ 1 then Xn+1(v 0) = Xn(v) + 1 and Xn+1(v 1) = Xn(v) − 1, (5) if v = w 0j1k with 1 ≤ j < k or 1 ≤ k < j then

Xn+1(v 0) = Xn(v) + 1 and Xn+1(v 1) = Xn(v), (6) if v = 1n then Xn+1(v 0) = Xn(v) + 1 and Xn+1(v 1) = Xn(v).

Therefore, for n ≥ 2,

an+1= X

v∈{0,1}n

Xn+1(v 0) + X

v∈{0,1}n

Xn+1(v 1)

= 2an+ 2n

bn/2c−1

X

k=1

2n−2k− 2 = 2an+2(2n− (−1)n)

3 .

Since a1= 2 and a2= 6, by solving the above linear recurrence equation we find that E(Xn) = an

2n =(3n + 7) + 2(−1/2)n

9 for any n ≥ 1.



Riferimenti

Documenti correlati

Bayesian nonparametrics, Central limit theorem, Conditional iden- tity in distribution, Indian buffet process, Random measure, Random reinforcement, Stable

But these properties are far from to be essential: in particular, more important would be to know that the matrix A is well conditioned.. (Of course, all this is convenient if S is

[r]

(Suggestion: use a orthonormal basis of V 2 such that one of its vectors is parallel to

(b) No: the unique plane containing the first three points has equation 3x − 2z = −1, and the fourth point is not contained

Otherwise, you can compute a basis as in the

NOTE: In the solution of a given exercise you must (briefly) explain the line of your argument1. Solutions without adequate explanations will not

In fact we can find an orthonormal basis of eigenvectors, corresponding respectively to the eigenvalues 2, −2, 3, −3... All answers must be given using the usual