Let $I,J\unlhd \mathbb{Z}[i]$ be the principal ideals generated by $7-i$ and $6i-7$, respectively. Find the number of elements in the $\mathbb{Z}[i]$-module $A=(\mathbb{Z}[i]/I^{2014})\otimes_{\mathbb{Z}[i]}(\mathbb{Z}[i]/J^{2014})$.
I know that $A\cong \mathbb{Z}[i]/(I^{2014}+J^{2014})$, but I'm not sure where to go from here. I don't think there is anything special about the number 2014 here (the problem is from a past algebra exam question from that year), so I'm inclined to think that there is some trick I'm missing that could be applied for integers other than 2014 as well. My initial thought was to somehow use the fundamental theorem for modules over PID's in order to write $A$ as a direct sum, which would allow us to count the elements, but I can't quite get it to work. Any hints would be much appreciated!
Hint. for principal ideals $(a), (b)$ in a UFD, we have $(a)+(b) = (\gcd(a,b))$.
${}$
Solution.