A
and B
are also divisible by which of the following?ANSWER
wrong
A number is divisible by another number (a divisor) if its prime factorization contains the prime factorization of the divisor.
The prime factorization of A
is getPrimeFactorization( A ).join( "\\times" )
.
The prime factorization of B
is getPrimeFactorization( B ).join( "\\times" )
.
So, any number divisible by both must have LCM_FACTORIZATION.join( "\\times" )
as part of its prime factorization.
All numbers which divide such a number will have a factorization which is part of LCM_FACTORIZATION.join( "\\times" )
.
The prime factorization of ANSWER
is getPrimeFactorization( ANSWER ).join( "\\times" )
.
Since getPrimeFactorization( ANSWER ).join( "\\times" )
is part of LCM_FACTORIZATION.join( "\\times" )
, all numbers which are divisible by A
and B
are also divisible by ANSWER
.