A programmer writes 500 lines of computer code in 17 days. Must there have been at least 1 day when the programmer wrote 30 or more lines of code? Why?
To show that there have beenat least day when the programmer wrote or more lines code.
A programmer writes lines of computer code in days.
Using the pigeonhole principle- the pigeonhole principle states that there must be at least one box which will contain two or more objects if objects are put in boxes.
The pigeonhole principle can be expressed mathematically as , where is the number of pigeons and is the number of pigeonholes.
In the above problem and
Bartleby provides explanations to thousands of textbook problems written by our experts, many with advanced degrees!Get Started