I'm trying to replicate the following table:

At first I was thinking of making it by dividing all the content into single cells, but since there are those numbers enclosed in curly brackets, I told myself it was not very convenient (especially considering the numbers on the left of each curly bracket are actually vertically aligned). Then I thought of dividing the table into "groups" of cells
Code: Select all
\documentclass{article}\usepackage{multirow}\usepackage{amsmath}\title{Table}\author{Dude}\begin{document}\begin{table}[]\centering\begin{tabular}{|l|l|l|l|}\hline\multicolumn{1}{|c|}{I} & \multicolumn{1}{c|}{\multirow{2}{*}{II}} & \multicolumn{1}{c|}{\multirow{2}{*}{III}} & \multicolumn{1}{c|}{\multirow{2}{*}{IV}} \\ \cline{1-1}n \qquad l \qquad m & \multicolumn{1}{c|}{} & \multicolumn{1}{c|}{} & \multicolumn{1}{c|}{} \\ \hline\multirow{5}{*}{1} & \multirow{14}{*}{} & 1 orbitale & 1 \\ \cline{3-4}& & 1 orbitale & \multirow{4}{*}{4} \\& & \multirow{3}{*}{3 orbitali} & \\& & & \\& & & \\ \cline{1-1} \cline{3-4}\multirow{9}{*}{3} & & 1 orbitale & \multirow{9}{*}{9} \\& & \multirow{3}{*}{3 orbitali} & \\& & & \\& & & \\& & \multirow{5}{*}{5 orbitali} & \\& & & \\& & & \\& & & \\& & & \\ \hline\end{tabular}\end{table}\end{document}
Any help on how to proceed would be appreciated. Thank you
P.S.: the reason I thought about using the align environment is because I need the braces of the original pic and I also need the numbers aligned.