Difference between revisions of "Overcounting"

m (created counting internal link and bolded article name)
(20 intermediate revisions by 12 users not shown)
Line 1: Line 1:
'''Overcounting''' is the process of [[counting more]] than what you need and then systematically subtracting the parts which do not belong.
+
Strategic '''overcounting''' is the process of counting more than desired and then systematically "correcting" for overcounted elements by removing them from the total count via subtraction or division. The idea of strategic overcounting is fundamental to [[combinatorics]] and plays a role in incredibly important counting tools such as [[combinations]] and the [[Principle of Inclusion-Exclusion]].
  
 +
==Examples==
  
== Example AIME 1992 #5 ==
+
An example of a classic problem is as follows:
Let S be the set of all rational numbers <math>{r}</math>, <math>0 < r < 1</math>, that have a repeating decimal expansion in the form <math>0.abcabcabc\dots</math>, where the digits a, b, and c are not necessarily distinct.  To write the elements of S as fractions in lowest terms, how many numerators are required? ([[AIME]] 1992 #5)
 
  
All repeating fractions can be expressed as a number over 999.  Hence, there are <math>10*10*10 - 1 = 999</math> possibilities (since we cannot have zero).  We know, however, that some of these numerators have common factors with 999 and will, therefore, be reduced, so we must subtract them from our original count.  The prime factorization of 999 is $3^3*37$, so we need to subtract all multiples of 3 and 37;
+
"How many numbers less than or equal to 100 are divisible by either 2 or 3?"
<br><center><math>999 - 333 - 27 = 639</math></center><br>
 
But, we have subtracted the multiples of <math>37*3</math> twice so we must add them back and also we have subtracted the multiples of <math>3^4</math> which will produce unique numerators so we need to add them back as well.  Our final number is thus,
 
<br><center><math>639 + 9 + 12 = 660</math></center><br>
 
  
''(This seems to be more inclusion exclusion but it was the best example I could find)''
+
Solution: Clearly, there are 50 numbers less than 100 that are divisible by 2 and 33 that are divisible by 3. However, we note that we overcount several numbers, such as 12, which is divisible by both 2 and 3. To correct for this overcounting, we must subtract out the numbers that are divisible by both 2 and 3, as we have counted them twice. A number that is divisible by both 2 and 3 must be divisible by 6, and there are 16 such numbers. Thus, there are <math>50+33-16=\boxed{67}</math> numbers that are divisible by either 2 or 3.
 +
(Note that it is not a coincidence that 67 is close to two-thirds of 100! We can approach this problem in a constructive way, building the set based on the remainders when divided by 3, but that is a different subject).
 +
 
 +
Another basic example is combinations. In these, we correct for overcounting with division, by dividing out what we overcount (as opposed to above where we subtracted it out).
 +
 
 +
Here is MATHCOUNTS 2008 National Target #1: Try to solve this.
 +
 
 +
"How many numbers less than or equal to 100 are divisible by 2 or 3 but not 4?".
 +
 
 +
Now see we have another type of overcounting. For example, we have <math>n</math> people at a party and everyone will handshake with each other. Suppose we are given an order to count the number of handshakes. It's not a matter of a great deal if there are less than 10 persons. But assume a party from the President, there will be millions of people. Now the task seems impossible without mathematics. Suppose we know the total number of people invited to the party, say <math>n</math>.
 +
 
 +
One person will handshake with all others except himself,i.e, he will handshake with <math>n-1</math> people.Now since the total of people in the party is <math>n</math>.So there will be <math>n*(n-1)</math> handshakes. Now let's try our formula for two people. According to the formula we get 2 handshakes, but wait, we will have only 1 handshake between two persons. That means we have overcounted somewhere.
 +
 
 +
Actually, we counted 1 handshake twice for the two persons. In our formula, we have overcounted each handshake twice. One handshake for Person A to Person B and another for Person B to person A.So basically, <math>2h = n*(n-1) \implies h = \frac{n*(n-1)}{2}</math> where h is the number of handshakes. Now our formula tally with our experiment results. (To easily solve a problem, we overcount and then divide with number of times we overcounted)   
 +
 
 +
Here is a question to try:
 +
 
 +
"How many diagonals does an n-sided polygon have?"
 +
Answer to the question and lots more is given in this [http://www.artofproblemsolving.com/Videos/external.php?video_id=58 (video)]
 +
Other examples of overcounting are shown in the videos below.
 +
 
 +
==Related Videos==
 +
 
 +
* [http://www.artofproblemsolving.com/Videos/external.php?video_id=59 (Counting the Number of Arrangements of Letters in a Word)]
 +
* [http://www.artofproblemsolving.com/Videos/external.php?video_id=60 (Counting pairs)]
 +
* [http://www.artofproblemsolving.com/Videos/external.php?video_id=57 (Counting Objects in a Circle Part 1)]
 +
* [http://www.artofproblemsolving.com/Videos/external.php?video_id=61 (Counting Objects in a Circle Part 2)]
 +
== More Examples ==
 +
 
 +
* [[2004 AIME I Problems/Problem 3|AIME 2004I/3]]
 +
 
 +
==Introductory Problems==
 +
*How many different words can be formed with the letters <math>AAAABBCCDDDPPP</math>?(Not necessarily meaningful words)  
 +
 
 +
== See also ==
 +
* [[Casework]]
 +
* [[Complementary counting]]
 +
* [[Constructive counting]]
 +
 
 +
{{stub}}
 +
[[Category:Definition]]
 +
[[Category:Combinatorics]]

Revision as of 20:59, 17 May 2021

Strategic overcounting is the process of counting more than desired and then systematically "correcting" for overcounted elements by removing them from the total count via subtraction or division. The idea of strategic overcounting is fundamental to combinatorics and plays a role in incredibly important counting tools such as combinations and the Principle of Inclusion-Exclusion.

Examples

An example of a classic problem is as follows:

"How many numbers less than or equal to 100 are divisible by either 2 or 3?"

Solution: Clearly, there are 50 numbers less than 100 that are divisible by 2 and 33 that are divisible by 3. However, we note that we overcount several numbers, such as 12, which is divisible by both 2 and 3. To correct for this overcounting, we must subtract out the numbers that are divisible by both 2 and 3, as we have counted them twice. A number that is divisible by both 2 and 3 must be divisible by 6, and there are 16 such numbers. Thus, there are $50+33-16=\boxed{67}$ numbers that are divisible by either 2 or 3. (Note that it is not a coincidence that 67 is close to two-thirds of 100! We can approach this problem in a constructive way, building the set based on the remainders when divided by 3, but that is a different subject).

Another basic example is combinations. In these, we correct for overcounting with division, by dividing out what we overcount (as opposed to above where we subtracted it out).

Here is MATHCOUNTS 2008 National Target #1: Try to solve this.

"How many numbers less than or equal to 100 are divisible by 2 or 3 but not 4?".

Now see we have another type of overcounting. For example, we have $n$ people at a party and everyone will handshake with each other. Suppose we are given an order to count the number of handshakes. It's not a matter of a great deal if there are less than 10 persons. But assume a party from the President, there will be millions of people. Now the task seems impossible without mathematics. Suppose we know the total number of people invited to the party, say $n$.

One person will handshake with all others except himself,i.e, he will handshake with $n-1$ people.Now since the total of people in the party is $n$.So there will be $n*(n-1)$ handshakes. Now let's try our formula for two people. According to the formula we get 2 handshakes, but wait, we will have only 1 handshake between two persons. That means we have overcounted somewhere.

Actually, we counted 1 handshake twice for the two persons. In our formula, we have overcounted each handshake twice. One handshake for Person A to Person B and another for Person B to person A.So basically, $2h = n*(n-1) \implies h = \frac{n*(n-1)}{2}$ where h is the number of handshakes. Now our formula tally with our experiment results. (To easily solve a problem, we overcount and then divide with number of times we overcounted)

Here is a question to try:

"How many diagonals does an n-sided polygon have?" Answer to the question and lots more is given in this (video) Other examples of overcounting are shown in the videos below.

Related Videos

More Examples

Introductory Problems

  • How many different words can be formed with the letters $AAAABBCCDDDPPP$?(Not necessarily meaningful words)

See also

This article is a stub. Help us out by expanding it.