Nesting Algo: Find Formula for List & Target (520)

  • Context: Undergrad 
  • Thread starter Thread starter Arkamis17
  • Start date Start date
  • Tags Tags
    Algorithm Formula
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 1K views
Arkamis17
Messages
1
Reaction score
0
Hey guys,

I'm searching a formula for this kind of situation :

We have a list of values (33,60,50,15,100) and a target (520). We want to know how many times each value can go in the target (close to) with those specifications :

- Maximum 2 different value at the time
- Minimum use of valuesI'm pretty sure, there is a formula out there that respond to our situation.
P.S.: Forgive my English speaking, it's not my primary language.
 
Mathematics news on Phys.org
Your description of what you are looking for is very unclear. Give an example of what you are trying to describe.
 
  • Like
Likes   Reactions: platetheduke