You are not logged in.
Pages: 1
My problem is below in post #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
Hi;
If you must spend the whole $200HKD I am getting 252 as the answer.
Dinner almost done, see you later.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
What if $200 is the upper bound?
'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
What do the topping and the pizza cost then? Problem is done in the same way. I used a gf to solve it.
But before that, is the answer correct? Have I interpreted the problem correctly?
Because if you can spend less than $200HKD then the answer is 420.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Hello administrator;
The problem is from another site and is active please cover it up.
Hello Agnishom;
bobbym tells me you are learning M:) Then this is for you.
I computed the answer and used the number of terms in the generating function as a cute test
ans4 = Tuples[{{thk, thn}, {a, b, c, d, e, f}, {a, b, c, d, e, f}, {a,
b, c, d, e, f}, {a, b, c, d, e, f}}];
ans4 = Union[Sort[#] & /@ ans4];
Length[ans4]
List @@ Expand[(thk + thn) (a + b + c + d + e + f)^4] // Length
252
ans3 = Tuples[{{thk, thn}, {a, b, c, d, e, f}, {a, b, c, d, e, f}, {a,
b, c, d, e, f}}];
ans3 = Union[Sort[#] & /@ ans3];
Length[ans3]
List @@ Expand[(thk + thn) (a + b + c + d + e + f)^3] // Length
112
ans2 = Tuples[{{thk, thn}, {a, b, c, d, e, f}, {a, b, c, d, e, f}}];
ans2 = Union[Sort[#] & /@ ans2];
Length[ans2]
List @@ Expand[(thk + thn) (a + b + c + d + e + f)^2] // Length
42
ans1 = Tuples[{{thk, thn}, {a, b, c, d, e, f}}];
ans1 = Union[Sort[#] & /@ ans1];
Length[ans1]
List @@ Expand[(thk + thn) (a + b + c + d + e + f)^1] // Length
12
ans0 = Tuples[{{thk, thn}}];
ans0 = Union[Sort[#] & /@ ans0];
Length[ans0]
List @@ Expand[(thk + thn) (a + b + c + d + e + f)^0] // Length
2
252 + 112 + 42 + 12 + 2 = 420
Last edited by ElainaVW (2014-03-03 01:18:41)
Offline
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
What is going on over there? Why are there so many answers?
Brilliant does not have any restriction on sharing their problems on other sites anymore
'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
I will replace it back if you want but it still would be better to post it in the form of a picture rather than text. Text can be googled for keywords, pictures can not. Many people can solve a tough question now just by looking at our answers. The more people that solve a question, the lower the rating of the question. Also means lower rating for those who solved it like me.
What do you say to this?
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
So, is it morally wrong to post the question here?
'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
No, if they have removed their restriction then it is okay. I was just recommending posting them as a picture as I have done. I do run into some people who ask those questions on other forums. They are looking to increase their score by cheating. Right now, that does not matter but I would say that soon B will bring back the old system and then points will count again.
There is not many answers just 420 if you can spend 200 or less and 252 if you must spend 200. The question is a little unclear and took me two tries because of that.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
I do run into some people who ask those questions on other forums. They are looking to increase their score by cheating.
You mean me?
I understand the way it is done with nCr's. But that looks like ugly casework. Is there a way to use generating functions?
'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
https://brilliant.org/faq/#solving-problems
See the last question in the Solving Problems section. I did not post this to get an answer
'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
You mean me?
Of course, I mean you. You varmint! If I were a reppie I would swim to India find you and eat you.
I believe we both did use gf's to solve the problem. I used them to compute the answer she used them as a check. She is perhaps a bit more M inclined then I am. Some of her training was by my brother and the Colonel. They like computers and hate math.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Where is the gf? It looks like it is a brute force solution or something.
Please look at Post 12
Who is the colonel?
'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
The gf is this
The number of terms in that is 252. That is the answer for 200. Please use M to verify that.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
I will use Maxima instead.
(%i1) nterms(((thk+thn)*(a+b+c+d+e+f)^4))+nterms(((thk+thn)*(a+b+c+d+e+f)^3))+nterms(((thk+thn)*(a+b+c+d+e+f)^2))+nterms(((thk+thn)*(a+b+c+d+e+f)^1))+nterms(((thk+thn)*(a+b+c+d+e+f)^0));
(%o1) 420
When are we supposed to be concerned about the number of terms in a gf?
'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
I would rather you do it in M because an important principle will be learned soon. If you expand her gf you will see that some terms have numbers in front of them for instance.
(4 a^3 b thk) that means in her somewhat cryptic notation thick crust, 3 toppings of a and one of b. We see the number 4 in front.
That 4 means there are 4 ways to arrange a a a b, count them using M. But you notice that aaab and aaba have different order but they are the same pizza because order does not count.
Therefore, every number is discarded leaving 1 of each. That is why she counted terms.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
I would rather you do it in M ...
Please fix it. The sentence is either not grammatical or not parsable by me
'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
Instead of using Maxima, doing her work in Mathematica will be more profitable in the long run.
It is also fairly easy to see the NCR solution buried inside here method.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Pages: 1