+ 3

Using Python can we find answer to:

how many words can we make from C A R E ?

8th Sep 2017, 8:48 AM
Anil/Anant/1949Nov
Anil/Anant/1949Nov - avatar
7 odpowiedzi
+ 2
How many words is the number of possible permutations ( https://en.m.wikipedia.org/wiki/Permutation ) doable, which can be computed as !n (factorial n == 1*2*3*...*n), so there is 1*2*3*4 == 24 possible words using the four letters C A R E...
8th Sep 2017, 8:59 AM
visph
visph - avatar
+ 2
When you will know how mathematically solve your problem, you will be able to implement the algorithm with any programming language, Python included, obviously ^^
8th Sep 2017, 9:10 AM
visph
visph - avatar
+ 1
Study mathematical statistic stuff, or even search on internet: such Rubik's cube possibility were necessarly already studied ;)
8th Sep 2017, 9:08 AM
visph
visph - avatar
+ 1
number of positions = 2^3=8 permutations = 8! = 40320 unique permutations = permutations ÷ 6 = 6720 I haven't considered rotation/orientation of each piece or impossible combinations, so this is only a rough idea to help start thinking
27th Nov 2017, 6:27 AM
Ben-Davis
Ben-Davis - avatar
0
Thank you visph A tougher Q now ? how many permutations/or positions are possible with a 2x2 Rubik cube with 6 colours ?
8th Sep 2017, 9:04 AM
Anil/Anant/1949Nov
Anil/Anant/1949Nov - avatar
0
...and there are six colours in 2x2 cube too.
27th Nov 2017, 6:40 AM
Anil/Anant/1949Nov
Anil/Anant/1949Nov - avatar
0
Thank you for answer
27th Nov 2017, 6:41 AM
Anil/Anant/1949Nov
Anil/Anant/1949Nov - avatar