The iron in a steel bike frame fills 3d, so why is iron in row 4?
Think of the iron in a steel bike frame. If you look up iron on the periodic table, you find it in row four. Yet the sublevel being filled is called three d. Why don't those two numbers match?
You know that atomic number counts protons. Mendeleev arranged elements mainly by atomic mass and left gaps for undiscovered elements. Moseley established atomic number as the basis of the modern order. Read magnesium's three s two: three gives the shell, s gives the sublevel type and the raised two counts electrons there.
Blue marks where s fills, green marks where p fills and orange marks where three d fills. These regions are blocks. Group one metals are reactive and have one outer electron. The noble gases on the right have full outer shells and are very unreactive. Helium's filled one s sublevel makes it blue.
Aluminium has a filled three s sublevel and one electron in the three p sublevel. Look at the sublevel being filled. Which block does aluminium belong to? Pick one.
For a neutral atom in its ground state, up to krypton, find the highest shell number that has any electrons. That number gives the period. Iron's three d sublevel gives you the block, but its four s electrons put it in period four.
Magnesium fills three s, so it's in the s block, period three. Iron fills three d, so it's in the d block, and four s puts it in period four. Krypton fills four p, so it's in the p block, also in period four.
Try cobalt. After the argon core, it has seven electrons in three d and two in four s. Find the sublevel being filled, then find the highest shell with electrons. Pick the block and period that match.
An occupied orbital holds at least one electron. Magnesium has one occupied orbital in each of one s, two s and three s, and three in two p. That's six occupied orbitals. Calling that period six is the trap. The highest occupied shell is three, so magnesium is in period three.
An exam question can give you nickel's electron configuration and ask you to state its block and period. The sublevel being filled is three d, so write d block. The four s electrons make four the highest occupied shell number, so write period four.