Ok later,
Here is the basic math
For the sum of all factors of 3 only, and within the range 0 - 100, there are
3 * 0
3 * 1
3 * 2
…
3 * 33
where the 33 is the limit calculated from 100/3 as integer
The arithmic progression is basically the average times number of factors
{0, 3, 6, …, 99} has 34 factors and average (0+99)/2 = 49.5, therefore sum is 34* 49.5
workout
0,3 has avg = 1.5
0,3,6 has avg = 3
0, 3, 6, 9 has avg = 4.5
so clearly avg is first + last so long as the first is zero
Solution
Sum3only(limit)
{
Nfactors = limit/3
}
Let's act on what we agree on now, and argue later on what we don't.
Black men leave Barbeque alone if Barbeque don't trouble you