I am trying to understand what the meaning of product of ideals is. From this site: http://commalg.subwiki.org/wiki/Product_of_ideals I have figured out that it should be:
$$ IJ= \sum_{i = 1}^n (a_i b_i) {\rm\ with\ } a_i\in I {\rm\ and \ } b_i\in J, $$
where I and J is ideals of ring A. And I don't understand where the n comes from.
If we set $A = \mathbf{Z}/12$, $I = 2\mathbf{Z}$ and $J = 3\mathbf{Z}$, we will get:
$$IJ= 2\times 3+4\times 6+6\times 9+... \quad \text{(how big is $n$?)}$$
My confusion, is that it seems like the expression will give a number instead of a set of elements. I assume it should be a set, because in my book, it stands that if $I+J= A$, then $IJ= I\cap J$.
Your confusion comes from mistaking a set of elements with a single element. The product $IJ$ is the set of all products of the given form for any possible $n$ (including 0 for the zero element), making the definition $IJ=\left\{\sum_{i=0}^n a_i*b_i\mid a_i\in I, b_i\in J, n\ge 0\right\}$
So in your example the set contains $2*3$, $4*6$, $2*3+4*6$, $2*3+4*6+6*9$, and so on.