Hi
I'm not quite sure what title to give to this question or what tags to use, because this isn't really my area of expertise and I'm unfamiliar with the terminology. It is a problem that came up while trying to write a program to enumerate some graphs, however there is no graph theory left in this problem.
Let me first start by giving definitions for the different components. I have a set $C$ and two functions: $s:C\rightarrow \mathbb{N}$ and $r:C\rightarrow \mathbb{N}$. The values for these functions are completely known. It is also true that $\forall c \in C: r(c)=s(c) \vee r(c)=\frac{s(c)}{2}$. I don't know whether this will make a difference for the solution of my problem, but it might be relevant information.
I am now interested in finding all possible functions $m:C\rightarrow \mathbb{N}$ that satisfy the following conditions:
- $\sum_{c\in C}\frac{s(c)}{m(c)}=\sum_{c \in C}\frac{s(c)}{4}$
- $\forall c \in C: r(c) \mid m(c)$
I really need an algorithm to find all possible solution, but of course I'm also interested in any theoretical results that could help me find such an algorithm. As I said, I'm not really at home in this type of problems, so I have no idea what to look for and where to start. The first conditions makes it impossible to have an infinite number of solutions, but in some cases I have some better upper bounds and lower bounds available for the value of the function $m$ in certain points. It would be nice if this could be taken into account, but I think it would not be the bottle-neck if I just filtered the solutions to take these bounds into account.
Any help is greatly appreciated. And of course I will try my best to clarify anything in my explanation that isn't clear.
Edit: Let me first say that $C$ will always be finite.
A small example might also be more clarifying. Suppose we have $C=\{1,2\}$, the function $s:C\rightarrow\mathbb{N};c\mapsto 2$ and the function $r:C\rightarrow\mathbb{N};c\mapsto 1$.
We then have three possible solutions for $m$:
- $m(1)=3$, $m(2)=6$
- $m(1)=4$, $m(2)=4$
- $m(1)=6$, $m(2)=3$

