Combinatorics - Generating Functions

Click For Summary

Homework Help Overview

The problem involves combinatorial reasoning related to generating functions, specifically determining the generating function for how John can allocate his remaining hours among his girlfriends and wife under specific constraints.

Discussion Character

  • Exploratory, Mathematical reasoning

Approaches and Questions Raised

  • The original poster attempts to formulate a generating function based on the constraints for each girlfriend and wife. Some participants question the correctness of the generating function for one of the variables.

Discussion Status

Participants are actively discussing the formulation of the generating function, with some guidance provided regarding the correct representation of one of the series. There is a collaborative effort to refine the generating function based on feedback.

Contextual Notes

Constraints include specific hour allocations for each person, with particular attention to the minimum and maximum hours John can spend with each individual.

mattmns
Messages
1,129
Reaction score
5
Here is the question from the book:
--------
John was recently diagnosed with a lethal disease and is said to have n hours left to live. John would like to spend his remaining time with his three girlfriends and wife, Jane, Jill, Joan and Amy, respectively. Assuming that John must spend between 0 and 2 hours with Jane, 0,2,4, or 6 hours with Jill, an even number of hours with Joan (including 0) and at least 1 hour with his wife Amy, determine the generating function [itex]h_{n}[/itex] of ways he can spend his remaining hours.

---------

So this problem is basically the same as the number of non-negative integral solutions to the following equation:

[itex]e_1 + e_2 + e_3 + e_4 = n[/itex]
where,
[itex]0 \leq e_1 \leq 2, e_2 \in \{0,2,4,6\}, e_3 \in \{0,2,4,6,8,...\}, e_4 \in \{1,2,3,4,5,...\}[/itex]

So we can associate with each [itex]e_i[/itex] the following series.

[tex](e_1): 1 + x + x^2 = \frac{1-x^3}{1-x}[/tex]
[tex](e_2): 1 + x^2 + x^4 + x^6 = \frac{1-x^7}{1-x^2}[/tex]
[tex](e_3): 1 + x^2 + x^4 + x^6 + ... = \frac{1}{1-x^2}[/tex]
[tex](e_4): x + x^2 + x^3 + x^4 + ... = \frac{x}{1-x}[/tex]

so, our generating function,

[tex]g(x) = \frac{1-x^3}{1-x}\frac{1-x^7}{1-x^2}\frac{1}{1-x^2}\frac{x}{1-x}[/tex]

Everything look good? Thanks.
 
Physics news on Phys.org
It looks good except for your generating function for e2. Think of it as a series in y = x^2. What would that series in y be?
 
Thanks. I wondered about that for [itex]e_2[/itex]

So it should then be:

[tex]\frac{1-x^8}{1-x^2}[/tex]
 
Yes, that's what it should be.
 

Similar threads

  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 40 ·
2
Replies
40
Views
5K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K