Current taken from the combination of n cells each of internal resistance r in series with external resistance R is i=nr+RnE
Similarly, for parallel combination i=r+nRnE
For mixed grouping of n such cells in m rows with external resistance R is i=mR+nrmnE
It is obvious that maximum current obtained from each combination depends on relative values of external and internal resistance.