A particle is bouncing randomly in a two-dimensional box. How far does it travel between bounces, on average?

Suppose the particle is initially at some random position in the box and is traveling in a straight line in a random direction and rebounds normally at the edges.

Particle in Box Solution

lib/config.php:156: Notice: Undefined variable: accept

lib/DbaDatabase.php:134: Warning: dba_replace() [<a href='function.dba-replace'>function.dba-replace</a>]: You cannot perform a modification to a database without proper access