Managing Sequences

How to create and manage custom sequences, commonly used for invoice numbers.