Number of ways to choose a pair of distinct number

  • Thread starter Thread starter songoku
  • Start date Start date
  • Tags Tags
    Pair
Click For Summary

Homework Help Overview

The problem involves determining the number of ways to choose a pair of distinct numbers from the set {1, 2, 3, ...49} under the condition that the absolute difference between the two numbers is less than or equal to 3.

Discussion Character

  • Conceptual clarification, Assumption checking

Approaches and Questions Raised

  • Participants discuss whether the order of the numbers matters when considering distinct pairs, with some suggesting that distinct pairs imply order does not matter.
  • There is a mention of a potential formula for calculating the number of pairs, and a question about how to approach programming a solution for counting these pairs.

Discussion Status

Participants are exploring the implications of the term "distinct" in the context of the problem, with some suggesting that the question could have been clearer. A formula has been proposed by one participant, and there is an ongoing discussion about how to approach the counting problem, including considerations for programming.

Contextual Notes

There is some confusion regarding the terminology used in the problem statement, particularly around the distinction between ordered and unordered pairs. Participants are also noting that they are not required to use programming for this problem, which may limit their exploration of potential solutions.

songoku
Messages
2,512
Reaction score
394

Homework Statement


The number of ways to choose a pair of distinct numbers a and b from the set {1, 2, 3, ...49} such that |a - b| ≤ 3 is
a. 141
b. 144
c. 147
d. 150
e. none of the above

Homework Equations


not sure

The Attempt at a Solution


Is a = 41 and b = 42 considered the same as a = 42 or b = 41? Or they are two different cases?

Thanks
 
Physics news on Phys.org
songoku said:

Homework Statement


The number of ways to choose a pair of distinct numbers a and b from the set {1, 2, 3, ...49} such that |a - b| ≤ 3 is
a. 141
b. 144
c. 147
d. 150
e. none of the above

Homework Equations


not sure

The Attempt at a Solution


Is a = 41 and b = 42 considered the same as a = 42 or b = 41? Or they are two different cases?

Thanks
I would say that because the question asks for "distinct" pairs, order does not matter. So [42,41] is not distinct from [41,42].

AM
 
  • Like
Likes   Reactions: songoku
Andrew Mason said:
I would say that because the question asks for "distinct" pairs, order does not matter. So [42,41] is not distinct from [41,42].

AM
If the question asks for "ordered pair" then [41,42] is different from [42, 41]?

Thanks
 
I think the correct answer is 49x3-6=141

The way I wrote it 49x3-6 might help you to find the algorithm that will do the counting for this problem. I think if you had to write a computer program to do the counting, what program would you do?
 
  • Like
Likes   Reactions: songoku
songoku said:
If the question asks for "ordered pair" then [41,42] is different from [42, 41]?

Thanks
A distinct pair would be any two-element subset of the given set, ie. a and b being distinct elements in that set. Since the question merely asked for distinct pairs without referring to them as "ordered", then it would appear that order does not matter. The question should have asked for distinct unordered pairs to avoid confusion. So, yes, if the question had asked for distinct ordered pairs then {41,42} would be different than {42,41}.

AM
 
  • Like
Likes   Reactions: songoku
Delta2 said:
I think the correct answer is 49x3-6=141

The way I wrote it 49x3-6 might help you to find the algorithm that will do the counting for this problem. I think if you had to write a computer program to do the counting, what program would you do?

I am not required to do any programming right now so I don't know what program to use because I have not learned any.Thank you very much for the help AM and delta2
 
  • Like
Likes   Reactions: Delta2

Similar threads

Replies
2
Views
2K
Replies
16
Views
3K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
5K
Replies
1
Views
2K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
1K