Αποστολή με SMS: Tight bounds on the coefficients of partition functions via stability