show that among any group of five (not necessary consecutive
) integers, there are two with the same remainder when
divided by 4.
Answer Posted / 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 |
Post New Answer View All Answers
Why is swift so fast?
How does work in c++?
Difference between delete and free.
Can c++ be faster than c?
Is python better than c++?
Can we delete this pointer in c++?
What is a string example?
Why is c++ a mid-level programming language?
What is the purpose of extern storage specifier?
How many standards of c++ are there?
What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random
Write bites in Turbo c++ Header ("Include") Files.
What is c++ & why it is used?
Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
How can I improve my c++ skills?