Brilli the ant has thought up a diabolical sequence of integers a n . It has initial values a 1 = 1 and a 2 = 3 . Subsequent terms are given by
a n = ( n + 1 ) a n − 1 − n a n − 2 for n ≥ 3 . Brilli the ant wants to know, how many integer values of n from 1 to 1000 (inclusive) are there such that a n is a multiple of 11?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Hmm, there is one typo. It should be : i = 3 ∏ n a i − 1 − a i − 2 a i − a i − 1 = n ( n − 1 ) ( n − 2 ) … 3
Great solution! Could you explain how the product telescopes?
To first attempt to a notice a pattern, simply compute the first few terms modulo 11, and the residues of the first few terms are a 1 ≡ 1 , a 2 ≡ 3 , a 3 ≡ 9 , a 4 ≡ 0 , a 5 ≡ 1 0 , a 6 ≡ 4 , a 7 ≡ 6 , a 8 ≡ 0 , a 9 ≡ 1 , a 1 0 ≡ 0 , a 1 1 ≡ 0 . From then on, it is clear that every term afterwards will be a multiple of 11, as if 1 1 ∣ a n − 1 , a n − 2 , then clearly 1 1 ∣ ( n + 1 ) a n − 1 − n a n − 2 = a n .
So 1 1 ∣ a n for n = 1 0 , 1 1 , … , 1 0 0 0 (which results in 9 9 1 values of n ), as well as n = 4 , 8 . So then there are 9 9 1 + 2 = 9 9 3 values of n .
a n = ( n + 1 ) a n − 1 − n a n − 2
So, a n − a n − 1 = n ( a n − 1 − a n − 2 )
As a 2 − a 1 = 2 , a n − a n − 1 = n !
Compute the first 11 terms. a 4 , a 8 and a 1 0 will be divisible by 11.
a 1 1 = a 1 0 + 1 1 ! . As both a 1 0 and 1 1 ! are divisible by 11, a 1 1 is divisible by 11.
a 1 2 = a 1 1 + 1 2 ! . As both a 1 1 and 1 2 ! are divisible by 11, a 1 2 is divisible by 11. Similarly all terms above a 1 0 are divisible by 11.
a 4 , a 8 and all terms from a 1 0 to a 1 0 0 0 are divisible by 11. Number of terms divisible by 11 = 2 + ( 1 0 0 0 − 1 0 + 1 ) = 9 9 3
At first we simply compute the first few terms modulo 1 1 and the residues of the first few terms are ,
a 1 ≡ 1 ( m o d 1 1 )
a 2 ≡ 3 ( m o d 1 1 )
a 3 ≡ 9 ( m o d 1 1 )
a 4 ≡ 0 ( m o d 1 1 )
a 5 ≡ − 1 ( m o d 1 1 )
a 6 ≡ 4 ( m o d 1 1 )
a 7 ≡ 6 ( m o d 1 1 )
a 8 ≡ 0 ( m o d 1 1 )
a 9 ≡ 1 ( m o d 1 1 )
a 1 0 ≡ 0 ( m o d 1 1 )
a 1 1 ≡ 0 ( m o d 1 1 )
From then on, it is clear that every term afterwards will be a multiple of 1 1 , as if 1 1 ∣ a n − 1 , a n − 2 then clearly 1 1 ∣ ( n + 1 ) a n − 1 − n a n − 2 . That means 1 1 ∣ a n .
So, 1 1 ∣ a n where n ∈ S = { 4 , 8 , 1 0 , 1 1 , 1 2 . . . . . . . 9 9 9 , 1 0 0 0 } and n ( S ) = 9 9 3
a {n}=(n+1)(a {n-1} - n(a_{n-2})
solving for n, we have n=\frac {a {n}-a {n-1}}{a {n-1}-a {n-2}}
if n=n, we have n=\frac {a {n}-a {n-1}}{a {n-1}-a {n-2}} if n=n-1 we have n-1=\frac {a {n-1}-a {n-2}}{a {n-2}-a {n-3}} if n=n-2 we have n-2=\frac {a {n-2}-a {n-3}}{a {n-3}-a {n-4}} ... if n=n-(n-3)=3 we have 3=\frac {a {3}-a {2}}{a {2}-a {1}}
notice that if we multiply all the equations, we have a telescoping product, thus we have
n(n-1)(n-2)(n-3)...(4)(3)=\frac {a {n}-a {n-1}}{a {2}-a {1}}
rearranging the equation, we have n(n-1)(n-2)(n-3)..(4)(3)(a {2}-a {1}) = a_{n} - a{n-1}
since a {2}=3 and a {1}=1, then a {2}-a {1}=2
this implies that n(n-1)(n-2)(n-3)..(4)(3)(a {2}-a {1}) = a {n} - a{n-1} n(n-1)(n-2)(n-3)..(4)(3)(2) = a {n} - a{n-1} n!=a_{n} - a{n-1}
we have a {n}=n! + a {n-1} since n! \equiv 0 \pmod{11} for n \geq 11 this implies that a {n} \equiv 0 \pmod{11} for n \geq 11 this implies that if a {10} \equiv 0\pmod{11} then a {11} upto a {1000} is divisible by 11, thus we have to check the terms a {1} upto a {10}
a 1 \equiv 1\pmod{11} a 2 \equiv 3\pmod{11} a 3 \equiv 9\pmod{11} a 4 \equiv 0\pmod{11} a 5 \equiv 10\pmod{11} a 6 \equiv 4\pmod{11} a 7 \equiv 6\pmod{11} a 8 \equiv 0\pmod{11} a 9 \equiv 1\pmod{11} a {10} \equiv 0\pmod{11}
notice that a {10} \equiv 0 \pmod{11} then a {11} upto a {1000} are divisible by 11, so we just have to count the terms from a 1 to a 10 that are not divisible by 11 and subtract it from 1000, thus only a 4 , a 8, and a {10} are divisible by 11, thus there are 7 who are not divisible, thus
1000-7 =993 answer: 993
a n = ( n + 1 ) a n − 1 − n a n − 2
First, we need to simplify the equation above into
a n − a n − 1 = n ( a n − 1 − a n − 2 )
By substituting value n = k , ( k − 1 ) , ( k − 2 ) , ⋯ 3 we have
a k − a k − 1 = k ( a k − 1 − a k − 2 )
a k − 1 − a k − 2 = ( k − 1 ) ( a k − 2 − a k − 3 )
a k − 2 − a k − 3 = ( k − 2 ) ( a k − 3 − a k − 4 )
⋮
a − 3 − a 2 = 3 ( a 2 − a 1 )
Product all the equation above which give new equation
( a k − a k − 1 ) ( a k − 1 − a k − 2 ) ( a k − 2 − a k − 3 ) ⋯ ( a 3 − a 2 ) = ( k ( k − 1 ) ( k − 2 ) ⋯ 3 ) ( ( a k − 1 − a − k − 2 ) ( a k − 2 − a k − 3 ) ( a k − 3 − a k − 4 ) ⋯ ( a 2 − a 1 ) )
Simplify the equation above as we get
a k − a k − 1 = 2 ! k ! ( a 2 − a 1 )
Because ( a 2 − a 1 ) = 2 then
a k − a k − 1 = k !
So we may conclude that a n = ( n + 1 ) a n − 1 − n a n − 2 can be expressed as a n = a n − 1 + n !
Since for n ≥ 1 1 , a n is divisible by 1 1 . Then we must check for n = 1 , 2 , 3 , ⋯ 1 0
a 1 ≡ 1 ( m o d 1 1 ) , a 2 ≡ 3 ( m o d 1 1 ) , a 3 ≡ 9 ( m o d 1 1 ) , a 4 ≡ 0 ( m o d 1 1 ) a 5 ≡ − 1 ( m o d 1 1 ) , a 6 ≡ 4 ( m o d 1 1 ) , a 7 ≡ 6 ( m o d 1 1 ) , a 8 ≡ 0 ( m o d 1 1 ) a 9 ≡ 1 ( m o d 1 1 ) , a 1 0 ≡ 0 ( m o d 1 1 )
Hence, the satisfying value for n are a 4 , a 8 , a 1 0 and a 1 1 − a 1 0 0 0 which is 3 + 9 9 0 = 9 9 3
Wow, easy to understand. But I think a − 3 − a 2 = 3 ( a 2 − a 1 ) should be a 3 − a 2 = 3 ( a 2 − a 1 )
Log in to reply
Oh yes, thank you for pointed my mistake, It is not written correctly.
From the equation : a n = ( n +1). a n − 1 - n . a n − 2
We have a n - a n − 1 = n . ( a n − 1 - a n − 2 )
similarly a n − 1 - a n − 2 = ( n -1) . ( a n − 2 - a n − 3 )
a n − 2 - a n − 3 = ( n -2) . ( a n − 3 - a n − 4 )
..................
a 3 - a 2 = 3. ( a 2 - a 1 )
Because a 2 - a 1 = 3 -1 =2 , hence a n - a n − 1 = n!
and a n = 1! +2! +3! + ... + n!
if 1 =< n =< 10 , only a 4 , a 8 , a 1 0 are the mutiples of 11
n >= 11, n! is the mutiple of 11 with any n , so from a 1 1 to a 1 0 0 0 are the mutiples of 11
finally, we have 3 + (1000-11):1+1 = 993
From the given equation, we have: a n − a n − 1 = n ( a n − 1 − a n − 2 ) .
Therefore, a n − a n − 1 = n ( a n − 1 − a n − 2 ) = n ( n − 1 ) ( a n − 2 − a n − 3 ) = . . . = 2 ! n ! ( a 2 − a 1 ) .
Because a 2 − a 1 = 2 ! , so a n = n ! + a n − 1 .
Because if n ≥ 1 1 , n ! ≡ 0 ( m o d 1 1 ) or a n ≡ a n − 1 ( m o d 1 1 ) . Therefore, we only need to check from a 1 to a 1 0 .
By recurrence, we have from a 1 to a 1 0 , only a 4 , a 8 , a 1 0 are multiples of 11. This also leads to a n is a multiple of 11 with all n ≥ 1 1 .
Therefore, the answer is: (1000-11+1) + 3 = 993
We'll first experiment with few first values and see what happens. We have (This is found out by simply plugging in values for n ):
a 1 ≡ 1 ( m o d 1 1 )
a 2 ≡ 3 ( m o d 1 1 )
a 3 ≡ 9 ( m o d 1 1 )
a 4 ≡ 0 ( m o d 1 1 )
a 5 ≡ 1 0 ( m o d 1 1 )
a 6 ≡ 4 ( m o d 1 1 )
a 7 ≡ 6 ( m o d 1 1 )
a 8 ≡ 0 ( m o d 1 1 )
a 9 ≡ 1 ( m o d 1 1 )
a 1 0 ≡ 0 ( m o d 1 1 )
a 1 1 ≡ 0 ( m o d 1 )
Now it is clear that any a n with n ≥ 1 2 will be divisible by 1 1 because for example for n = 1 2 we get a 1 2 ≡ 1 3 ⋅ 0 − 1 2 ⋅ 0 ≡ 0 ( m o d 1 1 ) . So there are only 7 terms not divisible by 1 1 , thus there are 1 0 0 0 − 7 = 9 9 3 terms divisible by 1 1 .
The last modulus is supposed to be 1 1 and not 1 but I can't edit the post..
In this problem, computing values up to a point seems like it might work.
To make this a little easier, we work in modulo 11 and rewrite our equation: a n = n ( a n − 1 − a n − 2 ) + a n − 1 Now, a 1 ≡ 1 ( m o d 1 1 ) a 2 ≡ 3 ( m o d 1 1 ) a 3 ≡ 9 ≡ 3 ⋅ 2 + 3 ( m o d 1 1 ) a 4 ≡ 0 ≡ 4 ⋅ 6 + 9 ( m o d 1 1 ) a 5 ≡ 1 0 ≡ 5 ⋅ 2 + 0 ( m o d 1 1 ) a 6 ≡ 4 ≡ 6 ⋅ 1 0 + 1 0 ( m o d 1 1 ) a 7 ≡ 6 ≡ 7 ⋅ 5 + 4 ( m o d 1 1 ) a 8 ≡ 0 ≡ 8 ⋅ 2 + 6 ( m o d 1 1 ) a 9 ≡ 1 ≡ 9 ⋅ 5 + 0 ( m o d 1 1 ) a 1 0 ≡ 0 ≡ 1 0 ⋅ 1 + 1 ( m o d 1 1 ) a 1 1 ≡ 0 ≡ 1 1 ⋅ 1 0 + 0 ( m o d 1 1 ) It is easy to see that for n > 1 1 a n ≡ 0 ( m o d 1 1 ) This follows from the fact that 0 ⋅ 0 + 0 = 0 Now, looking at our table, we have 7 nonzero values modulo 11, so the answer is 1 0 0 0 − 7 = 9 9 3
Lemma: a n = a n − 1 + n ! , n ≥ 2
Proof: By induction in n . If n = 2 , we have a 2 = 3 = 1 + 2 = a 1 + 2 ! Fixed m ≥ 2 , m ∈ N suppose that law a n = a n − 1 + n ! is true for n = m , that is, a m = a m − 1 + m ! ⇒ a m − a m − 1 = m !
Where we have a m + 1 = ( m + 2 ) ∗ a m − ( m + 1 ) ∗ a m − 1 = ( m + 1 ) ∗ ( a m − a m − 1 ) + a m = ( m + 1 ) ∗ m ! + a m = ( m + 1 ) ! + a m And by Induction Principle, the lemma is proved.
Now, since that 1 1 ∣ n ! , n ≥ 1 1 , by the Lemma, we have a n ≡ a 1 0 ( m o d 1 1 ) , n ≥ 1 1 . By the Lemma, it's easy to see that:
a 1 ≡ 1 ( m o d 1 1 )
a 2 ≡ 3 ( m o d 1 1 )
a 3 ≡ 3 + 3 ! ≡ 9 ( m o d 1 1 )
a 4 ≡ 9 + 4 ! ≡ 0 ( m o d 1 1 )
a 5 ≡ 0 + 5 ! ≡ − 1 ( m o d 1 1 )
a 6 ≡ − 1 + 6 ! ≡ 4 ( m o d 1 1 )
a 7 ≡ 4 + 7 ! ≡ 6 ( m o d 1 1 )
a 8 ≡ 6 + 8 ! ≡ 0 ( m o d 1 1 )
a 9 ≡ 0 + 9 ! ≡ 1 ( m o d 1 1 )
a 1 0 ≡ 1 + 1 0 ! ≡ 0 ( m o d 1 1 )
Since we have a n ≡ a 1 0 ≡ 0 ( m o d 1 1 ) , n ≥ 1 1 , there are 1 0 0 0 − 1 1 + 1 = 9 9 0 values of n , 1 1 ≤ n ≤ 1 0 0 0 such that 1 1 ∣ a n and more 3 values n = 4 , 8 , 1 0 < 1 1 , totaling 9 9 3 values.
From a n = ( n + 1 ) a n − 1 − n a n − 2 we have a n − a n − 1 = n ( a n − 1 − a n − 2 = . . . = n ! This gives a n = n ! + a n − 1 = . . . . = n ! + ( n − 1 ) ! + . . . + 1 It's easy to check that a n is a multiple of 11 <=> n=4,8,10 and n ≥ 1 1 Hence the answer is 993
oh gosh why cant I type Latex?? I have already used the \( ...\) for the formula
Log in to reply
I looked into what you typed, and it appears that you have an empty space between the \ and the (, which is why it doesn't compile for you. You can test it out in the discussions, where you get to edit your post, and you can see it happening.
I've modified your solution to remove the empty space, and have it display.
As is standard for most problems involving recurrence relations, we first start out by trying to find patterns from the first few elements.
Using the recurrence stated, we get the first 5 elements to be 1 , 3 , 9 , 3 3 , 1 5 3 . Observing consecutive differences, we get 3 − 1 = 2 , 9 − 3 = 6 , 3 3 − 9 = 2 4 , 1 5 3 − 3 3 = 1 2 0 . These differences are 2 ! , 3 ! , 4 ! , 5 ! , respectively. Thus, a k = n = 1 ∑ k n ! This can be proven easily.
a k = ( k + 1 ) ( ( k − 1 ) ! + ( k − 2 ) ! + … + 1 ! ) − ( k ) ( ( k − 2 ) ! + … + 1 ! ) =
( k − 1 ) ! + ( k − 2 ) ! + … + 1 ! + ( k ) ( ( k − 1 ) ! + ( k − 2 ) ! + … + 1 ! −
( ( k − 2 ) ! + ( k − 1 ) ! + … + 1 ! ) ) ) =
( k − 1 ) ! + ( k − 2 ) ! + . . . + 1 ! + ( k ) ( ( k − 1 ) ! ) = n = 1 ∑ k n !
Next, we must look for multiples of 11. From the first 5 terms, it is clear that the fourth term is a multiple of 11. We look to find any more multiples of 11 until we get to a 1 0 , as if a 1 0 is a multiple of 11 then all of the following terms are as well, but if it is not then none of the following terms are multiples of 11.
> This is due to the fact that for for every term a k with k ≥ 1 1 the difference between each consecutive term is a multiple of 11 because n ! is a multiple of 11 when n ≥ 1 1 . Thus, for all a k with k ≥ 1 1 a k ≡ m ( m o d 1 1 ) , i.e. the residue when considered mod 11 is consistent.
However, the numbers get very large, so it is not feasible to deal with them unless we consider them in a more representative fashion using the following method:
a 5 can be expressed as a 4 + 5 ! ( 1 ) . Furthermore, a 6 can be expressed as a 4 + 5 ! ( 1 + 6 ) , and a 7 as a 4 + 5 ! ( 1 + 6 + 4 2 ) , and finally a 8 as a 4 + 5 ! ( 1 + 6 + 4 2 + 3 3 6 ) = a 4 + 5 ! ( 3 8 5 ) . Since 3 8 5 is a multiple of 11 and a 4 is a multiple of 11, a 8 must then be a multiple of 11 and, using the same logic, since neither 1, 7, nor 49 are multiples of 11 and 11 is prime, a 5 , a 6 , and a 7 are not multiples of 11.
Using the same method with a 8 , we come to a 1 0 = 9 ! ( 1 + 1 0 ) → a 1 0 is a multiple of 11.
Since a 1 0 is a multiple of 11, every term a k with k ≥ 1 1 is also divisible by 11. Thus, the number of integer values of n from 1 to 1000 that satisfy the equation is 2 + 9 9 1 ⇒ 9 9 3
In my answer I made it so it was calculator free because in many competition situations, you would not be able to use a calculator.
Manipulating the recursive formula given, we get a n − a n − 1 = n ( a n − 1 − a n − 2 ) . Let b n = a n + 1 − a n ; then this becomes b n = ( n + 1 ) b n − 1 , after shifting the indices up by one. Because a 1 = 1 and a 2 = 3 , we know that b 1 = 2 . Using our formula for b n , we calculate the next few values of b n , reduced m o d 1 1 : b 1 = 2 , b 2 = 3 ( 2 ) = 6 , b 3 = 4 ( 6 ) ≡ 2 , b 4 ≡ 5 ( 2 ) = 1 0 , b 5 ≡ 6 ( 1 0 ) ≡ 5 , b 6 ≡ 7 ( 5 ) ≡ 2 , b 7 ≡ 8 ( 2 ) ≡ 5 , b 8 ≡ 9 ( 5 ) ≡ 1 , b 9 ≡ 1 0 ( 1 ) = 1 0 , b 1 0 ≡ 1 1 ( 1 0 ) ≡ 0 .
Notice that because b 1 0 ≡ 0 ( m o d 1 1 ) , every term after it will also be congruent to 0 , m o d 1 1 , as all we are doing to find these values is multiplying and reducing. Because we defined b n as the difference between consecutive terms of a n , we can use these values to find the terms of a n ( m o d 1 1 ) : a 1 = 1 , a 2 = 3 , a 3 = a 2 + b 2 = 3 + 6 = 9 , a 4 = a 3 + b 3 ≡ 9 + 2 ≡ 0 , a 5 ≡ 0 + 1 0 = 1 0 , a 6 ≡ 1 0 + 5 ≡ 4 , a 7 ≡ 4 + 2 = 6 , a 8 ≡ 6 + 5 ≡ 0 , a 9 ≡ 0 + 1 = 1 , a 1 0 ≡ 1 + 1 0 ≡ 0 .
Because all of b 1 0 , b 1 1 , b 1 2 , … are zero, so are a 1 0 , a 1 1 , a 1 2 , … . From the list above, we see that a 4 and a 8 are two additional terms that are multiples of 1 1 , so in total there are 2 + ( 1 0 0 0 − 1 0 + 1 ) = 9 9 3 terms in a 1 , a 2 , … , a 1 0 0 0 that are multiples of 1 1 .
Rewrite the recurrence relation as a n − a n − 1 = n ( a n − 1 − a n − 2 ) . With the starting value a 2 − a 1 = 2 , we can show (by induction) that a n − a n − 1 = n ! . Hence,
a n = ( a n − a n − 1 ) + ( a n − 1 − a n − 2 ) + … + ( a 2 − a 1 ) + a 1 = n ! + ( n − 1 ) ! + … + 2 ! + 1 ! .
We check the first few values 1 ≤ n ≤ 1 1 , and find that 1 1 ∣ a 4 , a 8 , a 1 0 , a 1 1 . For n > 1 1 , since a n = n ! + a n − 1 , and n ! is a multiple of 11, we see by induction that they are all multiples of 1 1 . Hence, only a 1 , a 2 , a 3 , a 5 , a 6 , a 7 , a 9 are not multiples of 1 1 , so we have to exclude 7 of them. Thus, 9 9 3 numbers are multiples of 11.
Using recursive memoization (aka dynamic programming) in Python:
1 2 3 4 5 6 7 8 9 10 11 |
|
a1 = 1
a2 = 3
a3 = 4(a2) - 3(a1) = 9
a4 = 5(a3) - 4(a2) = 33 = 0 mod 11 (in equation below, I used the mod value since all I care about is if it is divisible by 11)
a5 = 6(a4) - 5(a3) = -45 = -1 mod 11 (I used -1 to keep calc easier)
a6 = 7(a5) - 6(a4) = -7 = 4 mod 11
a7 = 8(a6) - 7(a5) = 39 = 6 mod 11
a8 = 9(a7) - 8(a6) = 22 = 0 mod 11
a9 = 10(a8) - 9(a7) = -54 = 1 mod 11
a10 = 0(a9) - 10(a8) = 0 mod 11 (Note: since it is mod 11, multiplying by 11 is equivalent to multiplying by 0)
a11 = 1(a10) - 0(a9) = 0 mod 11
Now that we have two 0 mod 11 terms in a row, all future terms will now be divisible by 11 since the past two terms will have been divisible by 11.
a4, a8, a10 - a1000 = 1+1+991 terms = 993 terms are divisible by 11
Let Bn= An - A(n-1) So Bn=B(n-1)*n then Bn/B(n-1) = n multiplying all those equations we have Bn/B2=n!/2 but B2=2 then Bn=n! But we have An= Bn+B(n-1)+...+B2+A1=n!+(n-1)!+...+1! Now we observe each k! in Z(11) 1!=1(mod11) 2!=2(mod11) 3!=6(mod11) 4!=2(mod11) 5!=10(mod11) 6!=5(mod11) 7!=2(mod11) 8!=5(mod11) 9!=1(mod11) 10!=10(mod11) So A4, A7 and A10 are divisible by 11. Every k!, k>10, is divisible by 11 so Ai=A10+ 11Ti for some integer Ti, for every i>10. But A10 is divisible by 11 and then every Ai, i>10, is divisible by 11. So the answer is: (1000-11+1)+3=993
We note that the first few values of a n are 1, 3, 9, 0, 10, 4, 6, 0, 1, 0, 0 mod 11. Now that a 1 0 and a 1 1 are both 0, we can see that all subsequent values will be zero, so there are only the above seven values which are nonzero.
This gives 993 which are multiples of 11.
Claim: If a n − 1 , a n − 2 are both multiples of 1 1 , then so is a n . Proof: Assume a n − 1 , a n − 2 are multiples of 1 1 . Then there exist integers k , l such that a n − 1 = 1 1 k , a n − 2 = 1 1 l .
a n = ( n + 1 ) a n − 1 + n a n − 2 = ( n + 1 ) ( 1 1 k ) + n ( 1 1 l ) = 1 1 ( n k + k + n l ) By closure of the integers, n k + k + n l is an integer, so a n is divisible by 11.
Evaluate the first eleven terms: ( 1 , 3 , 9 , 3 3 , 1 5 3 , 8 7 3 , 5 9 1 3 , 4 6 2 3 3 , 4 0 9 1 1 3 , 4 0 3 7 9 1 3 , 4 3 9 5 4 7 1 3 ) . Modulo 1 1 , the first eleven terms are 1 , 3 , 9 , 0 , 1 0 , 4 , 6 , 0 , 1 , 0 , 0 . We then claim that a n is a multiple of 1 1 for all n ≥ 1 0 , making the inductive proof using n = 1 0 , 1 1 as base cases (proof by evaluation) and noting that the inductive step is the first claim, already proven.
Therefore, for n ∈ { 1 , . . . , 1 0 0 0 } , the only values of n for which a n is not a multiple of 1 1 must have n < 1 0 ; looking at our initial evaluations, we can narrow this down to n ∈ { 1 , 2 , 3 , 5 , 6 , 7 , 9 } .
There are 7 integers values of n from 1 to 1 0 0 0 inclusive such that a n is not a multiple of 11; therefore, there are 1 0 0 0 − 7 = 9 9 3 integer values of n from 1 to 1 0 0 0 inclusive such that a n is a multiple of 11.
a
{n} - a
{n-1}=n(a
{n-1} - a
{n-2}),
a
{n-1} - a
{n-2}=(n-1)(a
{n-2} - a
{n-3}),
a
{n-2} - a
{n-3}=(n-2)(a
{n-3} - a
{n-4}),
.
.
a
{3} - a
{2}=3(a
{2} - a
{1})=3(3-1)=3*2,
a
{2} - a
{1}=3-1=2;
So, we can easily find that,
a
{n} - a
{n-1} = n!,
a
{n-1} - a
{n-2}=(n-1)!,
a
{n-2} - a
{n-3}=(n-2)!,
.
.
a
{3} - a
{2}=3!,
a
{2} - a
{1}=2!;
By adding these (n-1) equations, all the a
{i} 's will be canceled out, where i is a positive integer and 2 \leq i \leq (n-1).
So, we shall get,
a
{n} - a
{1} = \displaystyle \sum
{j=2}^n j!
\Rightarrow a
{n}= \displaystyle \sum
{j=1}^n j! [where a
{1}=1, given].
Note that, 11 divides \displaystyle \sum
{j=1}^10 j! and for all positive integer k \geq 11; 11 also divides k!.
So, when n \geq 10, a
{n} is divisible 11. So, for 10 \leq n \leq 1000, there are 991 such a
{n}'s.
Now we just need to find, how many a
{n}'s are divisible by 11, for 1 \leq n \leq 9.
It is very easy to calculate a
{n}, where 1 \leq n \leq 9.
Then, we shall find that only a
{4} and a
{8} are divisible by 11.
So, the total number of such a_{n} is (991+2) = 993 [answer]
It can be checked that a 3 ≡ 4 a 2 − 3 a 1 a 4 ≡ 5 a 3 − 4 a 2 a 5 ≡ 6 a 4 − 5 a 3 a 6 ≡ 7 a 5 − 6 a 4 a 7 ≡ 8 a 6 − 7 a 5 a 8 ≡ 9 a 7 − 8 a 6 a 9 ≡ 1 0 a 8 − 9 a 7 a 1 0 ≡ 1 1 a 9 − 1 0 a 8 a 1 1 ≡ 1 2 a 1 0 − 1 1 a 9 ≡ 9 ( m o d 1 1 ) ≡ 0 ( m o d 1 1 ) ≡ 1 0 ( m o d 1 1 ) ≡ 4 ( m o d 1 1 ) ≡ 6 ( m o d 1 1 ) ≡ 0 ( m o d 1 1 ) ≡ 1 ( m o d 1 1 ) ≡ 0 ( m o d 1 1 ) ≡ 0 ( m o d 1 1 ) Also, if a n ≡ a n + 1 ≡ 0 ( m o d 1 1 ) for some integer n then a n + 2 ≡ ( n + 3 ) a n + 1 + ( n + 2 ) a n ≡ 0 ( m o d 1 1 ) Thus if P n is the statement that a n ≡ a n + 1 ≡ 0 ( m o d 1 1 ) , then P 1 0 holds and P n ⟹ P n + 1 . Therefore P n holds for all n ≥ 1 0 . In particular, this means that 11 divides all a n with n ≥ 1 0 .
Thus for all 1 ≤ n ≤ 1 0 0 0 , n ∈ { 1 , 2 , 3 , 5 , 6 , 7 , 9 } , we have 1 1 ∣ a n . Hence there are 1 0 0 0 − 7 = 9 9 3 values of n between 1 and 1000 (inclusive) such that 1 1 ∣ a n .
In a simple way we can write it as
Mod[{Recurrence Table[{a[n] == (n + 1) a[n - 1] - n*a[n - 2],
a[1] == 1, a[2] == 3}, a,
{n, 1000}]}, 11]
use this mathematics code to crack this question easily.....
and check how may zeroes are there ....u will see there are only 7 non zero number and 993 are non zero
so answer is 993
You're not supposed to use programming for these problems.
Problem Loading...
Note Loading...
Set Loading...
We can rewrite the equation into : ( a n − a n − 1 ) = n ( a n − 1 − a n − 2 ) ⟹ a n − 1 − a n − 2 a n − a n − 1 = n
i = 3 ∏ n a n − 1 − a n − 2 a n − a n − 1 = n ( n − 1 ) ( n − 2 ) … 3
Then, by telescoping, it's easy to see that :
a 2 − a 1 a n − a n − 1 = 2 n ! ⟹ a n − a n − 1 = n !
Then, from above we obtain that, for n ≥ 1 1 , we have : a n − a n − 1 = n ! ≡ 0 ( m o d 1 1 ) a n = a n − 1 ( m o d 1 1 ) . So, we just need to check from a 1 to a 1 1
Now, by recurrence we obtain : a 1 ≡ 1 ( m o d 1 1 ) a 2 ≡ 3 ( m o d 1 1 ) a 3 ≡ a 2 + 3 ! ≡ 9 ( m o d 1 1 ) a 4 ≡ a 3 + 4 ! ≡ 0 ( m o d 1 1 ) a 5 ≡ a 4 + 5 ! ≡ − 1 ( m o d 1 1 ) a 6 ≡ a 5 + 6 ! ≡ 4 ( m o d 1 1 ) a 7 ≡ a 6 + 7 ! ≡ 6 ( m o d 1 1 ) a 8 ≡ a 7 + 8 ! ≡ 0 ( m o d 1 1 ) a 9 ≡ a 8 + 9 ! ≡ 1 ( m o d 1 1 ) a 1 0 ≡ a 9 + 1 0 ! ≡ 0 ( m o d 1 1 ) a 1 1 ≡ a 1 0 + 1 1 ! ≡ 0 ( m o d 1 1 )
Then, from the first one we obtain a n ≡ 0 ( m o d 1 1 ) ∀ n ≥ 1 1 and n ∈ N
So, from a 1 to a 1 0 0 0 , the number that multiple 11 are a 4, a 8, and {a n} {n \ge 10}, The total is ( 1 0 0 0 − 1 0 + 1 ) + 1 + 1 = 9 9 3