practice problems pending
Q1. A sequence has 1st term 2007 and the next term is the sum of the squares of the digits of the previous term. Find the sum of this sequence till 2013 terms. S1. Answer: 105336 Once you hit 89, then it will repeat again. So you have to sum that. Q2. [Morse–Thue Sequence] Start with 0. To each initial segment append its complement: 0, 01, 0110, 01101001, ... (a) Let the digits of the sequence be x(0), x(1), x(2) ..... Prove that x(2n)=x(n) x(2n+1)=1-x(2n). (b) Prove that x(n)=1 - x(n - 2^k), where 2^k is the largest power of 2 which is <= n. Find the 1993rd digit of the sequence. (c) Prove that the sequence is not periodic. (d) Write the nonnegative integers in base 2: 0,1,10,11... Now replace each number by the sum of its digits modulo 2. Prove that you obtain the Morse–Thue sequence. S2. Method 1: Let the sequence at any step be X_{k+1} = X_k.X'_k Where X'_k is the complement of X_k. So X_k has indices from 0 to 2^k - 1 And X'_k has indices from 2^k to 2^k + y where ...