Progress bars

Algebra Level 2

Suppose we want to run n n identical programs on a computer. There are 2 progress bars showing the progress of the programs. One shows the progress of the current program and the other shows the total progress ( i.e. there are 6 60-step programs, one progress bar shows Program 1 step 30/60, the other shows 8.33 %). Find a formula for the number of times the first progress bar passes the second one during the entire process ( running all n n programs )

There is no formula. n 1 n - 1 n 2 n - 2 n n

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Tan Li Xuan
Oct 3, 2014

As the 2nd progress bar only finishes once during the entire process and the 1st finished n n times, we see that the bars meet n n times. We might be tempted to simply put n n as the answer. However, the first time the bars meet is at the starting point, so the 1st bar does not pass the 2nd bar, therefore it is not counted. The same reasoning applies to the last meet, therefore we can conclude that the answer is n 2 n - 2 .

I don't understand haha

Jia Quan Ng - 6 years, 8 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...