The minimum numbers of colours required to colour the verticles of a cycle with n nodes in such a way that no two adjacent nodes have the same colour is
A
3
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
n−2⌊n2⌋+2
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
2
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
4
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is Bn−2⌊n2⌋+2 The minimum numbers of colours require colour the vertices of a cycle with n nodes
= 2, when n is even
= 3, when n is odd Thereforen−2⌊n2⌋+2
gives 2 when n is even and 3 when n is odd.