this is a disguised sum of geometric sequence (2 of them)
find the largest number that is a multiplule of 3 and less than 1000 (999)
also largest number taht is multiplule of 5 and less than 1000 (995)
find the aritmetic sequence to generate each
an=a1+d(n-1)
a1=first term
d=common differnce
for the 3 one
first term is 3
a1=3
then d=3 as well
find
an=999=3+3(n-1)
n=333, the 333rd term
the 5's
first term is 5
common differnce is 5
an=5+5(n-1)
solve for n such taht
an=995=5+5(n-1)
n=199
199th term
sum of areitmetic sequence with an=nth term, n=which one, and a1=first

so the 3's
a1=3
an=999
n=333



now the 5's
a1=5
an=995
n=199


so add the 5's and 3's
166833+99500=266333
that is the sum of all the multipules of 3 and 5 below 1000