odd and even pair of what ?
The port pins. The SAMD21G IO pins are logically arranged as two 32-bit ports A and B, though most of the port B pins are unused. The port pins on port A range from PA00 to PA31.
why PA21 is paired with PA20 and not PA18 ?
Because the port pins are paired as even and odd numbers starting from 0. So the first pair is PA00 and PA01, the second pair is PA02 and PA03, and so on.
I am also seeing TCC timers in E , how come?
Yes, the TC and some TCC timers are mapped to peripheral E. On some pins this allows you to multiplex between different timers on the same pin. A full list is given Table 6.1 PORT Function Multiplexing table in the SAMD21G datasheet.
why selected peripherial A-G ?
I mistyped. It should be A-H.
how dividing by 2 selects the given PMUX register can you give an example ?
Port A has 32 pins from PA00 to PA31 and therefore has 32 "Pin Configuration" registers. So you can access the PMUXEN bit by simply specifying the port and the pin number.
However, there are only half the number of "Peripheral Multiplexer" registers, one for each port pair. So port A has only 16 registers. To access the "Peripheral Multiplexer" registers it's necessary divide the port pin number by 2. For example to access PA21 you need to divide 21 by 2 this gives you "Peripheral Multiplexer" register number 10, which is the register for the pair PA20 and PA21.