How did they get 91 for f(G, L, N)?Let f(G, L, N) be the number of lists of size N with gcd G and lcm L. For example:
f(10, 100, 1) = 91.
Problem 350
Forum rules
As your posts will be visible to the general public you are requested to be thoughtful in not posting anything that might explicitly give away how to solve a particular problem.
This forum is NOT meant to discuss solution methods for a problem.
See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
As your posts will be visible to the general public you are requested to be thoughtful in not posting anything that might explicitly give away how to solve a particular problem.
This forum is NOT meant to discuss solution methods for a problem.
In particular don't post any code fragments or results.
Don't start begging others to give partial answers to problems
Don't ask for hints how to solve a problem
Don't start a new topic for a problem if there already exists one
Don't start begging others to give partial answers to problems
Don't ask for hints how to solve a problem
Don't start a new topic for a problem if there already exists one
See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
-
JMW1994
- Posts: 43
- Joined: Sat Apr 09, 2011 11:35 pm
Problem 350
I was looking at this problem to do and something about it confuses me. I understand mathematically how you get the GCD and LCM. However, I got stumped at this part:

-
TripleM
- Posts: 384
- Joined: Fri Sep 12, 2008 3:31 am
-
JMW1994
- Posts: 43
- Joined: Sat Apr 09, 2011 11:35 pm
Re: Problem 350
So are these numbers {10},{11},...,{100} between GCD and LCM? And what happens to the size as you go higher? Is it like this: {10,10}, {10,11}, ..., {10,100},...,{100,100}? I don't know what size actually does.{10},{11},..,{100}. Each of these 91 lists of size 1 has GCD >= 10 and LCM <= 100.

-
TripleM
- Posts: 384
- Joined: Fri Sep 12, 2008 3:31 am
Re: Problem 350
That is all explained pretty clearly in the problem (size is defined in the first line) - I'm not really sure which part of the problem statement you're not understanding.
-
JMW1994
- Posts: 43
- Joined: Sat Apr 09, 2011 11:35 pm
Re: Problem 350
(2,4,6) and (2,6,4) have 3, (10,6,15,6) have 4 and (11) has one. Is this what you mean?Examples are (2,4,6), (2,6,4), (10,6,15,6), and (11).

-
TripleM
- Posts: 384
- Joined: Fri Sep 12, 2008 3:31 am
-
thundre
- Posts: 356
- Joined: Sun Mar 27, 2011 10:01 am
Re: Problem 350
Yes, size is the length of the list. They aren't sets; duplicate entries are allowed, and order matters, so you would count (10,100) and (100,10) as different lists.JMW1994 wrote:Is it like this: {10,10}, {10,11}, ..., {10,100},...,{100,100}? I don't know what size actually does.
gcd(10,11) = 1 and lcm(10,11) = 110, so that list fails both requirements.

-
JMW1994
- Posts: 43
- Joined: Sat Apr 09, 2011 11:35 pm
Re: Problem 350
But doesn't it have to fail one of them in order to fail both of them?Yes, size is the length of the list. They aren't sets; duplicate entries are allowed, and order matters, so you would count (10,100) and (100,10) as different lists.
gcd(10,11) = 1 and lcm(10,11) = 110, so that list fails both requirements.
