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
Write a program in c++ to print the numbers from n to n2 except 5 and its multiples
What is a manipulator in c++?
Explain what is class definition in c++ ?
Difference between inline functions and macros?
Difference between delete and free.
What is vector pair in c++?
what is VOID?
What is the advantage of an external iterator.
Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?
What is array in c++ pdf?
What are the benefits of pointers?
Write about the stack unwinding?
How the virtual functions maintain the call up?
How many types of scopes are there in c++?
What is the cout in c++?