Does this recurrence always hit a power of 2?

Given the recurrence relation: a 0 = n a k = 3 a k 1 + 1 \begin{aligned} a_0 & = n \\ a_k & = 3a_{k - 1} + 1 \end{aligned} Is it true that for any integer n > 0 n > 0 , there exists integer m 0 m \geq 0 such that a m a_m is a perfect power of 2?

No Yes

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.

1 solution

Brian Yao
Apr 19, 2018

First, we establish that a k = 3 k n + ( 3 k 1 ) / 2 a_k = 3^kn + (3^k - 1)/2 . This clearly holds for k = 0 k = 0 , and assuming it holds for k k , a k + 1 = 3 a k + 1 = 3 ( 3 k n + 3 k 1 2 ) + 1 = 3 k + 1 n + 3 k + 1 3 + 2 2 = 3 k + 1 n + 3 k + 1 1 2 , a_{k + 1} = 3a_k + 1 = 3 \left(3^kn + \frac{3^k - 1}{2} \right) + 1 = 3^{k + 1}n + \frac{3^{k + 1} - 3 + 2}{2} = 3^{k + 1}n + \frac{3^{k + 1} - 1}{2}, so by induction, it holds for all k 0 k \geq 0 .

Take any integer x > 2 x > 2 and consider n = ( 3 x 1 ) / 2 n = (3^x - 1)/2 ; suppose there exist integers j , k 0 j,k \geq 0 such that 2 j = a k = 3 k n + ( 3 k 1 ) / 2 = 3 k ( n + 1 / 2 ) 1 / 2 2^j = a_k = 3^kn + (3^k - 1)/2 = 3^k(n + 1/2) - 1/2 , or 2 j + 1 + 1 = 3 k ( 2 n + 1 ) 2^{j + 1} + 1 = 3^k(2n + 1) . Substituting n n , we have 2 j + 1 + 1 = 3 k + x 2^{j + 1} + 1 = 3^{k + x} . By Mihăilescu's theorem, the only solution is j + 1 = 3 j + 1 = 3 and k + x = 2 k + x = 2 . Thus as k 0 k \geq 0 , this forces x 2 x \leq 2 , a contradiction. Hence, there exist n n for which the sequence never hits a power of 2.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...