Page 1 of 1
Problem 053
Posted: Thu Sep 04, 2008 9:19 am
by shadowboy
For the combinatorics problem 53, 23C10 is the same as 23C13. Do these count as two values or 1?
In other words, is the question asking for unique number of values or *total* number?
Re: Problem 53
Posted: Thu Sep 04, 2008 11:12 am
by Tommy137
They count as two values.
Re: Problem 53
Posted: Thu Sep 04, 2008 11:15 am
by Georg
The question is asking for *total* number.
Re: Problem 53
Posted: Thu Sep 04, 2008 11:38 am
by jaap
Rereading it now, it seems ambiguous. Maybe it should read something like:
How many pairs of numbers (n,r), for 1<=n<=100, are there with nCr greater than one-million?
The phrase "values of nCr" in the original question probably shouldn't be used considering 23C10 = 23C13 are both counted but have the same value.
Re: Problem 53
Posted: Thu Sep 04, 2008 1:27 pm
by daniel.is.fischer
The phrase "How many values of nCr" can indeed be interpreted in two ways.
You can either consider the function (n,r) → nCr, which is the intended interpretation here, or you can consider the set of values and its cardinality.
Would "How many values of nCr, for 1 ≤ n ≤ 100, 0 ≤ r ≤ n, are greater than one-million?" be good?
Re: Problem 53
Posted: Thu Sep 04, 2008 2:08 pm
by jaap
daniel.is.fischer wrote:
Would "How many values of nCr, for 1 ≤ n ≤ 100, 0 ≤ r ≤ n, are greater than one-million?" be good?
I think that is just as ambiguous. How about:
For 1 ≤ n ≤ 100, 0 ≤ r ≤ n, how often is
nC
r greater than one-million?
Re: Problem 53
Posted: Thu Sep 04, 2008 4:51 pm
by hk
Or simply:
How many, not necessarily distinct, values of nCr, for 1<=n<=100, are greater than one-million?
Re: Problem 53
Posted: Sat Sep 06, 2008 10:44 pm
by hk
As no further comments were given, I changed it to my version which is nearest to the original version.
Problem 053
Posted: Wed Jun 08, 2011 1:15 am
by m34tcode
Im having a ton of trouble with this one. My program will return 1144066 for 23C10, but my count is always wrong. tried changing it a little tons of times, really cant see anything wrong. anyone care to look at it? i wrote it in java.
Re: Problem 053
Posted: Wed Jun 08, 2011 4:06 am
by Molx
If your code correctly returns the
nC
r function then it's probably miscounting. I suggest you re-check your code to make sure your're counting according to the problem rules, as I myself often get a wrong interpretation of those.
Next time remember to leave the problem link =)
Problem 53 (
View Problem)
Re: Problem 053
Posted: Wed Jun 08, 2011 7:52 am
by Lord_Farin
m34tcode wrote:Im having a ton of trouble with this one. My program will return 1144066 for 23C10, but my count is always wrong. tried changing it a little tons of times, really cant see anything wrong. anyone care to look at it? i wrote it in java.
If you don't manage to solve it with the above suggestion, I could take a look. You can send a PM.
Re: Problem 053
Posted: Wed Jun 08, 2011 10:07 am
by jaap
Remember to only count the distinct values. For example 23C10 and 23C13 are both 1144066 but only count as one rather than two.
Edit: Ignore this post
Re: Problem 053
Posted: Wed Jun 08, 2011 11:00 am
by hk
jaap wrote:Remember to only count the distinct values. For example 23C10 and 23C13 are both 1144066 but only count as one rather than two.
This contradicts earlier posts.
Re: Problem 053
Posted: Wed Jun 08, 2011 2:37 pm
by jaap
hk wrote:jaap wrote:Remember to only count the distinct values. For example 23C10 and 23C13 are both 1144066 but only count as one rather than two.
This contradicts earlier posts.
Sorry! I remembered it wrong and misunderstood the problem when I reread it. I even contradicted my previous own post (the thread was merged then).
Anyway, every (n,r) pair that gives
nC
r greater than a million should be included in the count.