find the sum of all 2 digit number which either multiplied of two or three
Answers
Answered by
1
First case, sum of multiple of 2
a=10, l=98
so, An= a+(n-1)d
98=10+(n-1)2
n=45
So, S=n/2(a+l)
S1=45/2(108)
S1=45×54=2430
Second case, sum of multiple of 3
a=12, l=99
so, 99=12+(n-1)3
n=30
So, S2=30/2(12+99)=15×111=1665
Third case, sum of multiple of 2 and 3 i.e. 6
a=12, l=96
so, 96=12+(n-1)6
n=15
So, S3=15/2(12+96)=810
Require result=S1+S2-S3=2430+1665-810=3285
a=10, l=98
so, An= a+(n-1)d
98=10+(n-1)2
n=45
So, S=n/2(a+l)
S1=45/2(108)
S1=45×54=2430
Second case, sum of multiple of 3
a=12, l=99
so, 99=12+(n-1)3
n=30
So, S2=30/2(12+99)=15×111=1665
Third case, sum of multiple of 2 and 3 i.e. 6
a=12, l=96
so, 96=12+(n-1)6
n=15
So, S3=15/2(12+96)=810
Require result=S1+S2-S3=2430+1665-810=3285
rudeawakening:
hey the question is TWO DIGIT NUMBER who is a multiple of either 2 or 3. so a cannot be 2
Similar questions