CAT Practice : Number System: Factors

You are here: Home  CAT Questionbank   CAT Quant  Number System: Factors  Question 9
Some times, the best learning happens when you take pen and paper and do brute-force enumeration.

Number Theory - Brute Force

    Q.9: How many numbers are there less than 100 that cannot be written as a multiple of a perfect square greater than 1?
    1. 61
    2. 56
    3. 52
    4. 65

 

  • Correct Answer
    Choice A. 61.

Detailed Solution

To begin with, all prime numbers will be part of this list. There are 25 primes less than 100. (That is a nugget that can come in handy)
Apart from this, any number that can be written as a product of two or more primes will be there on this list. That is, any number of the form pq, or pqr, or pqrs will be there on this list (where p, q, r, s are primes). A number of the form pnq cannot be a part of this list if n is greater than 1, as then the number will be a multiple of p2.
This is a brute-force question.
First let us think of all multiples of 2 * prime number. This includes 2 * 3, 2 * 5, 2 * 7, 2 * 11 all the way up to 2 * 47 (14 numbers).
The, we move on to all numbers of the type 3 * prime number 3 * 5, 3 * 7 all the way up to 3 * 31 (9 numbers).
Then, all numbers of the type 5 * prime number – 5 * 7, 5 * 11, 5 * 13, 5 * 17, 5 * 19 (5 numbers).
Then, all numbers of the type 7 * prime number and then 7 * 11, 7 * 13 (2 numbers).
There are no numbers of the form 11 * prime number which have not been counted earlier.
Post this, we need to count all numbers of the form p * q * r, where p, q, r are all prime.
In this list, we have 2 * 3 * 5, 2 * 3 * 7, 2 * 3 * 11, 2 * 3 * 13 and 2 * 5 * 7. Adding 1 to this list, we get totally 36 different composite numbers.

Along with the 25 prime numbers, we get 61 numbers that cannot be written as a product of a perfect square greater than 1.

Alternative Method

There is another method of solving this question.

We can list all multiples of perfect squares (without repeating any number) and subtract this from 99

4 - there are 24 multiples of 4 { 4, 8, 12, .......96}
9 - There are 11 multiples, 2 are common with 4 (36 and 72), so let us add 9 new numbers to the list {9, 18, 27, .......99}
16 - 0 new multiples
25 - 3 new multiples {25, 50, 75}
36 – 0 new ones
49 – 2 {49, 98}
64 - 0
81 - 0

So, total multiples of perfect squares are 38. There are 99 numbers totally. So, there are 61 numbers that are not multiples of perfect squares.

This is a difficult and time-consuming question. But a question that once solved, helps practice brute-force counting. Another takeaway is the fact that there are 25 primes less than 100. There is a function called pi(x) that gives the number of primes less than or equal to x. pi(10) = 4, pi(100) = 25.

Correct Answer: 61



Our Online Course, Now on Google Playstore!

2IIM's App

Fully Functional Course on Mobile

All features of the online course, including the classes, discussion board, quizes and more, on a mobile platform.


Cache Content for Offline Viewing

Download videos onto your mobile so you can learn on the fly, even when the network gets choppy!

Get it on Google Play
Visit Piverb.com
Visit Wizako.com