- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

# If two positive integers $p$ and $q$ can be expressed as $p = ab^2$, and $q = a^3b; a, b$ being prime numbers, then LCM $(p, q)$ is

**(A)** $ab$

**(B)** $a^2b^2$

**(C)** $a^3b^2$

**(D)** $a^3b^3$

Given:

Two positive integers $p$ and $q$ can be expressed as $p = ab^2$, and $q = a^3b; a, b$ being prime numbers.

To find:

Here we have to find LCM $(p, q)$.

Solution:

We know that,

LCM is the product of the greatest power of each prime factor involved in the numbers.

$p = ab^2$

$= a \times b^2$

$q = a^3b$

$= a^3 \times b$

Therefore,

LCM of $p$ and $q$ is,

LCM $(ab^2, a^3b) = b^2 \times a^3$

$= a^3b^2$

- Related Questions & Answers
- Minimum positive integer value possible of X for given A and B in X = P*A + Q*B in C++
- Count pairs (p, q) such that p occurs in array at least q times and q occurs at least p times in C++
- Construct SLR (1) parsing table for the following grammar S → x A y |x B y |x A z A → q s | q B → q
- Find 2^(2^A) % B in C++
- Check if a number can be expressed as 2^x + 2^y in C++
- Count number of triplets (a, b, c) such that a^2 + b^2 = c^2 and 1<=a<=b<=c<= n in C++
- Check if a number can be expressed as a^b in C++
- Maximize the number of segments of length p, q and r in C++
- Count pairs (a, b) whose sum of squares is N (a^2 + b^2 = N) in C++
- Check if a number can be expressed as a^b in Python
- Find smallest number K such that K % p = 0 and q % K = 0 in C++
- Find all pairs (a,b) and (c,d) in array which satisfy ab = cd in C++
- Difference between ++*p, *p++ and *++p in c++
- Difference between ++*p, *p++ and *++p in C
- Check if a number can be represented as a sum of 2 triangular numbers in C++
- Show that the following grammar is LR (1) S → A a |b A c |B c | b B a A → d B → d

Advertisements