Sign up ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

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

1 Answer 1

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.