Step 1: Solve the given equation \(3^{x^2} = 27 \times 9^x\).
We start with the equation: \[ 3^{x^2} = 27 \times 9^x. \] We can rewrite \(27\) and \(9\) as powers of 3: \[ 27 = 3^3 \quad \text{and} \quad 9 = 3^2. \] Thus, the equation becomes: \[ 3^{x^2} = 3^3 \times (3^2)^x. \] Now simplify the right-hand side: \[ 3^{x^2} = 3^3 \times 3^{2x}. \] Using the property of exponents \(a^m \times a^n = a^{m+n}\), we combine the powers of 3: \[ 3^{x^2} = 3^{3 + 2x}. \] Since the bases are the same, we can equate the exponents: \[ x^2 = 3 + 2x. \] Rearranging the equation: \[ x^2 - 2x - 3 = 0. \] Factoring the quadratic equation: \[ (x - 3)(x + 1) = 0. \] Thus, \(x = 3\) or \(x = -1\).
Step 2: Evaluate \(\frac{2^{x^2}}{(2^x)^2}\).
We now substitute \(x = 3\) and \(x = -1\) into the expression \(\frac{2^{x^2}}{(2^x)^2}\): When \(x = 3\): \[ \frac{2^{3^2}}{(2^3)^2} = \frac{2^9}{2^6} = 2^{9-6} = 2^3. \] When \(x = -1\): \[ \frac{2^{(-1)^2}}{(2^{-1})^2} = \frac{2^1}{2^{-2}} = 2^{1 - (-2)} = 2^3. \] Thus, the value is \(2^3\), which corresponds to Option (C).
Consider a directed graph \( G = (V,E) \), where \( V = \{0,1,2,\dots,100\} \) and
\[ E = \{(i,j) : 0 < j - i \leq 2, \text{ for all } i,j \in V \}. \] Suppose the adjacency list of each vertex is in decreasing order of vertex number, and depth-first search (DFS) is performed at vertex 0. The number of vertices that will be discovered after vertex 50 is:
Create empty stack S Set x = 0, flag = 0, sum = 0 Push x onto S while (S is not empty){ if (flag equals 0){ Set x = x + 1 Push x onto S } if (x equals 8): Set flag = 1 if (flag equals 1){ x = Pop(S) if (x is odd): Pop(S) Set sum = sum + x } } Output sumThe value of \( sum \) output by a program executing the above pseudocode is:
def f(a, b): if (a == 0): return b if (a % 2 == 1): return 2 * f((a - 1) / 2, b) return b + f(a - 1, b) print(f(15, 10))The value printed by the code snippet is 160 (Answer in integer).
Consider the following tables, Loan and Borrower, of a bank.
Query: \[ \pi_{\text{branch\_name}, \text{customer\_name}} (\text{Loan} \bowtie \text{Borrower}) \div \pi_{\text{branch\_name}}(\text{Loan}) \] where \( \bowtie \) denotes natural join. The number of tuples returned by the above relational algebra query is 1 (Answer in integer).