For 1d box problem, the quantum number n = 1 corresponds to the ground state, and n=2 corresponds to the first excited state, and so on.