Posts

practice problems pending

Image
Q1. 100 in base 10 needs to be converted to base 2,3,4,5,6,7,8,9. S2. Base 9: 100 = 81 + 18 + 1 = 121 Base 8: 100 = 64 + 4.8 + 4 = 144 Base 7: 100 = 98 + 2 = 202 Base 6: 100 = 72 + 24 + 4 = 244 Base 5: 100 = 25*4 = 400 Base 4: 100 = 64.1 + 16.2 + 4 = 1210 Base 3: 100 = 3^4.1 + 3^2.2 + 1 = 10201 Base 2: 100 = 2^6.1 + 2^5 + 2^2.1 = 1100100  Q2. S2. Let's try. Last digit is 1. Then 5+4 = 9 but it says 2. So it is not base 10. Looks like base 7. And since there is enough gap in the beginning of the first number, 2 numbers will fit there. Answer: 23451 + 15642. Q3. Let n be a positive integer and d be a digit such that the value of the numeral 32d ​ in base n equals 263, and the value of the numeral 324 ​ in base n equals the value of the numeral 11d1 in base six. What is n+d? S3. 3n^2 + 2n + d = 263 3n^2 + 2n + 4 = 216 + 36 + 6d + 1 Solving for d we get d = 2 And solving for n we get n = 9 and another non integer. Answer n + d = 11 Q4. Using the digits 1,2,3,4,5,6,7, and 9 , form ...

practice problems pending

Q1. If x^n + y^n is a prime number for some x,y > 1 then n is necessarily: Options: Power of 2, Multiple of 4, Multiple of 3, Odd S1. Answer: Power of 2. Proof by contradiction: Assume that n has an odd factor k > 1. n = m.k x^n + y^n = (x^m)^k + (y^m)^k A^k + B^k = (A+B)(A^k-1 -A^k-2.B ....+ B^k-1) for odd 'k'. Here A = x^m and B = y^m x,y > 1 m>=1 => A+B >= 4 And the other factor is also more than 1 since A^k + B^k > A + B since k > 1. So A^k + B^k is not a prime. So n can't have any odd factor. So n has to be power of 2. H.P. For e.g. n = 2 x = 2, y = 3 4 + 9 = 13 Q2. A natural number has last digit 8 in base 16 representation. What will be the remainder, when it is divided by 8 , in decimal system S2. 0 Q3. If a prime can be written as sum of two perfect square, then the remainder when it is divided by 8 cannot be S3. Any square upon division by 8 will leave 0,1,4 as remainders. So adding 2 of them can only give 0,1,2,4,5 as remainders. So it can...

practice problems

Image
 Q1. Prove that for every positive integer (n), the number [ 3^{3^n}+1 ] is the product of at least (2n+1) (not necessarily distinct) primes. S1. Prove by induction. Q2. Prove that for every positive integer (n), there exists an (n)-digit number divisible by (5^n) whose all digits are odd. S2. Proof by induction: Let's assume it holds true for k  Now we construct 5 (n+1) digit numbers using A: All 5 of them leave different remainders modulo 5 so at least one of them will leave 0 and that would give us divisibility by 5^(n+1). Why will all be different modulo 5? Let's try to prove by contradiction: 2^n + a = 3.2^n + a mod 5 => 2.2^n = 0 mod 5 false. And each time you do this you will get some even number = 0 mod 5. Which is false. H.P. Q3. Let n be a positive integer. Let 0 < a1 < a2 ... an be real numbers. Prove that at least {n+1}C{2}) of the sums +-a1 +-a2 ... +-an are distinct. S3. First we will show that this problem maps to another simpler problem. And then solve...

practice problems

Image
Q1. Show that (1 - 1/2^2)(1 - 1/3^2)....(1 - 1/(n+1)^2) = n+2/2n+2 S1. Easy to show via induction. Other way via telescopic cancellations: Kth term is (k^2 - 1)/k^2 = (k-1)(k+1)/k^2 = (k-1)/k.(k+1)/k Now separate out k-1/k and k+1/k terms and multiply: 2-1/2 * 3-1/3 * 4-1/4 .... n/n+1 = 1/n+1 2+1/2 * 3+1/3 ... n+2/n+1 = n+2/2 Hence proved. Q2. Show that: S2. Short method: r*nCr = n*(n-1)C(r-1) and take sigma simply. Longer method:  2^(n-1) = (n-1)C0 + (n-1)C1... (n-1)C(n-1) (n-1)Ck *n = nCk*(n-k) How? n * (n-1)!/k!(n-1-k)! = n! /k!(n-k-1)! But (n-k-1)! = (n-k)!/(n-k) So n * (n-1)!/k!(n-1-k)! = (n-k)n! /k!(n-k)! = nCk*(n-k) So n*2^(n-1) = n *2^(n-1) = n*[(n-1)C0 + (n-1)C1... (n-1)C(n-2)+ (n-1)C(n-1)] = nC0 * (n-0) + nC1*(n-1) ... nC(n-2)*(2)+ nC(n-1)*(1) It can be rewritten as: = nCn*n + nC1 * (n-1) ... nC2 * 2 + nC1 * 1 = (r = 1 to n)Sigma(r*nCr) = (r = 0 to n)Sigma(r*nCr) Hence proved. Q3. S3. Quite simple. Let the given sum be S. 3S = 1.3^2 + 2.3^3... n.3^(n+1) S-3S = 3 + 3^2 ......

practice problems

Q1. Prove that: 1/15 <  1.3.5.7...99/2.4.6.8...100  < 1/10 S1. We will use the property that n/n+1 < n+1/n+2 i.e. as the integer 'k' increases k/k+1 keeps becoming larger. It is easy to prove it by cross multiplication: n(n+2) < (n+1)^2 => 0 < 1. Let's rewrite it as: 1/2 * 3/4 * 5/6 ... 99/100 = P Let Q = 2/3 * 4/5 ....98/99 * 100/101 Both P,Q have 50 fractions each. And each fraction of P is less than its corresponding fraction in Q. So P < Q Multiply both sides by P. P^2 < PQ = 1/2 * 2/3 * 3/4 .... 100/101 = 1/101 P^2 < 1/101 => P^2 < 1/100 => P < 1/10 Now for the other part where we have to prove that P > 1/15 P = 1/2 *(3/4 * 5/6 * ... 99/100) R = 2/3 * 4/5 ... 98/99 => P > R/2 2P> R 2P^2 > P.R = 1/2 * 2/3 * 3/4 ... 99/100 = 1/100 P^2 > 1/200 P^2 > 1/225 P > 1/15 H.P.

linear algebra homework

Image
Q1.  S1. A is 3x2 so B will be 2x3. Rank(A) = 2 so it's possible to create I2 which has rank 2. Now let B = a b c, d e f Now when we multiply BA and equate with I2 we will have 4 equations for 6 variables. So 2 variables will be free and hence there will be infinite such matrices. Rank(I_3) = 3 Rank(AC) = min(Rank(A),Rank(C) = 2 So it's not possible since ranks don't match. Q2. Prove that a square row echelon matrix M is either the identity matrix I, or else its bottom row is zero. S2. If we start with the top left element as the first pivot element, then each subsequent row needs to have the pivot element to its right. So if we keep shifting the column and row by 1 we will just manage to take row echelon matrix by using the bottom left element. If at any step we take more than 1 step right, than one or more rows at bottom will have to be zero rows. Q3. S3. We need to convert the given matrix to Identity matrix. It is possible since both columns are independent. R2 - 2R...

practice problems

  Q1. Second principle of induction: prove that for all natural numbers n, (3 + sqrt(5))^n + (3 - sqrt(5))^n is divisible by 2^n. Let S_n = (3 + sqrt(5))^n + (3 - sqrt(5))^n a = 3 + rt(5) b = 3 - rt(5) a+b = 6 ab = 4 a,b are roots of x^2 - 6x + 4 = 0 => x^2 = 6x - 4 Multiply both sides with x^(n-1) => x^(n+1) = 6x^(n) - 4x^(n-1) replace x with a,b and add them together S_{n+1} = 6S_{n} - 4S_{n-1} For n=1,2 Sn = 6,28, i.e. divisible by 2^1,2^2 Using second principle of induction assume it's true till S_{k} including S_{k-1} and below. Then S_{k+1} = 6S_{k} - 4S_{k-1}. So it's divisible by 2^(k+1) H.P. Q2. x + y = a + b x^2 + y^2 = a^2 + b^2 Prove or disprove that x^n + y^n = a^n + b^n for all n >= 3. S2. We can prove it by induction but there is a simpler way. (x+y)^2 = (a+b)^2 will give us xy = ab. Let a,b be roots of: t^2 -(a+b)t + ab = 0 And x,y be roots of: t^2 -(x+y)t + xy = 0 Both these polynomials have same coefficients and hence they are same by definition. =...