A class has n≥1 students and has held n sessions, numbered 1,…,n. Exactly i students attended session i.
The total numbers of sessions attended by the students are pairwise distinct.
Prove that every student attended all sessions from their first attendance onward.