
Let p and n be integers. Prove that, if p is prime, then gcd(p, n) = p or gcd(p, n) = 1. . . (i.) Using proof by contrapositive (ii.) Using proof by contradiction
number thoery
just need 2 answered
2. Let n be a positive integer. Denote the number of positive integers less than n and rela- tively prime to n by p(n). Let a, b be positive integers such that ged(a,n) god(b,n)-1 Consider the set s, = {(a), (ba), (ba), ) (see Prollern 1). Let s-A]. Show that slp(n). 1. Let a, b, c, and n be positive integers such that gcd(a, n) = gcd(b, n) = gcd(c, n) = 1 If...
Define four sets of integers Let P {0, 1), let Q {-11, 1, 5) , and Let R and S be arbitrary nonempty subsets of Z. Define an even indicator function F F: ZP by F(x) = (x + 1) mod 2 for x e Z That is, F(x) 1 if x is even, and F(x) = 0 if x is odd. or neither? Explain. a) Is F: Q P one-to-one, onto, both, or neither? Explain. b) Is F: (Pn...
6. Fix b (a) If m, n, p, q are integers, n > 0, q > 0, and r = mln-plg, prove that Hence it makes sense to define y (b")1/n. (b) Prove that b… = b,b" if r and s are rational. (c) If x is real, define B(x) to be the set of all numbers b', where t is rational and tSx. Prove that b-sup B(r) ris rational. Hence it b" = sup B(x) for every realx (d)...
Let U be the set of all integers. Consider the following sets: S is the set of all even integers; T is the set of integers obtained by tripling any one integer and adding 1; V is the set of integers that are multiples of 2 and 3. a) Use set builder notation to describe S, T and V symbolically. b) Compute s n T, s n V and T V. Describe these sets using set builder notation
In: the set {1,...,n} consisting of the positive integers 1 up to n (n included). P(S): the power set of a set S; namely, the set of all subsets of S. P*(S): = P(S) - {@}; namely, the set of all non-empty subsets of S. The following question is a challenging one! As a start, may be you try this question for small values of n, say n=1,2,3. Can you make a guess? (1) We all know that P*(On) has...
PYTHON In mathematics, the Greatest Common Divisor (GCD) of two integers is the largest positive integer that divides the two numbers without a remainder. For example, the GCD of 8 and 12 is 4. Steps to calculate the GCD of two positive integers a,b using the Binary method is given below: Input: a, b integers If a<=0 or b<=0, then Return 0 Else, d = 0 while a and b are both even do a = a/2 b = b/2...
Let (Q, d) be the metric space consisting of the set Q of rational numbers with the standard metric d(x, y) = |x-yl. Show that the Heine Borel theorem fails for (Q,d). In other words, show that (Q, d) has a subset SCQ that is closed and bounded, but not compact
Let (Q, d) be the metric space consisting of the set Q of rational numbers with the standard metric d(x, y) = |x-yl. Show that the Heine Borel theorem fails for (Q,d). In other words, show that (Q, d) has a subset SCQ that is closed and bounded, but not compact
Let J be the ring of integers, p a prime number, and () the ideal of J consisting of all multiples of p. Prove (a) J@) is isomorphic to Jp, the ring of integers mod p. (b) Using Theorem 3.5.1 and part (a) of this problem, that J, is a field.