Under OEIS A001006, a Motzkin number for a given n is the number of ways for drawing non-intersecting chords among n points on a circle, where the first 7 entries are 1, 1, 2, 4, 9, 21, 51.
Motzkin(n, gmp = TRUE)
the number of first
a vector of length
n containing first entries from the sequence.
## generate first 30 Motzkin numbers print(Motzkin(30))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.