$A$ and $B$ are two sets of consecutive integers, $|A|=m \text{ and } |B|=2m$ and sum of the elements of $A$ and $B$ are $2m$ and $m$ respectively. If the difference between the largest numbers of $A$ and $B$ is $99$, how could we find the value of $m$ ?
How to compute the cardinality of these two sets?
2
$\begingroup$
elementary-set-theory
-
2It'll be nice if you include what you tried and where you are stuck. – 2011-11-19
1 Answers
3
Let $A=\{k_a, k_a +1,\dots,k_a+m-1\}$ and $B=\{k_b, k_b +1,\dots,k_b+2m-1\}$. Then we have:
$$S_a = m k_a + \frac{(m-1) m}{2}$$
$$S_b = 2m k_b + \frac{(2m-1) 2m}{2}$$
We are given that $S_a = 2m$ and $S_b = m$. Thus,
$$m k_a + \frac{(m-1) m}{2} = 2m$$
$$2m k_b + \frac{(2m-1) 2m}{2} = m$$
We also know that:
$$(k_b+2m-1) -(k_a+m-1) = 99$$ or
$$(k_a+m-1) - (k_b+2m-1) = 99$$
Does the above help?