Centipedes are part of the group of insects that utilize a short germ-band mode of embryonic development.1 One feature of this type of segmentation is that new segments are added sequentially to the end of the developing insect (the "posterior proliferative zone"). This is in contrast to insects that undergo long germ-band gastrulation, like Drosophila, where all segments are created simultaneously.
Additionally, Myriapoda demonstrate double segmental periodicity, meaning that segments are always added two at a time. See the following informative figure from Damen 2004 2 --
Figure 2. Segmentation in the geophilomorph centipedes involves a phase of double segmental periodicity. The drawing shows a schematic model for segmentation in geophilomorphic centipedes. Segments are patterned in posterior tissue that does not show overt segmentation. Segments become molecularly defined in entities (coloured blocks) that eventually give rise to two segments each. Before morphological segments become visible, these two-segment entities are molecularly subdivided into segmental units (dashed lines), which each eventually will give rise to one segment. For instance, at stage I C represents an entity that is refined into two units (C at stage II), which give rise to one segment each (C′ at stage III). This mechanism of segmentation provides a developmental constraint that only allows the addition of segments in bits of two and in this way only allows odd numbers of trunk segments in centipedes.
One would expect, then, to only see even numbers of leg pairs. Arthur and Chipman explain this discrepancy in their 2005 essay 3 on Strigamia maritima, the most well-studied member of the Myriapoda subphylum.
Of course, if everything happens in twos, we would expect that there would always be an even, rather than odd, number of segments. But this apparent discrepancy is probably not real. It seems likely that the poison claw segment immediately anterior to the first pair of legs is really a modified trunk segment.
As for how Myriapoda add segments two at a time, I direct you to sources like Chipman and Akam 2008 4, though be prepared for some heavy reading on signaling cascades and morphogen gradients.
CitationsReferences
- Hughes CL, Kaufman TC. Exploring myriapod segmentation: the expression patterns of even-skipped, engrailed, and wingless in a centipede. Dev Biol. 2002 Jul 1;247(1):47-61.
- Damen WG. Arthropod segmentation: why centipedes are odd. Curr Biol. 2004 Jul 27;14(14):R557-9.
- Arthur W, Chipman AD. The centipede Strigamia maritima: what it can tell us about the development and evolution of segmentation. Bioessays. 2005 Jun;27(6):653-60.
- Chipman AD, Akam M. The segmentation cascade in the centipede Strigamia maritima: involvement of the Notch pathway and pair-rule gene homologues. Dev Biol. 2008 Jul 1;319(1):160-9.