Skip to main content

All Questions

1 vote
1 answer
62 views

Computing integer partitions subject to certain constraints

Context: I am programming a videogame. Background: Let $I$ be a set of named items such that each is assigned a difficulty score, and each is tagged either as "food" or "obstacle". ...
A. B. Marnie's user avatar
  • 1,312
1 vote
0 answers
62 views

Number of solutions to linear equation $x_1+x_2+\dots+x_n=m$ when the domain of $x_i\ne$ domain of $x_j$

In the lecture notes of one of my previous classes, it was used that if we have an equation of the form $$\tag{1} x_1+x_2+\dots+x_n=m $$ then the total number of solutions, when each $x_i$ is a non-...
Hydrogen's user avatar
  • 175