Ahead of the pack

A A and B B are the only candidates who contest in an election. They secure 11 11 and 7 7 votes, respectively. In how many ways can this happen if it is known that A A stayed ahead of B B throughout the counting process of votes?

5042 5342 7072 7092 15912 31824 31876

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

4 solutions

This is known as the ballot box problem .

With A A getting p p votes and B B getting q q votes, with p > q p \gt q , the general solution is

( p + q 1 p 1 ) ( p + q 1 p ) . \dbinom{p + q - 1}{p - 1} - \dbinom{p + q - 1}{p}.

In this case we have p = 11 p = 11 and q = 7 q = 7 , and thus the solution is

( 17 10 ) ( 17 11 ) = 7072. \dbinom{17}{10} - \dbinom{17}{11} = 7072.

Proofs are provided in the link.

Thank you for the solution. The link had a beautiful proof by reflection.

Raghav Vaidyanathan - 6 years, 1 month ago

Log in to reply

Yes, that proof is definitely elegant :)

Aalap Shah - 6 years, 1 month ago

@Brian Charlesworth , we really liked your comment, and have converted it into a solution. If you subscribe to this solution, you will receive notifications about future comments.

Brilliant Mathematics Staff - 6 years, 1 month ago

Could u pls explain it a little more?

Nandni Jotwani - 4 years, 11 months ago

Thanks for the solution

D K - 2 years, 10 months ago
Labhansh Agrawal
Apr 24, 2015

i do not know the solution through combinatorics. I solved it by writing recursive code for the counting process(it's in c).

#include <stdio.h>
int count=0;   //number of ways
const int Amax=11;
const int Bmax=7;      //final vote count
void vote(int a, int b){ //a & b are their current vote counts
    if(a==Amax||b==Bmax){ //Base case
        count++;
        return;
    }
    vote(a+1, b);     //let one vote for A and we proceed counting
    if(b<a-1){
        vote(a, b+1);    //let one vote for B & counting ahead
    }
}
int main() {
    vote(0, 0); 
    printf("%d", count);
    return 0;
}

you can run this code for different values of votes.

just change Amax & Bmax in lines #3 & #4

remember Amax>Bmax

I do not know how to solve this problem yet. It appeared in an exam that I took. In the solutions, only the following formula was given:

( m + n n ) × ( m n ) ( m + n ) = 7072 \begin{pmatrix} m+n \\ n \end{pmatrix}\times \frac { (m-n) }{ (m+n) } =7072

Where, m = 11 , n = 7 m=11, n=7 and ( N r ) \begin{pmatrix} N \\ r \end{pmatrix} is the coefficient of x r x^r in ( 1 + x ) N (1+x)^N .

Please post ideas/solutions. Thanks!

Abhisek Panigrahi
Oct 30, 2017

I didn't know about ballot box problem, so I solved using my own technique as follows

Where n 1 n 2 n_1\ n_2 denotes A has got n 1 n_1 votes while B has got n 2 n_2 votes. The values in () are the number of ways to get to n 1 n 2 n_1\ n_2 . The idea is similar to pascal's triangle with the restrictions.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...