mostly combinatorics hw