Robots are used to prepare bags of sliced apples. One particularly bad robot gets tired as his power starts to run low, so making the
th bag takes the robot
actions.
For example, the robot can make the 1st bag with just 5 actions, but by the 100th bag, it takes the robot 104 actions. The total number of actions needed to make bags of sliced apples (for large ) is:
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.
In total, n bags will take ( 1 + 4 ) + ( 2 + 4 ) + ( 3 + 4 ) + … + ( n + 4 ) actions by the robot. We can take out the n copies of 4, and see that this is 4 n + ( 1 + 2 + 3 + … + n ) actions by the robot. Since 1 + 2 + 3 + … + n = 2 n ( n + 1 ) ≈ 2 n 2 , the robot uses ≈ 4 n + 2 1 n 2 = Θ ( n 2 ) actions.