Solving Combinations of a and b for ab=x, Order Matters

  • Context: Undergrad 
  • Thread starter Thread starter Trepidation
  • Start date Start date
  • Tags Tags
    Combinations
Click For Summary

Discussion Overview

The discussion revolves around determining the number of combinations of two integers, a and b, such that their product ab equals a given integer x, with the condition that the order of a and b matters. The participants explore various aspects of this problem, including constraints on the values of a and b, the nature of x, and the mathematical methods involved in finding solutions.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • Some participants note that the solution depends heavily on the value of x, suggesting that if x is not an integer or exceeds the product of the maximum values of a and b, the answer would be zero.
  • One participant proposes that the probability of ab equaling x can be expressed in terms of the number of factors of x, excluding 1 and x itself.
  • Another participant questions whether there is a known method for calculating the number of factors of x exactly.
  • Several participants clarify that the problem is about counting the distinct pairs (a, b) that satisfy the equation for specific values of x, providing examples for x = 4 and x = 20.
  • One participant suggests considering the total number of prime factors of x, including repetitions, to approach the problem of partitioning these factors into two groups.
  • Another participant expresses uncertainty about the complexity introduced by repeated factors in the context of the problem.
  • A later reply indicates that one participant claims to have solved the problem, although the details of the solution are not shared.

Areas of Agreement / Disagreement

Participants express various viewpoints on how to approach the problem, with no consensus reached on a definitive method or solution. The discussion includes both agreement on the need to consider factors of x and disagreement on the implications of repeated factors.

Contextual Notes

Participants highlight limitations in defining x and the constraints on a and b, as well as the complexity introduced by repeated prime factors, which remains unresolved.

Trepidation
Messages
29
Reaction score
0
I have a problem that I'm not aware of how to solve. I know about permutations and combinations, but...

Given that the possible values for a are all integers such that [tex]2 \leq a \leq m_{a}[/tex], and the possible values for b are all integers such that [tex]2 \leq b \leq m_{b}[/tex]; how many combinations of a and b give [tex]ab=x[/tex], when order matters (ab is counted separately from ba)?

Could someone please help me out by explaining how this is solved or by providing an answer (preferably both, but whatever you could do would be greatly appreciated)?

Thank you very much for your help...
 
Last edited:
Physics news on Phys.org
Trepidation said:
I have a problem that I'm not aware of how to solve. I know about permutations and combinations, but...

Given that the possible values for a are all integers such that [tex]2 \leq a \leq m_{a}[/tex], and the possible values for b are all integers such that [tex]2 \leq b \leq m_{b}[/tex]; how many combinations of n and k give [tex]ab=x[/tex], when order matters (ab is counted separately from ba)?

Could someone please help me out by explaining how this is solved or by providing an answer (preferably both, but whatever you could do would be greatly appreciated)?

Thank you very much for your help...

That depends very strongly on what x is! If x is not an integer (and you didn't say it was) the answer is 0. If x is an integer and x>mamb the answer is still 0. Providing an answer would be easier if you would say exactly what the question is!
 
Thank you for replying despite my typo ("how many combinations of n and k give..." should have been, and has now been changed to, "how many combinations of a and b give...")! And I'm sorry about not defining x, it slipped my mind.

x is any integer such that [tex]4 \leq x \leq m_{a}m_{b}[/tex]

Is there even a known solution to my problem?
 
I'd say that the probability that [tex]ab=x[/tex] is equal to the number of factors of [itex]x[/itex], not including 1 and [itex]x[/itex], divided by the number of possibilities for [itex]a[/itex] and [itex]b[/itex].

That is, [tex]P=\frac{F(x)-2}{(m_a-1)(m_b-1)}[/tex], where [tex]F(x)[/tex] stands for the number of factors of [itex]x[/itex].
 
Last edited:
Is there any known method for calculating the value of F(x) exactly?
 
Trepidation said:
Thank you for replying despite my typo ("how many combinations of n and k give..." should have been, and has now been changed to, "how many combinations of a and b give...")! And I'm sorry about not defining x, it slipped my mind.

x is any integer such that [tex]4 \leq x \leq m_{a}m_{b}[/tex]

Is there even a known solution to my problem?

What! Every possible value of "a" and "b" (as given in the first post) satisfys that "x".

Isn't this whole thing a bit like the old "How many legs has a three legged stool?" question.
 
Last edited:
The question is how many values of "a" and "b" satisfy anyone specific instance of x.

For instance... When x is 4, the only possible values are (a,b):
(2, 2)

When x is 20, the possible values are:
(2 * 10)
(10 * 2)
(4 * 5)
(5 * 4)


We could actually do away with the and constraints and get the same results, since the values are restricted to integers.

In any case, in the above examples I don't actually need to know WHAT the values are; just how many possibilites there are. What it boils down to, I realize now, is the number of distinct (but not necessarily prime) factors of other than x and one. For x=4, it would be 1. For x=20 it would be 4.

Hopefully that cleared it up?
 
"The question is how many values of "a" and "b" satisfy any one specific instance of x".

Ok, now I'm with you. :)

Here's a hint then. Think in terms of the total number of prime factors of x (By "total" I mean including repeated factors as separate factors, like saying 8=2*2*2 has three prime factors for example). I think that the problem you're asking should be related to how many ways can you partition that set of prime factors into two groups. Taking account of different limits on the maxima (m_a and m_b) might make it a little tricky though.
 
Last edited:
Oh forget that last post or mine. It's not as simple as that, repeated factors make it more complicated.
 
  • #10
It's okay... I solved it. ^^
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 11 ·
Replies
11
Views
5K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 16 ·
Replies
16
Views
10K
  • · Replies 1 ·
Replies
1
Views
2K