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

Home > Numbers
Words count (Posted on 2014-03-25) Difficulty: 4 of 5
(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.)
Solution 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 {}.

1
1 1
1 2
1 3 1
1 4 3
1 5 6 1
1 6 10 4
1 7 15 10 1
1 8 21 20 5
1 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  5
1 9 28 35 15 1
1 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
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (14)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information