Because Sonnets Aren't Enough

Sonnet 18 Sonnet 18

Shakespearean Sonnets take up the rhyme scheme

A B A B C D C D E F E F G G AB\,AB \quad CD\,CD \quad EF\,EF \quad GG

Each letter describe each similar line ending. If two lines rhyme, they are assigned the same letter.

What is the number of possible rhyme schemes a poetry with 14 lines can have?


The answer is 190899322.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Notice that the rhyme scheme is a partitioning of the lines of the poetry. So, the number of partitions of a poetry of n n lines is the bell number B n B_n .

A simple recurrence relation is B 0 = 1 B_0 = 1 and

B n + 1 = k = 0 n ( n k ) B k \displaystyle B_{n+1} = \sum_{k=0}^n \binom{n}{k} B_k

This can be proven as follows. Given a set of n + 1 n+1 elements, fix an element e e . Consider the partition (the equivalence class) that includes e e . Suppose it contains n k n-k elements besides e e itself. There are ( n n k ) = ( n k ) \binom{n}{n-k} = \binom{n}{k} ways to select these n k n-k elements, and the remaining k k elements can be partitioned in B k B_k ways by definition. Summing over all k k gives the above identity.


This is the dynamic programming approach:

Let the number of equivalence relations on n elements that divide them into k equivalence classes be P(n, k).

Of course, P ( n , 1 ) = 1 P(n, 1) = 1 and P ( n , n ) = 1 P(n, n) = 1 .

Otherwise, look at how this would be obtained from an equivalence relation on n-1 elements. From a relation that divides into k-1 classes, there is only one way to get one that divides into k classes (the new element must be a new class by itself). From a relation that divides into k classes, there are k ways to do this (choose the existing class the new element must become part of). It is easy to see that these are the only two cases.

So P ( n , k ) = P ( n 1 , k 1 ) + k P ( n 1 , k ) P(n, k) = P(n-1, k-1) + k P(n-1, k)


Solution Inspired by Ivan Koswara and Ww Margera

Sorry if I sound stupid but I am just a beginner at discrete mathematics.
Moreover, I cant even clearly understand your solution.
My query is:
The first line has to have the corresponding letter 'A';
The second line has 2 options 'A' & 'B'
Third line has 3 options 'A', 'B' & 'C'
Continuing with the same logic the answer should be 14 ! 14!
What is wrong in my method?


Are there any restrictions to the rhyme scheme.

Yatin Khanna - 4 years, 9 months ago

Log in to reply

Yes, there are.

A 3-line poem cannot have the rhyme scheme AAC . The correct way to designate this poem a rhyme scheme is AAB .

Agnishom Chattopadhyay - 4 years, 9 months ago

Log in to reply

Ofcourse, I knew this one; thats why I said that the first line must have A corresponding to it and so on.
So, where does the problen lie in 14 ! 14!

Yatin Khanna - 4 years, 9 months ago

Log in to reply

@Yatin Khanna

The first line has to have the corresponding letter 'A'; The second line has 2 options 'A' & 'B' Third line has 3 options 'A', 'B' & 'C'

The third line does not always have that option. What if the first two lines are AA ? Can the third line be C ?

Agnishom Chattopadhyay - 4 years, 9 months ago
Mark Hennings
Oct 9, 2016

Taking the recurrence relation B n + 1 = k = 0 n ( n k ) B k B_{n+1} \; = \; \sum_{k=0}^n \binom{n}{k}B_k is it easy to show that the generating function B ( x ) = n = 0 B n n ! x n \mathcal{B}(x) \; = \; \sum_{n=0}^\infty \frac{B_n}{n!} x^n satisfies the equations B ( x ) = e x B ( x ) B ( 0 ) = 1 \mathcal{B}'(x) \; =\; e^x \mathcal{B}(x) \hspace{2cm} \mathcal{B}(0) = 1 and hence B ( x ) = e e x 1 \mathcal{B}(x) \; = \; e^{e^x-1} From this working out the coefficient of x 14 x^{14} is elementary, giving the answer 190899322 \boxed{190899322} . It is also worth noting that B n = m = 1 n { n m } B_n \; = \; \sum_{m=1}^n \left\{ \begin{array}{c} n \\ m \end{array} \right\} where { n m } \left\{\begin{array}{c}n \\ m \end{array} \right\} is the Stirling number of the second kind, which makes the Mathematica command

1
Sum[StirlingS2[14,n],{n,1,14}]

the simplest piece of code.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...