Consider the recurrence relation above with for with . And define , find the number of composite numbers for .
For the sake of this question, take 1 as neither prime nor composite.
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.
Before we begin, let's insert the recurrence relation for a n + 1 into b n to get b n a n + 1 = g cd ( n + 1 , a n ) , = a n + b n a 1 = 7
We need to prove that g cd ( . . ) is either 1 or a prime for all n ! However, the sequence a n has no obvious symmetry or periods. It increases by (at least) one at every step because of g cd ( . . ) ≥ 1 but that's it. Let's take a look at the first few elements of both sequences. For those values, b n is not a composite number. n a n b n 1 7 1 2 8 1 3 9 1 4 1 0 5 5 1 5 3 6 1 8 1 7 1 9 1 8 2 0 1 9 2 1 1 1 0 2 2 1 1 1 1 3 3 3 1 2 2 4 1 1 3 2 3 1 ⋯
Notice that when a n increases by more than one, it always increase to a n = 3 n ? And how b n > 1 only around those values? Let's formalise these discoveries in the following
Before we begin the proof, let's recall a useful property of the gcd we will use quite a few times: g cd ( x , y ) = g cd ( x , m x + y ) = g cd ( x , m x − y ) , x , y , m ∈ Z ( ∗ )
Proof: We prove both statements by one induction. Looking at the table, they are true until a n = 3 n (e.g. at n = 5 ). Let's see what happens to b n at this step: b n = g cd ( n + 1 , 3 n ) ( ∗ ) = g cd ( n + 1 , 3 ) ∈ { 1 ; 3 } ⇒ a n + 1 = 3 n + b n ∈ { a n + 1 ; 3 n + 3 } If b n = 3 , we are done. Otherwise, let 1 ≤ i be the number of iterations such that b n equals one: b n = … = b n + i − 1 = 1 , b n + i > 1 , a n = 3 n ⇒ a n + j = 3 n + j , 1 ≤ j ≤ i ⇒ b n + j − 1 = g cd ( n + j , 3 n + j − 1 ) ( ∗ ) = g cd ( n + j , 2 n − 1 ) = 1 , 1 ≤ j ≤ i We notice that 2 n − 1 is coprime to i consecutive integers. Then it cannot have any factor 1 < q ≤ i , because one of those consecutive integers would be a multiple of q and thus not be coprime to 2 n − 1 : g cd ( n + j , 2 n − 1 ) = 1 , 1 ≤ j ≤ i ⇒ g cd ( q , 2 n − 1 ) = 1 , 1 < q ≤ i
Consider the values b n + i > 1 can take. As a factor of 2 n − 1 , it also cannot have any odd factor 1 < q ≤ i : b n + i = g cd ( n + i + 1 , 2 n − 1 ) ( ∗ ) = g cd ( n + i + 1 , 2 i + 3 ) ≤ 2 i + 3 But b n + i also has no more than one odd factor q > i - if it had, we get a contradiction: p , q > i ≥ 1 odd ⇒ p q ≥ 3 ( i + 1 ) > 2 i + 3 ≥ b n + i = p q ( ∗ ∗ ) We have shown that b n + i has no factor 1 < q ≤ i and (at most) one factor q > i , so it can be only one or an odd prime! Using the same argument as in ( ∗ ∗ ) , we find b n + i = 2 i + 3 and a n + i + 1 = 3 ( n + i + 1 ) □