Question: Using Sigma notation and discrete math rules, calculate the sum of all integers between 15 and 415 that are divisible by 7.
I have a given solution for this but I don't quite understand it and I was wondering if someone could explain.
The first number is 7×⌈(15+1)/7⌉ = 7×3 = 21 and the last number is 7×⌊(415-1)/7⌋ = 7×59 = 413.
The sum of all integers between 15 and 415 that are divisible by 7 is then:
7 × [k = 3 to 59]∑k
= 7 × ([k = 1 to 59]∑k - [k = 1 to 2]∑k)
= 7 × (59×60 - 2×3)/2
= 7 × 1767
= 12369
I don't understand where 7x3 and 7x59 came from in the calculation above. (15+1)/7 is 2.28 so should it not be 7x2.28 instead?
The numbers between $15$ and $415$ are $$ 16, 17, 18, \ldots, 412, 413, 414 $$ Among these, the numbers which are divisible by $7$ are $$ 21, 28, 35, \ldots, 399, 406, 413 $$ Writing these explicitly as multiples of $7$, we get $$ 3\cdot 7, 4\cdot 7, 5\cdot 7, \ldots, 57\cdot 7, 58\cdot 7, 59\cdot 7 $$ We are interested in the sum of all these numebrs. This is where $3\cdot 7$ and $59\cdot 7$ comes from. The formulas that are written there, $$ \left\lceil\frac{15 + 1}{7}\right\rceil\cdot 7 = 21\\ \text{and}\\ \left\lfloor\frac{415-1}{7}\right\rfloor\cdot 7 = 413 $$ is just an algebraic way to express the same idea.