Question
Question: A number is a good number when the number is the product of two consecutive odd numbers. Find the su...
A number is a good number when the number is the product of two consecutive odd numbers. Find the sum of all four-digit good numbers.
Solution
First find the consecutive odd numbers whose product is the smallest four-digit good number. After that find the consecutive odd numbers whose product is the largest four-digit good number. Then, find the general term of the good number. Now, find the number of terms by the arithmetic progression formula, an=a1+(n−1)d. After that use the summation property to find the sum of the good numbers. Then, substitute the value and do calculation. The outcome is the desired result.
Complete step-by-step solution:
Given: - A number is a good number when the number is the product of two consecutive odd numbers.
The consecutive odd numbers whose product is the smallest four-digit good number is 31×33.
The consecutive odd numbers whose product is the largest four-digit good number is 99×101.
So, the sum of all four-digit good number is,
31×33+33×35+⋯+99×101
The general term is,
Tn=[31+2(n−1)][33+2(n−1)]
Open the brackets,
⇒Tn=(31+2n−2)(33+2n−2)
Subtract the like terms,
⇒Tn=(29+2n)(31+2n)
Now, multiply the terms,
⇒Tn=899+62n+58n+4n2
Add the like terms,
⇒Tn=899+120n+4n2
For number of terms, use the general term of arithmetic progression,
an=a1+(n−1)d
Here, a1=31, an=99 and d=2.
Substitute these values in the formula,
⇒99=31+(n−1)×2
Move 31 to the other side and subtract from 99,
⇒2(n−1)=68
Divide both side by 2,
⇒n−1=34
Move 1 to the other side and add,
⇒n=35............…… (1)
So, the sum can be represented as,
Sn=i=1∑nTi
Substitute the value of Tn,
⇒Sn=i=1∑n(899+120i+i2)
Then,
⇒Sn=i=1∑n899+i=1∑n120i+i=1∑n4i2
Use the summation formula to calculate the value,
⇒Sn=899n+120×2n(n+1)+4×6n(n+1)(2n+1)
Substitute the value of n from equation (1),
⇒S35=899×35+120×235(35+1)+4×635(35+1)(2×35+1)
Add the terms in the brackets,
⇒S35=899×35+120×235×36+4×635×36×71
Cancel out the common terms and multiply the terms,
⇒S35=31465+75600+59640
Add the terms on the right side,
∴S35=166705
The sum of all 4 digit good numbers is 166705.
Note: A series is defined as the sum of the terms of a sequence. It is denoted by i=1∑nai, where ai is the ith term of the sequence and i is a variable. ∑ is a symbol which stands for ‘summation’.
The formulas of sum of n,n2,n3 are:
i=1∑ni=2n(n+1)
i=1∑ni2=6n(n+1)(2n+1)
i=1∑ni3=4n2(n+1)2