A necklace is a closed string of length n over a set of size
  k (numbers, characters, clors, etc.), where all rotations are
  taken as equivalent. A bracelet is a necklace where strings may also
  be equivalent under reflections.
Polya's enumeration theorem can be utilized to enumerate all necklaces
  or bracelets. The final calculation involves Euler's Phi or totient
  function, in this package implemented as eulersPhi.