Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Let $f(x)$ be the set of all even numbers smaller or equal than $x$.

For example, $f(10)=\{0,2,4,6,8,10\}$. Let $g(x)=2x$.

Consider the double sum: $$\sum_{i=1}^4 \sum_{j\in(g \circ f)(i)} j$$

I know that $(g \circ f)(i)=g(f(i))$

Where should the summation start from?

share|cite|improve this question

Write out the sums step by step:

$$\begin{align*} \sum_{i=1}^4 \sum_{j \in g(f(i))} j &= \sum_{j \in g(f(1))} j +\sum_{j \in g(f(2))} j +\sum_{j \in g(f(3))} j+\sum_{j \in g(f(4))} j \\\\ &= g(0) + \big(g(0) + g(2)\big) + \big(g(0) + g(2)\big) + \big(g(0) + g(2) + g(4)\big) \\\\ &= 4g(0) + 3g(2) +g(4)\;. \end{align*}$$

Using $g(x)=2x$, we find the result $0 + 12 + 8 =20$.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.