You are not logged in.
We could continue in your thread in Computer Math about diophantine equations.
Here lies the reader who will never open this book. He is forever dead.
Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.
Offline
That is not what I meant. GF's are rather obscure and not taught. He/she will probably expect a solution in terms of ncr's.
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 you could do is say the kids got a, b, c, d, d (the twins each got the same) and then seek quadruples satisfiing a+b+c+2d=13 than try each value of d.
d=0: 13 candies 3 kids place dividers in ccccccccccccc (c for CANDY!) and see the number of ways we can put the 3 dividers (3 kids left) so 15 choose 2 = 105
d=1: same, 13 choose 2 = 78
d=2: same logic, 11 choose 2 = 55
d=3: ditto I stop saying same 9 choose 2 = 36
d=4: 7 choose 2 = 21
d=5: 5 choose 2 = 10
d=6: 3 choose 2 = 3
105+78+55+36+21+10+3=308
I got 308
Hi;
Welcome to the forum, 308 is the correct answer.
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
That looks like something that would please the OP.
By the way, I just though of a twist to the puzzle to make it just a bit harder.
Here lies the reader who will never open this book. He is forever dead.
Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.
Offline
Yes, I see that.
How about the recurrence:
with a(0)=1,a(1)=3
This is for what?
'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
For post #1.
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