When you buy a battery, they state the nominal voltage and the Ah rating, not energy or power. See below the formulas to relate Ah product to Energy and power.
t should be taken in s (seconds).
1 Ah = 3600 A*s, 1mAh = 3.6 A*s
(instantaneous) power = U*I (or V*I if you like),
Energy = integral(U*I*dt), when voltage is constant: Energy = U*I*t
So when you put more batteries of same capacity in series, you have more stored energy because of the higher voltage. When you put the same batteries in parallel, you have also more energy, but now because of the higher overall battery capacity (expressed in Ah).