[go: up one dir, main page]

login
Number of electrons per shell in element Z=n expressed as a 32-bit unsigned integer.
2

%I #30 Oct 07 2020 05:36:51

%S 1,2,6,10,14,18,22,26,30,34,98,162,226,290,354,418,482,546,2594,4642,

%T 4706,4770,4834,2914,4962,5026,5090,5154,3234,5282,7330,9378,11426,

%U 13474,15522,17570,148642,279714,281762,283810

%N Number of electrons per shell in element Z=n expressed as a 32-bit unsigned integer.

%C This is a memory-efficient way of encoding the number of electrons per shell of all known elements.

%H Zachary Russ, <a href="/A333662/b333662.txt">Table of n, a(n) for n = 1..118</a>

%H Wikipedia, <a href="https://en.wikipedia.org/wiki/Electron_configurations_of_the_elements_(data_page)">Electron configurations of the elements (data page)</a>

%e |-----|------------|------------|----------------------------------------|

%e | | | | a(n) [bin] |

%e | n | a(n) [dec] | a(n) [hex] | Electrons per Shell |

%e | | | | Q | P | O | N | M | L | K |

%e |-----|------------|------------|-----|-----|------|------|-----|----|---|

%e | 1 | 1 | 0x00000001 | 0000 00000 000000 000000 00000 0000 01 |

%e | 2 | 2 | 0x00000002 | 0000 00000 000000 000000 00000 0000 10 |

%e | 3 | 6 | 0x00000006 | 0000 00000 000000 000000 00000 0001 10 |

%e | 4 | 10 | 0x0000000a | 0000 00000 000000 000000 00000 0010 10 |

%e | 5 | 14 | 0x0000000e | 0000 00000 000000 000000 00000 0011 10 |

%e | 6 | 18 | 0x00000012 | 0000 00000 000000 000000 00000 0100 10 |

%e | . | . | . | . |

%e | . | . | . | . |

%e | . | . | . | . |

%e | 113 | 960562338 | 0x394104a2 | 0011 10010 100000 100000 10010 1000 10 |

%e | 114 | 1228997794 | 0x494104a2 | 0100 10010 100000 100000 10010 1000 10 |

%e | 115 | 1497433250 | 0x594104a2 | 0101 10010 100000 100000 10010 1000 10 |

%e | 116 | 1765868706 | 0x694104a2 | 0110 10010 100000 100000 10010 1000 10 |

%e | 117 | 2034304162 | 0x794104a2 | 0111 10010 100000 100000 10010 1000 10 |

%e | 118 | 2302739618 | 0x894104a2 | 1000 10010 100000 100000 10010 1000 10 |

%e |-----|------------|------------|----------------------------------------|

%o (C++) typedef unsigned char Shell; uint32_t a(Shell s1 = 0x0, Shell s2 = 0x0, Shell s3 = 0x0, Shell s4 = 0x0, Shell s5 = 0x0, Shell s6 = 0x0, Shell s7 = 0x0) {return (uint32_t)s1 + ((uint32_t)s2 << 2) + ((uint32_t)s3 << 6) + ((uint32_t)s4 << 11) + ((uint32_t)s5 << 17) + ((uint32_t)s6 << 23) + ((uint32_t)s7 << 28);}

%Y Cf. A333997, A168208, A093907.

%K fini,nonn,full

%O 1,2

%A _Zachary Russ_, Sep 02 2020