All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars
 perplexus dot info

 Words count (Posted on 2014-03-25)
(D3)How many subsets of (a,b,c, … x,y,z) contain no letters neighboring each other in the English ABC (26 letters)?

(D4)How many "words" (i.e, ordered subsets from (a,b,c, … x,y,z)) contain no neighboring letters that neighbor each other in the English ABC (26 letters)?

 No Solution Yet Submitted by Ady TZIDON No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
 re: Solution | Comment 2 of 8 |
(In reply to Solution by Jer)

In the table below, each row below is the number of subsets of each size that have no consecutive letters of the alphabet in them.  Beginning with a zero letter alphabet {} and word of length zero {}.

`11  11  21  3  11  4  31  5  6  11  6 10  41  7 15 10  11  8 21 20  51  9 28 35 15 1.`

To find the next row, add the previous row to the one before it with an offset (from adding an extra letter).

`   1  8 21 20  51  9 28 35 15  11 10 36 56 35  6`

Pascal's triangle is lurking there on a diagonal.  This means the numbers are the Combinations.  In the 10th row the numbers are

C(11,0), C(10,1), C(9,2), C(8,3), C(7,4), C(6,5).

Corresponding to subsets of size 0,1,2,3,4,5.

The number of words is the number of subsets of each size, n multiplied by n!

1*0! + 10*1! + 36*2! + 56*3! + 35*4! + 6*5! = 1979

A general formula for an x letter alphabet would then be

Sum(n=0 to [(x+1)/2]) C(x+1-n,n)*n!

For x=26 this formula agree with my previous post: 571177352091

Now to try to get a closed form.

 Posted by Jer on 2014-03-25 15:00:05

 Search: Search body:
Forums (0)