Respuesta :
The [tex]n[/tex]th number in the sequence can be expressed as
[tex]a_n=10^{n+1}+\displaystyle2\sum_{i=2}^n10^i+21[/tex]
Extracting the [tex]n[/tex]th term from the sum gives
[tex]a_n=10^{n+1}+2\cdot10^n+\displaystyle2\sum_{i=2}^{n-1}10^i+21[/tex]
and [tex]10^{n+1}+2\cdot10^n=10^n(10+2)=12\cdot10^n[/tex]. 3 divides both 12 and 21, so [tex]12\cdot10^n[/tex] and 21 contribute no remainder.
This leaves us with
[tex]a_n\equiv10\cdot\underbrace{222\ldots222}_{n-2\text{ copies}}\pmod3[/tex]
Recall that a decimal integer is divisible by 3 if its digits add to a multiple of 3. The digits in [tex]10\cdot222\ldots222[/tex] are [tex]n-2[/tex] copies of 2 and one 0, so the digital sum is [tex]2(n-2)=2n-4[/tex].
- If [tex]n=3k[/tex] for [tex]k=0,1,2,3,\ldots[/tex], then the digital sum is [tex]2(3k)-4=6k-4[/tex], which is not divisible by 3.
- If [tex]n=3k+1[/tex], then the sum is [tex]2(3k+1)-4=6k-2[/tex], which is not divisible by 3.
- If [tex]n=3k+2[/tex], then the sum is [tex]2(3k+2)-4=6k[/tex], which is always divisble by 3.
This means that roughly 1/3 of the first [tex]n[/tex] numbers in this sequence are divisible by 3; among the first 100 terms, they occur for [tex]n=2,5,8,\ldots,95,98[/tex], of which there are 33.
Answer:
33
Step-by-step explanation:
The number is divisible by 3 if the sum of digits is divisible by 3. 1221 is the first number with a sum of digits divisible by 3. Adding 3 more 2s to the sequence will result in another number divisible by 3.
So, every 3rd term from n=2 to n=98 will be divisible by 3, for a total of 33 terms out of the first 100 in the sequence.