The Gateway to Computer Science Excellence
0 votes
101 views
in Combinatory by Loyal (7.4k points) | 101 views

1 Answer

0 votes
i think , No of ways it can be done is 7(6)^6

first place can be fill by 7 ways

second colour can be fill by 6

And same goes on till seventh place ..

Consider an example of RGB as colours

And you need to apply above question

1) First colour will be filled by 3 ways : R or G or B

Let us say we select R

2) Second Colour will be filled by 2 ways ( G and B ) say G

3) Thrd colour will be filled by 2 ways (  R and B )  say R or even say B

so you can have RGB or RGR --Look no 2 adj layers have same colours .

Hence No of ways it can be coloured is 7!(6!)^6 ways
by Loyal (9.9k points)
edited by
+2
is not it 7*6^6 ???
+1
the no. of ways are 7*6^6.
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,292 answers
198,221 comments
104,908 users