Skip to content
Quantoros

Count integer solutions x1+x2+x3+x4=15 with 2<=xi<=5.

Quant ResearchLevel: AdvancedAllocation with caps

Count integer solutions x1+x2+x3+x4=15 with 2<=xi<=5.

Hints
  • Remove lower bounds before enforcing upper bounds.
  • Check whether two cap violations can overlap.

Answer

This answer is part of mentoring

Advanced questions come with a full breakdown and a mock interview with a working quant researcher. The first call is free.

Source and licence: Oscar Levin — Discrete Mathematics: An Open Introduction, 3rd edition · CC-BY-SA-4.0 · answer: Quantoros editorial

Related questions