Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A115867
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A115867 Number of throws of a fair die to reach a probability of at least 0.5 (50%) to have at least one sequence of n consecutive appearances of a pre-defined, fixed face k, 1<=k<=6. Obviously a(n)>=n. +0
2
4, 30, 180, 1078, 6468, 38808 (list; graph; listen)
OFFSET

1,1

LINKS

Newsgroup article Probabilityquestion of sci.math, Mar 6 2006.

EXAMPLE

Example a(n=1)=4: after first throw, probability of the

face k is 1/6, 5/6 against. After 2nd throw, probability

of face k not shown before but at the 2nd throw is (5/6)*(1/6).

After 3rd throw, probability of face k only at this throw is (5/6)^2*(1/6),

but total probability 1/6+(5/6)*(1/6)+(5/6)^2*(1/6) still less than 0.5.

After the 4th throw, total probability is

1/6+(5/6)*(1/6)+(5/6)^2*(1/6)+(5/6)^3*(1/6) > 0.5.

MAPLE

with(linalg) : # Markov state approach with probability transition matrix trans # and n+1 different states for n from 1 to 30 do trans := array(1..n+1, 1..n+1) : for co from 1 to n do trans[1, co] := 5/6 ; for ro from 2 to n +1 do trans[ro, co] := 0 ; od ; trans[co+1, co] := 1/6 : od: # initial state: a previous 4-series for ro from 1 to n do trans[ro, n+1] := 0 : od : trans[n+1, n+1] := 1 : istate := vector(n+1) : istate[1] := 1 : for ro from 2 to n+1 do istate[ro] := 0 : od : #throw die with initial state vector istate for thro from 1 do istate := multiply(trans, istate) : if ( istate[n+1] > 1/2 ) then print(n, thro) ; break ; fi ; od : od:

CROSSREFS

Sequence in context: A123351 A119697 A132849 this_sequence A057416 A089154 A113450

Adjacent sequences: A115864 A115865 A115866 this_sequence A115868 A115869 A115870

KEYWORD

more,nonn

AUTHOR

R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Mar 14 2006

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 18 20:14 EST 2008. Contains 147244 sequences.


AT&T Labs Research