1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Generating functions

  1. Jun 18, 2006 #1

    0rthodontist

    User Avatar
    Science Advisor

    Problem: Find the coefficient of x^7 in (1 + x + x^2 + x^3 + ...)^n
    I thought this should be C(n + 6, 6) since you have to distribute 7 x's between the n series with repetition. But my book says it is C(n + 6, 7). (C for combination) What is the explanation?
     
  2. jcsd
  3. Jun 18, 2006 #2

    matt grime

    User Avatar
    Science Advisor
    Homework Helper

    Well, lets see what happens when n=0. The coefficient of x^7 is 0, and 6C6=1 (you answer) and 6C7=0 (their answer; it is a convention that it is zero).

    You could prove it inductively, and it might (for once) give you an idea of what's going on (induction usually doesn't). Or just work it through for some small n to see what is happening.
     
    Last edited: Jun 18, 2006
  4. Jun 18, 2006 #3

    0rthodontist

    User Avatar
    Science Advisor

    Ah, never mind, it was just a dumb error. I misused the formula for selection with repetition--mixed up my bins and my objects.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Generating functions
  1. Generating Functions (Replies: 0)

  2. Generating Function (Replies: 0)

  3. Generating Function (Replies: 3)

  4. Generating Function (Replies: 4)

Loading...