For her excellent performance, pianist Chevonne was awarded a pearl necklace. The necklace consisted of

pearls which form a circle and are numbered

clockwise.
To prevent the pearls from being covered with dust, she wants to move pearls from the necklace and wipe them. However, the way to remove the pearls is complex because of their uniqueness of them.
Specifically, every pearl on the necklace has a continuity value
)
. Each turn, Chevonne can choose a pearl

with

and move the pearl

and

clockwise consecutive pearls (

pearls in all). Be careful! If the number of remaining pearls is
less than 
, she will be unable to choose pearl

. After that, the remaining pearls will form a new circle.
Chevonne will repeat the process till she can't remove any pearls or all the pearls have been removed. She is curious about the maximum number of pearls she could remove and the number of such solutions.
Here, we use a set to describe a solution. The set contains the number

if Chevonne chose pearl

in some step. Two solutions are different if and only if the sets are different.