show that among any group of five (not necessary consecutive
) integers, there are two with the same remainder when
divided by 4.
Answer / lalala
generalized pigeon principle: If N objects are placed into k
boxes, then there is at least one box containing at least (ceiling) N/k objects.
let k = 4 ;
find N:
N/4 = 2 , N= 5, in order to get the answer 2..
| Is This Answer Correct ? | 17 Yes | 19 No |
What is expression parser in c++
What is pointer to array in c++?
How should a contructor handle a failure?
What are the advantages of prototyping?
What apps are written in c++?
What is prototype for that c string function?
Explain friend class?
When the design recommends static functions?
What is the difference between a definition and a declaration?
To what does “event-driven” refer?
Write a program using display() function which takes two arguments.
I need to find a specific string between two strings how do I do it?