Creating a number using a combination of two numbers

  • Context: Undergrad 
  • Thread starter Thread starter musicgold
  • Start date Start date
  • Tags Tags
    Combination Numbers
Click For Summary

Discussion Overview

The discussion revolves around a mathematical puzzle concerning the highest number that cannot be formed by adding any combination of two specific numbers, 4 and 9. Participants explore the derivation of a formula related to this problem and methods for determining if a larger number can be expressed as a combination of these two numbers.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant asserts that the highest number that cannot be created using 4s and 9s is 23, referencing a formula (X*Y) - X - Y for numbers without a GCF.
  • Another participant challenges the terminology used, questioning whether the term "formula" is appropriate and clarifying the interpretation of the original question.
  • There is a discussion about deriving the formula N = XY - X - Y, with some participants seeking clarity on how this relates to the problem of forming numbers with combinations of X and Y.
  • A method for solving whether a specific number (e.g., 12345) can be expressed as a combination of X and Y is proposed, involving rearranging the equation into a linear congruence form.
  • Participants note that if a solution exists for A in the linear congruence, other solutions can be derived by adding multiples of Y.

Areas of Agreement / Disagreement

There is no consensus on the terminology used or the interpretation of the original problem. Multiple interpretations and methods for approaching the questions are presented, indicating ongoing debate and exploration of the topic.

Contextual Notes

Participants express uncertainty about the definitions and implications of the terms used, particularly regarding the nature of the formula and the conditions under which numbers can be formed. The discussion includes various assumptions about the relationships between the numbers involved.

Who May Find This Useful

Individuals interested in number theory, combinatorial mathematics, or those looking to understand linear congruences and their applications may find this discussion relevant.

musicgold
Messages
303
Reaction score
19
Hi,

My question is related to the following puzzle.

“What is the highest number that can’t be created by adding any number of 4s and 9s”?
For example, 25 can be created as follows: 9 + 4 + 4 + 4 + 4 =25

I know that the answer is 23. I also know that the general solution to such a problem, using the numbers X and Y is (X*Y) – X – Y, when X and Y don’t have a GCF. If they have a GCF then, any number that is not divisible by the CGF can not be made using X and Y.

I have two questions.

Q1. How can I derive this formula from scratch : (X*Y) – X – Y ?

Q2. If I am given a number 12345 to figure if it can be created using X and Y, what is the quickest way to do that?

Thanks.
 
Mathematics news on Phys.org
(X*Y)- X- Y is NOT a formula. A formula would be saying that is equal to something.

What you mean by "created using X and Y"?

Do you mean "find the largest number, N, that cannot be written in the form "XY- X- Y= N"?
 
HallsofIvy said:
(X*Y)- X- Y is NOT a formula. A formula would be saying that is equal to something.

What you mean by "created using X and Y"?

Do you mean "find the largest number, N, that cannot be written in the form "XY- X- Y= N"?

I believe the question statement is actually, "What is the largest number, N, that cannot be made out of additions of any number of X's and Y's?", and the OP states that the answer is given by N = XY - X - Y, when X and Y have no GCF.

The OP's first question is then, how does one derive that N = XY-X-Y?

The second question is, "Given a number M and numbers X and Y, how can one figure out how to write M = aX + bY, with a and b integers, assuming a solution exists?"

Is that interpretation correct, musicgold?
 
To solve for 12345, re-arrange your formula to

(AX-M)/Y=-B

In this form, iy's a Linear Congruence, so you can use the Modular Inverse
of X&Y to find A as follows:

A = invert(X,Y)*M (mod Y) = 1*12345%4 = 1

then solve fo B: (1*9-12345)/4=-B
-3084 = -B
B = 3084Be careful, though. You CAN actually solve f0r 23, but you get A=3,B=-1.
 
Mute said:
The OP's first question is then, how does one derive that N = XY-X-Y?

The second question is, "Given a number M and numbers X and Y, how can one figure out how to write M = aX + bY, with a and b integers, assuming a solution exists?"

Is that interpretation correct, musicgold?

That is correct. Thanks.
 
Oh, I forgot to mentio: if you don't like A=1, pick another.
In a linear congruence, if A is a solution, so is A+Y,
or A+nY, for that matter. So we can chose any A, as
long as it's a multiple of four plus one.

For instance, we can pick A=1001 and recalculate B
(B=834), giving us: 1001*9 +834*4=12345.
 

Similar threads

  • · Replies 24 ·
Replies
24
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 68 ·
3
Replies
68
Views
12K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K