1 answer
Auto numbers are incremented when you run tests or deployments. To avoid this you can enable this option from Setup by clicking Develop | Apex Test Execution | Options..., selecting Independent Auto-Number Sequence. It is also incremented when you insert new records via apex but fails to execute and records are rolled back. This cannot be avoided.