necklace: Number of necklaces

Description Usage Arguments Value Author(s)

Description

Compute the number of necklaces of length n formed from an alphabet with k symbols. See https://en.wikipedia.org/wiki/Necklace_(combinatorics).

Usage

1
necklace(k, n)

Arguments

k

Number of symbols in the alphabet

n

Length of string

Value

Number of necklaces

Author(s)

David Sterratt


davidcsterratt/dcsmisc documentation built on May 14, 2019, 11:10 p.m.