In an AP of n terms, if the first and the last terms are known, then the sum upto n terms can be calculated.
In an AP which has n terms, if we know the first and the last term, then we can find the sum of all the terms.