I Can't Find much information on this subject that I can easily understand (I'm not the best at maths).. I'm taking a combinatorics class and our teacher got to generating functions. He stated that we can model dice roll with the function
$$f(x)= x + x^2 + x^3 + x^4 + x^5 + x^6$$
My question is why can we do this? What does "x" mean in this function and was does $x + x^2 + x^3 + x^4 + x^5 + x^6$ have anything to do with modeling the rolls of a dice?