recategorized by
573 views
0 votes
0 votes

How 14? I am not able to understand. Why not 30.

recategorized by

2 Answers

Best answer
2 votes
2 votes
see

given that , there is an edge from vertex a to b if b = K a

then , 2 is connected with all the even numbers ??

2-->4

2--->6

2--->8 ..

.

.

2-->120

now only odd numbers are left

i:e but observe that  there is also an edge between 3--->6 7------>14   5----->10

and there is also an edge between 2---->6 2----->14  5-----> 10 ??

therefore it's form a one component upto which number ??

59 ---- 59*2 = 118

now observe that , after 59 only prime numbers remains which  is not in the form n = k*n

i:e 61 = 61*2 = 122 (range 2 to 120)

therefore , 61 , 67,71,73,79,83,89,97,101,103,107,109,113 form a single components

therefore total components = 13+ 1 = 14 components
edited by
1 votes
1 votes
GIven numbers from 2 to 120, need to find total number of connected components

2 connects every even number

So every even number is a part of a single component.

Since 118 is a part of first component its half i.e. 59 will have an edge to 118, same with all odd number till 59(incl)

Now lets see about the odd numbers from 61 to 119

Every composite number is also a part of first component.

Why so? Since every composite number has a divisor other than 1 and itself, the largest composite number in the range is 120 and the smallest number it can be divided is 2, 120/2 =60, any other composite number will have its factors between 2 and 60.Hence they form a part of first component.

The remaining number are prime numbers: 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113. The count is 13. They form a single vertex component.

Hence in total 14 components.

Related questions

0 votes
0 votes
2 answers
1
Shankar Kakde asked Jan 17, 2019
453 views
0 votes
0 votes
1 answer
2
ronin_codex asked Jul 17, 2018
458 views
A simple graph with n vertices is constructed by randomly and independently placing an edge between every two vertices with probability p. What is the expected no. of nod...
0 votes
0 votes
0 answers
3
rahul sharma 5 asked Dec 13, 2016
301 views
What does simultaneous mean here?