Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 2015-02-18 05:59:12

NickMeyers
Member
Registered: 2015-01-17
Posts: 46

Another Combination Problem 2

Hi there, I could use help with another one of these.  Thank you for all the help!!


Contraints:
Only one player from each match can be used.
There are 10 matches (A vs B, C vs D, E vs F, etc.).
5 players must be picked.
The total combined cost of the 5 picked, must be > or = to 495 and < or = to 500 (495-500)
All combinations 494 and under, or over 500 are not important.
I need to be able to generate a list of combinations, that fit this criteria, along with associated costs.



Data Set:
Match    Cost
1    A    84   
      B    119
   
2    C    91   
      D    108
   
3    E    118
      F    82
   
4    G    121
      H    78

5    I    86
      J    113
   
6    K    84   
      L    115
   
7    M    83 
      N    116
   
8    O    111
      P    88
   
9    Q    103
      R    96
   
10   S   117   
      T    82

List:
{84, 119, 91, 108, 118, 82, 121, 78, 86, 113, 84, 115, 83, 116, 111, 88, 103, 96, 117, 82}

Offline

#2 2015-02-22 03:36:45

NickMeyers
Member
Registered: 2015-01-17
Posts: 46

Re: Another Combination Problem 2

Usually Agnishom knocks these out for me, but haven't seen him on here....

Offline

#3 2015-02-22 04:18:46

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,974
Website

Re: Another Combination Problem 2

He is preparing for a chemistry test.

So, he is solving problems like this for a change:

What is the minimum volume of water required to dissolve 1g of Calcium sulphate at 298 K. For calcium, K_sp = 9.1 * 10^-6


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#4 2015-02-22 05:06:27

NickMeyers
Member
Registered: 2015-01-17
Posts: 46

Re: Another Combination Problem 2

Good luck on your exam!  That's some math I can do! lol

If you can do my problems you will do great in chemistry. I have taken general chem, organic and biochem... been a few years, but let me know if you need any help!

Offline

#5 2015-02-22 13:14:38

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,974
Website

Re: Another Combination Problem 2

I wish you told me earlier. I was having trouble solving these. Thanks smile


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#6 2015-02-22 13:36:00

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,974
Website

Re: Another Combination Problem 2

Can you help me with this?

L%20in%200.02%20M%20solution%20of%20%7D%20Mg%28NO_3%29_2%20%5Ctext%7B%3F%7D%5C%5C%20K_%7Bsp%7D%20%5Ctext%7B%20of%20%7D%20Mg%28OH%29_2%20%5Ctext%7B%20is%20%7D%201.8%20%5Ctimes%2010%5E%7B-11%7D%20mol%5E3%20L%5E%7B-3%7D

Last edited by Agnishom (2015-02-22 13:38:21)


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#7 2015-02-23 17:16:40

NickMeyers
Member
Registered: 2015-01-17
Posts: 46

Re: Another Combination Problem 2

Thats a tough one, like I said its been awhile...I don't think I would be much help with out digging out my old books...

To solve this I think you set up the equations by how they dissociate...then I am pretty sure you can use the Ksp to solve for the individual values...

Get the molar mass to convert to g/l...and I am lost...lol sorry

Offline

#8 2015-03-06 17:49:50

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,974
Website

Re: Another Combination Problem 2

Hi;

I am getting 555 values.

My chemistry test was fine.

I am sorry for not replying sooner. I had just forgotten this thread sad

I was reading a programming article today, it reminded me of you


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#9 2015-03-13 08:45:23

NickMeyers
Member
Registered: 2015-01-17
Posts: 46

Re: Another Combination Problem 2

Thanks again Agnishom!  Glad your Chemistry test went well!!  I have been studying for a big exam myself, and haven't been back on here in a bit.  If you catch this soon I have another data set I was hoping that you could run the numbers on.  But if you can't get to it  within the next 24 hours (after I posted this), then I won't be able to use it.  So thank you if you can post it quickly!  Thank you for your past help and time with these, I need to learn how to set these up myself.  How did you get started learning programming code?

{76,122,90,105,117,78,84,111,124,71,77,118,117,78,106,89,114,81}

Contraints:
Only one player from each match can be used.
There are 10 matches (A vs B, C vs D, E vs F, etc.).
5 players must be picked.
The total combined cost of the 5 picked, must be > or = to 495 and < or = to 500 (495-500)
All combinations 494 and under, or over 500 are not important.
I need to be able to generate a list of combinations, that fit this criteria, along with associated costs.


Data Set:
Match    Cost
1    A    76 
      B    122
   
2    C    90   
      D    105
   
3    E    117
      F    78
   
4    G    84
      H    111

5    I    124
      J    71
   
6    K    77   
      L    118
   
7    M    117
      N    78
   
8    O    106
      P    89
   
9    Q    114
      R    81

Offline

#10 2015-03-13 14:01:42

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,974
Website

Re: Another Combination Problem 2

I scored 77 out of 100 in the total in chemistry which is the highest in our school!

If you are interested in only this kind of problems, I have an idea. My suggestion is that everytime you need this, you can go here, fork my code, modify line 7 and 26, and run it in haskell in that website itself

Last edited by Agnishom (2015-03-13 14:18:24)


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#11 2015-03-14 08:21:34

NickMeyers
Member
Registered: 2015-01-17
Posts: 46

Re: Another Combination Problem 2

Wow!! Congratulations! You should be very proud of that!!!! Great work!!

Thanks for your help again! I will try out that website and let you know how it goes.

Keep up the great work in Chemistry!!

Offline

#12 2015-03-14 13:00:56

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,974
Website

Re: Another Combination Problem 2

Let me know what you think of my idea.

77/100 is not too good. I suspect there are guys in other schools who score 85+ in the same course


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#13 2015-03-15 17:37:41

NickMeyers
Member
Registered: 2015-01-17
Posts: 46

Re: Another Combination Problem 2

That website was amazing! I was able to input the numbers from the previous data set and got the matching 555! 

Great thinking! This is really helpful, I really appreciate this Agnishom!

And as far as not getting 85+ on the Chemistry exam, just know you did a good job.  it's always best to avoid comparing yourself to others, and know if you work hard you can get to where ever you want to be.  There are lots of great quotes out there, but when it comes to comparing your performance to others, this is my favorite.

"The only person you should try to be better than is the person you were yesterday."

Keep up the good work!

Offline

#14 2015-03-15 19:28:50

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,974
Website

Re: Another Combination Problem 2

Thank you for your inspiring words, Nick!

By the way, I put up one of this problems as a programming puzzle on a site I moderate.


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#15 2015-03-20 05:04:39

NickMeyers
Member
Registered: 2015-01-17
Posts: 46

Re: Another Combination Problem 2

Anytime, thanks.  Let me know if they can figure it out.  You figured it out quick!  I am going to try to fork a problem on my own here soon.  I'll post the details and see if I get the right answer.

Offline

#16 2015-03-20 12:34:15

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,974
Website

Re: Another Combination Problem 2

Around 33 people could solve it

Oh, bobbym has a mathematical formulation if you are interested


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

Board footer

Powered by FluxBB