Five Pirates Are Stranded on an Island...

<p>Anyone interested in extending this to a general solution for n pirates?</p>