Ni(Z = 28) : [Ar]184s23d8 Ni2+:[Ar]183d8 [Ni(NH3)4]2+:Ni2+ undergoes sp3-hybridisation, the resulting ion is paramagnetic due to the presence of two unpaired electrons. Ni(CO)4 : Two 4s-electrons in Ni pair up with 3d-electrons followed by sp3-hybridisation. The resulting complex has no unpaired electron and is diamagnetic. [Ni(CN)4]2− : CN' being a strong ligand, pairs up the two unpaired electrons in d-subshell of Ni2+.
This is followed by dsp2-hybridisation. The complex ion has no unpaired electron and is diamagnetic. [Co(NH3)6]3+:Co3+ with 3d6-configuration undergoes d2sp3-hybridisation, after pairing up of all the six d-electrons in three d-orbitals. As the ion has no unpaired electron, it is diamagnetic