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


Please Help Members By Posting Answers For Below Questions

What do you mean by function overriding & function overloading in c++?

687


How do you clear a map in c++?

684


How do you decide which integer type to use?

662


What are single and multiple inheritances in c++?

667


What is the difference between #define debug 0 and #undef debug?

746






How would perform Pattern Matching in C++?

794


Explain the difference between class and struct in c++?

674


What is the difference between a baller and a reference in C++?

669


Describe exception handling concept with an example?

643


Is multimap sorted c++?

653


write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.

2339


Please explain class & object in c++?

677


What are stacks?

717


Define basic type of variable used for a different condition in C++?

759


What is the extraction operator and what does it do?

700