Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Number of electrons per subshell in element Z=n expressed as a 56-bit unsigned integer.
2

%I #16 Oct 07 2020 05:44:58

%S 1,2,6,10,26,42,58,74,90,106,234,362,874,1386,1898,2410,2922,3434,

%T 68970,134506,138602,142698,146794,89450,154986,159082,163178,167274,

%U 109930,175466,437610,699754,961898,1224042,1486186,1748330

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

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

%H Zachary Russ, <a href="/A333997/b333997.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 | Electrons per Subshell |

%e | | 7p|7s| 6d | 6p|6s| 5f | 5d | 5p|5s| 4f | 4d | 4p|4s| 3d | 3p|3s| 2p|2s|1s |

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

%e | 1 | 000 00 0000 000 00 0000 0000 000 00 0000 0000 000 00 0000 000 00 000 00 01 |

%e | 2 | 000 00 0000 000 00 0000 0000 000 00 0000 0000 000 00 0000 000 00 000 00 10 |

%e | 3 | 000 00 0000 000 00 0000 0000 000 00 0000 0000 000 00 0000 000 00 000 01 10 |

%e | 4 | 000 00 0000 000 00 0000 0000 000 00 0000 0000 000 00 0000 000 00 000 10 10 |

%e | 5 | 000 00 0000 000 00 0000 0000 000 00 0000 0000 000 00 0000 000 00 001 10 10 |

%e | 6 | 000 00 0000 000 00 0000 0000 000 00 0000 0000 000 00 0000 000 00 010 10 10 |

%e | . | . |

%e | . | . |

%e | . | . |

%e | 113 | 001 10 1010 110 10 1110 1010 110 10 1110 1010 110 10 1010 110 10 110 10 10 |

%e | 114 | 010 10 1010 110 10 1110 1010 110 10 1110 1010 110 10 1010 110 10 110 10 10 |

%e | 115 | 011 10 1010 110 10 1110 1010 110 10 1110 1010 110 10 1010 110 10 110 10 10 |

%e | 116 | 100 10 1010 110 10 1110 1010 110 10 1110 1010 110 10 1010 110 10 110 10 10 |

%e | 117 | 101 10 1010 110 10 1110 1010 110 10 1110 1010 110 10 1010 110 10 110 10 10 |

%e | 118 | 110 10 1010 011 10 1110 1010 110 10 1110 1010 110 10 1010 110 10 110 10 10 |

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

%o (C++) typedef unsigned char Subshell; uint64_t a(Subshell _1s=0x0, Subshell _2s=0x0, Subshell _2p=0x0, Subshell _3s=0x0, Subshell _3p=0x0, Subshell _3d=0x0, Subshell _4s=0x0, Subshell _4p=0x0, Subshell _4d=0x0, Subshell _4f=0x0, Subshell _5s=0x0, Subshell _5p=0x0, Subshell _5d=0x0, Subshell _5f=0x0, Subshell _6s=0x0, Subshell _6p=0x0, Subshell _6d=0x0, Subshell _7s=0x0, Subshell _7p=0x0) {return ((uint64_t)_1s) + ((uint64_t)_2s << 2 ) + ((uint64_t)_2p << 4 ) + ((uint64_t)_3s << 7 ) + ((uint64_t)_3p << 9 ) + ((uint64_t)_3d << 12) + ((uint64_t)_4s << 16) + ((uint64_t)_4p << 18) + ((uint64_t)_4d << 21) + ((uint64_t)_4f << 25) + ((uint64_t)_5s << 29) + ((uint64_t)_5p << 31) + ((uint64_t)_5d << 34) + ((uint64_t)_5f << 38) + ((uint64_t)_6s << 42) + ((uint64_t)_6p << 44) + ((uint64_t)_6d << 47) + ((uint64_t)_7s << 51) + ((uint64_t)_7p << 53);}

%Y Cf. A333662, A168208, A093907.

%K fini,nonn,full

%O 1,2

%A _Zachary Russ_, Sep 05 2020