\r\n" );
document.write( "The probability that the 1st roll is a 4 is \r\n" );
document.write( "
, the 1st term\r\n" );
document.write( "The probability that the 1st roll is not a 4 and the 2nd one is a 4 is\r\n" );
document.write( "
, the 2nd term\r\n" );
document.write( "The probability that the 1st 2 rolls are not 4's and the 3rd one is a 4 is\r\n" );
document.write( "
, the 3rd term\r\n" );
document.write( "The probability that the 1st 3 rolls are not 4's and the 4th one is a 4 is\r\n" );
document.write( "
, the 4th term\r\n" );
document.write( "...\r\n" );
document.write( "The probability that the 1st x-1 rolls are not 4's and the xth one is a 4 is\r\n" );
document.write( "
, the xth term\r\n" );
document.write( "\r\n" );
document.write( "So\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "Notice that theoretically (mathematically) it could take you a billion\r\n" );
document.write( "rolls, or a million years, [lol] to roll your first 4. [if you had an\r\n" );
document.write( "extremely stubborn die!!!]\r\n" );
document.write( "\r\n" );
document.write( "The sum of all values of f(x) is an infinite series and the sum of the\r\n" );
document.write( "infinite series is:\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "where a1 = first term = 1/6, and r = 5/6\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "Edwin
\n" );
document.write( " \n" );
document.write( "