It seems like you want to find the sum of 38 to 115:
If we notice, this is arithmetic series or the sum of arithmetic sequences.
To find the sum of the sequences, there are three types of formulas but I will demonstrate only one and the best for this problem.
This formula only applies to the sequences that have the common difference = 1.
Given that a1 = first term of sequence/series, n = number of terms and a_n = last term
We know the first term which is 38 and the last term is 115. The problem here is the number of sequences.
To find the n, you can use the following formula.
Substitute an = 115 and a1 = 38 in the formula of finding n.
Therefore the number of sequences is 78.
Then we substitute an = 115, a1 = 38 and n = 78 in the sum formula.
Hence, the sum is 5967.