Difference between generating function and exponential generating function

271 Views Asked by At

I cannot understand why would we use exponential generating functions instead of just simple generating functions. In a problem like: How many different ways can we distribute 20 students in 5 different labs so that each lab gets at least 1 student, how would it be solved with generating functions and how with EGF?