.
If the average of three whole numbers is 15, then the sum is 45.
In opposite, if the sum of three whole numbers is 45, then the average is 15.
So, the average is 15 if and only if the sum is 45.
So, your question has other equivalent formulation:
How many are there triplets (a,b,c) of whole numbers with the sum a + b + c = 45 ?
1. Let a = 0.
Then any pair (b,c) works if b + c = 45.
You can take b = 0, 1, 2, . . . , 44, 45 and then adjust c.
In all, there are 46 such pairs.
In other words, there are 46 triples of the form (0, b, c).
2. Let a = 1.
Then any pair (b,c) works if b + c = 45-1 = 44.
You can take b = 0, 1, 2, . . . , 44 and then adjust c.
In all, there are 45 such pairs.
In other words, there are 45 triples of the form (1, b, c).
3. Let a = 2.
Then any pair (b,c) works if b + c = 45-2 = 43.
You can take b = 0, 1, 2, . . . , 43 and then adjust c.
In all, there are 44 such pairs.
In other words, there are 44 triples of the form (2, b, c).
. . . .
By continuing this way, you find that the number of triples is
46 + 45 + 44 + . . . + 1.
This last "1" corresponds to the case a = 45, when for "a" and "b" you have the only choice a= 0 and b= 0.
Now, the sum 46 + 45 + 44 + . . . + 1 = .
It is the sum of the first 46 positive integers.
So, your answer is 23*47 = 1081 triples.
For the sum of the first "n" positive integers see the lessons
- Arithmetic progressions
- The proofs of the formulas for arithmetic progressions
- Problems on arithmetic progressions
in this site.
Also, you have this free of charge online textbook in ALGEBRA-II in this site
- ALGEBRA-II - YOUR ONLINE TEXTBOOK.
The referred lessons are the part of this online textbook under the topic "Arithmetic progressions".