How can I find integers which satisfy $frac{150+n}{15+n}=m$?
Here are some facts about myself:
- In 2017, I was $15$ years old.
- Canada, my country, was $150$ years old.
When will be the next time that my country's age will be a multiple of mine?
I've toned this down to a function. With $n$ being the number of years before this will happen and $m$ being any integer,
$$frac{150+n}{15+n}=m$$
How would you find $n$?
algebra-precalculus divisibility recreational-mathematics integers
add a comment |
Here are some facts about myself:
- In 2017, I was $15$ years old.
- Canada, my country, was $150$ years old.
When will be the next time that my country's age will be a multiple of mine?
I've toned this down to a function. With $n$ being the number of years before this will happen and $m$ being any integer,
$$frac{150+n}{15+n}=m$$
How would you find $n$?
algebra-precalculus divisibility recreational-mathematics integers
1
For extra credit, consider that Canada turned 150 on July 1, 2017. If your birthday is after that date, 14+n is also a valid denominator, as you will be both age 14 and age 15 during the 12 months that Canada is 150 years old. Likewise, if your 15th birthday is before that date, 16+n is a valid denominator, since you will be 15 when Canada turns 150, but turn 16 before Canada turns 151.
– Nuclear Wang
Dec 12 at 4:51
2
(1) Avoid using "interesting" in the title; (2) describe the problem in the title, not just your opinion and its topic.
– Asaf Karagila♦
Dec 12 at 11:19
add a comment |
Here are some facts about myself:
- In 2017, I was $15$ years old.
- Canada, my country, was $150$ years old.
When will be the next time that my country's age will be a multiple of mine?
I've toned this down to a function. With $n$ being the number of years before this will happen and $m$ being any integer,
$$frac{150+n}{15+n}=m$$
How would you find $n$?
algebra-precalculus divisibility recreational-mathematics integers
Here are some facts about myself:
- In 2017, I was $15$ years old.
- Canada, my country, was $150$ years old.
When will be the next time that my country's age will be a multiple of mine?
I've toned this down to a function. With $n$ being the number of years before this will happen and $m$ being any integer,
$$frac{150+n}{15+n}=m$$
How would you find $n$?
algebra-precalculus divisibility recreational-mathematics integers
algebra-precalculus divisibility recreational-mathematics integers
edited Dec 20 at 3:08
asked Dec 11 at 23:16
Raymo111
2107
2107
1
For extra credit, consider that Canada turned 150 on July 1, 2017. If your birthday is after that date, 14+n is also a valid denominator, as you will be both age 14 and age 15 during the 12 months that Canada is 150 years old. Likewise, if your 15th birthday is before that date, 16+n is a valid denominator, since you will be 15 when Canada turns 150, but turn 16 before Canada turns 151.
– Nuclear Wang
Dec 12 at 4:51
2
(1) Avoid using "interesting" in the title; (2) describe the problem in the title, not just your opinion and its topic.
– Asaf Karagila♦
Dec 12 at 11:19
add a comment |
1
For extra credit, consider that Canada turned 150 on July 1, 2017. If your birthday is after that date, 14+n is also a valid denominator, as you will be both age 14 and age 15 during the 12 months that Canada is 150 years old. Likewise, if your 15th birthday is before that date, 16+n is a valid denominator, since you will be 15 when Canada turns 150, but turn 16 before Canada turns 151.
– Nuclear Wang
Dec 12 at 4:51
2
(1) Avoid using "interesting" in the title; (2) describe the problem in the title, not just your opinion and its topic.
– Asaf Karagila♦
Dec 12 at 11:19
1
1
For extra credit, consider that Canada turned 150 on July 1, 2017. If your birthday is after that date, 14+n is also a valid denominator, as you will be both age 14 and age 15 during the 12 months that Canada is 150 years old. Likewise, if your 15th birthday is before that date, 16+n is a valid denominator, since you will be 15 when Canada turns 150, but turn 16 before Canada turns 151.
– Nuclear Wang
Dec 12 at 4:51
For extra credit, consider that Canada turned 150 on July 1, 2017. If your birthday is after that date, 14+n is also a valid denominator, as you will be both age 14 and age 15 during the 12 months that Canada is 150 years old. Likewise, if your 15th birthday is before that date, 16+n is a valid denominator, since you will be 15 when Canada turns 150, but turn 16 before Canada turns 151.
– Nuclear Wang
Dec 12 at 4:51
2
2
(1) Avoid using "interesting" in the title; (2) describe the problem in the title, not just your opinion and its topic.
– Asaf Karagila♦
Dec 12 at 11:19
(1) Avoid using "interesting" in the title; (2) describe the problem in the title, not just your opinion and its topic.
– Asaf Karagila♦
Dec 12 at 11:19
add a comment |
7 Answers
7
active
oldest
votes
You want $frac{150+n}{15+n}=m$, and clearing denominators gives us
$$150+n=(15+n)m.$$
Subtracting $15+n$ from both sides give us
$$135=(15+n)(m-1).$$
Now you are looking for the smallest $n>1$ for which such an $m$ exists, so the smallest $n>1$ for which $15+n$ divides $135$.
1
Love it, thank you! Is 120 the only $n$ that exists for such a case? (Because $135over270$ $=$ $1over2$)?
– Raymo111
Dec 11 at 23:21
1
What's wrong with $n=12$? The other solutions are $n=30$ and $n=120$.
– Servaes
Dec 11 at 23:46
Oh shoot, I mistakenly read your answer as $n+15=135$, my bad! Also, upvote if you think this question that I thought of was interesting, it's a real-life example of an age problem.
– Raymo111
Dec 11 at 23:48
add a comment |
First thing I would do is say that Canada is $135$ years older than you.
That gives you a simpler
$$frac {135+n}{n} = k\
frac {135}{n} = k-1\$$
It will happen every time your age is a factor of $135.$
It last happened when you were $15.$ It will next happen when you are $27$
Do Canadians live past age 135?
– richard1941
2 days ago
Almost never. But with advancements in medical technology, that may change.
– Doug M
2 days ago
add a comment |
We want the smallest positive integer $n$ such that there is some (positive) integer $k$ such that
$$frac{150+n}{15+n}=k.$$
Note that $k=1$ can never work, so we can assume $k-1neq0.$ Now we rearrange the above equation: multiplying both sides by $15+n,$ we get $150+n=15k+nk;$ now rearrange and factorize to get $15(10-k)=(k-1)n;$ and now divide both sides by $k-1,$ to get
$$n=frac{15(10-k)}{k-1}.$$
Since we want the smallest positive integer $n,$ we can just try values of $kin{2,3,ldots,9},$ starting from the largest and working our way down (because the function of $k$ on the right-hand side is decreasing in this range), until we arrive at an integer value of $n.$* When $k=9,$ $8$ or $7$ we get non-integer values of $n;$ when $k=6$ we find $n=15times4/5=12.$
So last year, $n$ was $0,$ and the ratio of Canada's age to your age was $k=150/15=10;$ and $11$ years from now, $n$ will be $12,$ and the ratio of Canada's age to your age will be $k=162/27=6.$
*Incidentally, it is not obvious in advance that we will ever get an integer value of $n;$ if this were the case then the problem would simply have no answer. As it happens, the problem does have answers, namely $(n,k)in{(0,10),(12,6),(30,4),(120,2)}.$
add a comment |
Alternatively:
$frac {150 + n}{15 + n} = frac {150+ 10n}{15+n} +frac {-9 n}{15+n}$
$=10 -frac {9 n}{15+n}$ (which is an integer for $n=0$ but when next?)
$=10 - frac {9n + 9*15}{15+n} + frac {9*15}{15+n}=$
$=10 - 9 + frac{3^3*5}{15+n}= 1 + frac{3^3*5}{15+n}$
which is an integer if $15+n$ is one of the factors of $3^3*5$.
And the factors of $3^3*5$ are $1, 3,9, 27, 5,15, 45, 135$.
So this will occur when $n = -14,-12, -10, -6,0, 12,30, 120$
When you are $1, 3, 5, 9, 15, 27, 45, 135$ and canada is $136, 138, 140, 144, 150, 162, 180, 270$ and canada is exactly $136,46, 28, 16, 10,6,4, 2$ as old as you are.
(Enjoy your $45$ birthday when your country annexes my country after we collapse from the thirty year aftermath of the unrecoverable mistakes of the last two years.)
That's a fun problem. It's nice to see other people like to think about these things.
2
That's nice, that's the way I usually think about these problems too; but you can shorten the process by writing $dfrac {150+n}{15+n} = dfrac {15+n}{15+n} + dfrac{135}{15+n}$
– Ovi
Dec 12 at 2:34
Hmmm.... I'm not sure why I did it the way I did. I think somehow I briefly thought the obviousness that 15 goes directly into 150 made me briefly think that they were the coeficients and I started doing it that way and just continued. Obviously it'd be shorter and direct to do the coefficients.
– fleablood
Dec 12 at 15:40
add a comment |
Note that if $k mid a$ and $k mid b$, then $k mid a - b$. In this particular instance, we have $15 + n mid 15 + n$ and $15 + n mid 150 + n$, so $15 + n mid 135$. In other words, we are looking for $n+15$ to be the next factor of $135$ which is larger than $15$. Can you continue from here?
add a comment |
Servaes answer is excellent but let me add few cents for those who can't really make out something from dual variables and other factors (I know some people have problem with such things).
There is also a brute force solution, requiring a bit of thinking and a bit of simple calculation (the larger is the $n$ i $n$-times larger the more difficult it becomes though so I really suggest you try understanding the accepted solution anyway).
It's enough to check if there is an integer solution to equation
$$frac{150+n}{15+n}=9$$
If no, proceed with 8, 7 and so on. If you get to 2 and still have no anwser then the answer is never.
So a quick brute force check will like that:
$$frac{150+n}{15+n}=9$$
$$150+n=9cdot(15+n)$$
$$150+n=135+9cdot n$$
$$15=8cdot n$$
$$n = frac{15}{8}notinmathbb{Z}$$
So we continue with $8$
$$frac{150+n}{15+n}=8$$
$$150+n=8cdot(15+n)$$
$$150+n=120+8cdot n$$
$$30=7cdot n$$
$$n = frac{30}{7}notinmathbb{Z}$$
You may continue from here. Note, a smart person using this method will notice some pattern that will make it even simpler to test (not requiring all the calculation, just a quick check that literally takes seconds) but I will not give a direct hint.
Explanation
When you add the same number to both numerator and denominator of a fraction, the fraction decreases. In other words if you consider how the fraction of age of Canada and your age changes over time it will decrease.
On the other hand the fraction can never go to $1$ (or below) since the numerator will always be obviously greater than denominator (in our case by 135).
In other words you have a finite set of possible resultant fractions (namely ${2,3,4,5,6,7,8,9}$) that are potentially the sought "next case". From those you're looking for the largest one, so test them one by one, starting with $9$ and going down until you have an integer result or your options are gone.
Remarks
- Once again - this is a brute force solution and should not be treated as preferred if you can understand using two variables. But if you can't, it's still doable.
- If you notice the relationship I mention above, I guess even testing situation where the initial fraction is 100 could be done.
- You may try solving an interesting opposite question - when was the last time when such situation occurred (i.e. Canadas age was a multiply of your age). If you think it over well, you may use both Servaes and my approaches to that as well. Especially try rationalising that my approach will again have a finite and easily predictable number of tests to be performed.
- A food for thoughts. Is there always a solution to the original question (with differently chosen ages)? Is there always a solution to the problem I state in remark 3?
- Can you think of other related questions that will use similar approach (either Servaes's elegant one or mine brute force) to find a solution?
add a comment |
In general questions like this, where
$frac{x+n}{y+n}=m$
$m$ will be an integer smaller than $frac{x}{y}$. Since there are finitely many integers less than $frac{x}{y}$, each value of $m$ can be checked one by one. Not all values will generally give an integer $n$.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3035983%2fhow-can-i-find-integers-which-satisfy-frac150n15n-m%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
7 Answers
7
active
oldest
votes
7 Answers
7
active
oldest
votes
active
oldest
votes
active
oldest
votes
You want $frac{150+n}{15+n}=m$, and clearing denominators gives us
$$150+n=(15+n)m.$$
Subtracting $15+n$ from both sides give us
$$135=(15+n)(m-1).$$
Now you are looking for the smallest $n>1$ for which such an $m$ exists, so the smallest $n>1$ for which $15+n$ divides $135$.
1
Love it, thank you! Is 120 the only $n$ that exists for such a case? (Because $135over270$ $=$ $1over2$)?
– Raymo111
Dec 11 at 23:21
1
What's wrong with $n=12$? The other solutions are $n=30$ and $n=120$.
– Servaes
Dec 11 at 23:46
Oh shoot, I mistakenly read your answer as $n+15=135$, my bad! Also, upvote if you think this question that I thought of was interesting, it's a real-life example of an age problem.
– Raymo111
Dec 11 at 23:48
add a comment |
You want $frac{150+n}{15+n}=m$, and clearing denominators gives us
$$150+n=(15+n)m.$$
Subtracting $15+n$ from both sides give us
$$135=(15+n)(m-1).$$
Now you are looking for the smallest $n>1$ for which such an $m$ exists, so the smallest $n>1$ for which $15+n$ divides $135$.
1
Love it, thank you! Is 120 the only $n$ that exists for such a case? (Because $135over270$ $=$ $1over2$)?
– Raymo111
Dec 11 at 23:21
1
What's wrong with $n=12$? The other solutions are $n=30$ and $n=120$.
– Servaes
Dec 11 at 23:46
Oh shoot, I mistakenly read your answer as $n+15=135$, my bad! Also, upvote if you think this question that I thought of was interesting, it's a real-life example of an age problem.
– Raymo111
Dec 11 at 23:48
add a comment |
You want $frac{150+n}{15+n}=m$, and clearing denominators gives us
$$150+n=(15+n)m.$$
Subtracting $15+n$ from both sides give us
$$135=(15+n)(m-1).$$
Now you are looking for the smallest $n>1$ for which such an $m$ exists, so the smallest $n>1$ for which $15+n$ divides $135$.
You want $frac{150+n}{15+n}=m$, and clearing denominators gives us
$$150+n=(15+n)m.$$
Subtracting $15+n$ from both sides give us
$$135=(15+n)(m-1).$$
Now you are looking for the smallest $n>1$ for which such an $m$ exists, so the smallest $n>1$ for which $15+n$ divides $135$.
edited Dec 12 at 11:13
answered Dec 11 at 23:20
Servaes
22.3k33793
22.3k33793
1
Love it, thank you! Is 120 the only $n$ that exists for such a case? (Because $135over270$ $=$ $1over2$)?
– Raymo111
Dec 11 at 23:21
1
What's wrong with $n=12$? The other solutions are $n=30$ and $n=120$.
– Servaes
Dec 11 at 23:46
Oh shoot, I mistakenly read your answer as $n+15=135$, my bad! Also, upvote if you think this question that I thought of was interesting, it's a real-life example of an age problem.
– Raymo111
Dec 11 at 23:48
add a comment |
1
Love it, thank you! Is 120 the only $n$ that exists for such a case? (Because $135over270$ $=$ $1over2$)?
– Raymo111
Dec 11 at 23:21
1
What's wrong with $n=12$? The other solutions are $n=30$ and $n=120$.
– Servaes
Dec 11 at 23:46
Oh shoot, I mistakenly read your answer as $n+15=135$, my bad! Also, upvote if you think this question that I thought of was interesting, it's a real-life example of an age problem.
– Raymo111
Dec 11 at 23:48
1
1
Love it, thank you! Is 120 the only $n$ that exists for such a case? (Because $135over270$ $=$ $1over2$)?
– Raymo111
Dec 11 at 23:21
Love it, thank you! Is 120 the only $n$ that exists for such a case? (Because $135over270$ $=$ $1over2$)?
– Raymo111
Dec 11 at 23:21
1
1
What's wrong with $n=12$? The other solutions are $n=30$ and $n=120$.
– Servaes
Dec 11 at 23:46
What's wrong with $n=12$? The other solutions are $n=30$ and $n=120$.
– Servaes
Dec 11 at 23:46
Oh shoot, I mistakenly read your answer as $n+15=135$, my bad! Also, upvote if you think this question that I thought of was interesting, it's a real-life example of an age problem.
– Raymo111
Dec 11 at 23:48
Oh shoot, I mistakenly read your answer as $n+15=135$, my bad! Also, upvote if you think this question that I thought of was interesting, it's a real-life example of an age problem.
– Raymo111
Dec 11 at 23:48
add a comment |
First thing I would do is say that Canada is $135$ years older than you.
That gives you a simpler
$$frac {135+n}{n} = k\
frac {135}{n} = k-1\$$
It will happen every time your age is a factor of $135.$
It last happened when you were $15.$ It will next happen when you are $27$
Do Canadians live past age 135?
– richard1941
2 days ago
Almost never. But with advancements in medical technology, that may change.
– Doug M
2 days ago
add a comment |
First thing I would do is say that Canada is $135$ years older than you.
That gives you a simpler
$$frac {135+n}{n} = k\
frac {135}{n} = k-1\$$
It will happen every time your age is a factor of $135.$
It last happened when you were $15.$ It will next happen when you are $27$
Do Canadians live past age 135?
– richard1941
2 days ago
Almost never. But with advancements in medical technology, that may change.
– Doug M
2 days ago
add a comment |
First thing I would do is say that Canada is $135$ years older than you.
That gives you a simpler
$$frac {135+n}{n} = k\
frac {135}{n} = k-1\$$
It will happen every time your age is a factor of $135.$
It last happened when you were $15.$ It will next happen when you are $27$
First thing I would do is say that Canada is $135$ years older than you.
That gives you a simpler
$$frac {135+n}{n} = k\
frac {135}{n} = k-1\$$
It will happen every time your age is a factor of $135.$
It last happened when you were $15.$ It will next happen when you are $27$
edited Dec 19 at 1:16
Eevee Trainer
3,452325
3,452325
answered Dec 12 at 0:03
Doug M
43.9k31854
43.9k31854
Do Canadians live past age 135?
– richard1941
2 days ago
Almost never. But with advancements in medical technology, that may change.
– Doug M
2 days ago
add a comment |
Do Canadians live past age 135?
– richard1941
2 days ago
Almost never. But with advancements in medical technology, that may change.
– Doug M
2 days ago
Do Canadians live past age 135?
– richard1941
2 days ago
Do Canadians live past age 135?
– richard1941
2 days ago
Almost never. But with advancements in medical technology, that may change.
– Doug M
2 days ago
Almost never. But with advancements in medical technology, that may change.
– Doug M
2 days ago
add a comment |
We want the smallest positive integer $n$ such that there is some (positive) integer $k$ such that
$$frac{150+n}{15+n}=k.$$
Note that $k=1$ can never work, so we can assume $k-1neq0.$ Now we rearrange the above equation: multiplying both sides by $15+n,$ we get $150+n=15k+nk;$ now rearrange and factorize to get $15(10-k)=(k-1)n;$ and now divide both sides by $k-1,$ to get
$$n=frac{15(10-k)}{k-1}.$$
Since we want the smallest positive integer $n,$ we can just try values of $kin{2,3,ldots,9},$ starting from the largest and working our way down (because the function of $k$ on the right-hand side is decreasing in this range), until we arrive at an integer value of $n.$* When $k=9,$ $8$ or $7$ we get non-integer values of $n;$ when $k=6$ we find $n=15times4/5=12.$
So last year, $n$ was $0,$ and the ratio of Canada's age to your age was $k=150/15=10;$ and $11$ years from now, $n$ will be $12,$ and the ratio of Canada's age to your age will be $k=162/27=6.$
*Incidentally, it is not obvious in advance that we will ever get an integer value of $n;$ if this were the case then the problem would simply have no answer. As it happens, the problem does have answers, namely $(n,k)in{(0,10),(12,6),(30,4),(120,2)}.$
add a comment |
We want the smallest positive integer $n$ such that there is some (positive) integer $k$ such that
$$frac{150+n}{15+n}=k.$$
Note that $k=1$ can never work, so we can assume $k-1neq0.$ Now we rearrange the above equation: multiplying both sides by $15+n,$ we get $150+n=15k+nk;$ now rearrange and factorize to get $15(10-k)=(k-1)n;$ and now divide both sides by $k-1,$ to get
$$n=frac{15(10-k)}{k-1}.$$
Since we want the smallest positive integer $n,$ we can just try values of $kin{2,3,ldots,9},$ starting from the largest and working our way down (because the function of $k$ on the right-hand side is decreasing in this range), until we arrive at an integer value of $n.$* When $k=9,$ $8$ or $7$ we get non-integer values of $n;$ when $k=6$ we find $n=15times4/5=12.$
So last year, $n$ was $0,$ and the ratio of Canada's age to your age was $k=150/15=10;$ and $11$ years from now, $n$ will be $12,$ and the ratio of Canada's age to your age will be $k=162/27=6.$
*Incidentally, it is not obvious in advance that we will ever get an integer value of $n;$ if this were the case then the problem would simply have no answer. As it happens, the problem does have answers, namely $(n,k)in{(0,10),(12,6),(30,4),(120,2)}.$
add a comment |
We want the smallest positive integer $n$ such that there is some (positive) integer $k$ such that
$$frac{150+n}{15+n}=k.$$
Note that $k=1$ can never work, so we can assume $k-1neq0.$ Now we rearrange the above equation: multiplying both sides by $15+n,$ we get $150+n=15k+nk;$ now rearrange and factorize to get $15(10-k)=(k-1)n;$ and now divide both sides by $k-1,$ to get
$$n=frac{15(10-k)}{k-1}.$$
Since we want the smallest positive integer $n,$ we can just try values of $kin{2,3,ldots,9},$ starting from the largest and working our way down (because the function of $k$ on the right-hand side is decreasing in this range), until we arrive at an integer value of $n.$* When $k=9,$ $8$ or $7$ we get non-integer values of $n;$ when $k=6$ we find $n=15times4/5=12.$
So last year, $n$ was $0,$ and the ratio of Canada's age to your age was $k=150/15=10;$ and $11$ years from now, $n$ will be $12,$ and the ratio of Canada's age to your age will be $k=162/27=6.$
*Incidentally, it is not obvious in advance that we will ever get an integer value of $n;$ if this were the case then the problem would simply have no answer. As it happens, the problem does have answers, namely $(n,k)in{(0,10),(12,6),(30,4),(120,2)}.$
We want the smallest positive integer $n$ such that there is some (positive) integer $k$ such that
$$frac{150+n}{15+n}=k.$$
Note that $k=1$ can never work, so we can assume $k-1neq0.$ Now we rearrange the above equation: multiplying both sides by $15+n,$ we get $150+n=15k+nk;$ now rearrange and factorize to get $15(10-k)=(k-1)n;$ and now divide both sides by $k-1,$ to get
$$n=frac{15(10-k)}{k-1}.$$
Since we want the smallest positive integer $n,$ we can just try values of $kin{2,3,ldots,9},$ starting from the largest and working our way down (because the function of $k$ on the right-hand side is decreasing in this range), until we arrive at an integer value of $n.$* When $k=9,$ $8$ or $7$ we get non-integer values of $n;$ when $k=6$ we find $n=15times4/5=12.$
So last year, $n$ was $0,$ and the ratio of Canada's age to your age was $k=150/15=10;$ and $11$ years from now, $n$ will be $12,$ and the ratio of Canada's age to your age will be $k=162/27=6.$
*Incidentally, it is not obvious in advance that we will ever get an integer value of $n;$ if this were the case then the problem would simply have no answer. As it happens, the problem does have answers, namely $(n,k)in{(0,10),(12,6),(30,4),(120,2)}.$
edited Dec 12 at 0:27
answered Dec 11 at 23:56
Will R
6,56731429
6,56731429
add a comment |
add a comment |
Alternatively:
$frac {150 + n}{15 + n} = frac {150+ 10n}{15+n} +frac {-9 n}{15+n}$
$=10 -frac {9 n}{15+n}$ (which is an integer for $n=0$ but when next?)
$=10 - frac {9n + 9*15}{15+n} + frac {9*15}{15+n}=$
$=10 - 9 + frac{3^3*5}{15+n}= 1 + frac{3^3*5}{15+n}$
which is an integer if $15+n$ is one of the factors of $3^3*5$.
And the factors of $3^3*5$ are $1, 3,9, 27, 5,15, 45, 135$.
So this will occur when $n = -14,-12, -10, -6,0, 12,30, 120$
When you are $1, 3, 5, 9, 15, 27, 45, 135$ and canada is $136, 138, 140, 144, 150, 162, 180, 270$ and canada is exactly $136,46, 28, 16, 10,6,4, 2$ as old as you are.
(Enjoy your $45$ birthday when your country annexes my country after we collapse from the thirty year aftermath of the unrecoverable mistakes of the last two years.)
That's a fun problem. It's nice to see other people like to think about these things.
2
That's nice, that's the way I usually think about these problems too; but you can shorten the process by writing $dfrac {150+n}{15+n} = dfrac {15+n}{15+n} + dfrac{135}{15+n}$
– Ovi
Dec 12 at 2:34
Hmmm.... I'm not sure why I did it the way I did. I think somehow I briefly thought the obviousness that 15 goes directly into 150 made me briefly think that they were the coeficients and I started doing it that way and just continued. Obviously it'd be shorter and direct to do the coefficients.
– fleablood
Dec 12 at 15:40
add a comment |
Alternatively:
$frac {150 + n}{15 + n} = frac {150+ 10n}{15+n} +frac {-9 n}{15+n}$
$=10 -frac {9 n}{15+n}$ (which is an integer for $n=0$ but when next?)
$=10 - frac {9n + 9*15}{15+n} + frac {9*15}{15+n}=$
$=10 - 9 + frac{3^3*5}{15+n}= 1 + frac{3^3*5}{15+n}$
which is an integer if $15+n$ is one of the factors of $3^3*5$.
And the factors of $3^3*5$ are $1, 3,9, 27, 5,15, 45, 135$.
So this will occur when $n = -14,-12, -10, -6,0, 12,30, 120$
When you are $1, 3, 5, 9, 15, 27, 45, 135$ and canada is $136, 138, 140, 144, 150, 162, 180, 270$ and canada is exactly $136,46, 28, 16, 10,6,4, 2$ as old as you are.
(Enjoy your $45$ birthday when your country annexes my country after we collapse from the thirty year aftermath of the unrecoverable mistakes of the last two years.)
That's a fun problem. It's nice to see other people like to think about these things.
2
That's nice, that's the way I usually think about these problems too; but you can shorten the process by writing $dfrac {150+n}{15+n} = dfrac {15+n}{15+n} + dfrac{135}{15+n}$
– Ovi
Dec 12 at 2:34
Hmmm.... I'm not sure why I did it the way I did. I think somehow I briefly thought the obviousness that 15 goes directly into 150 made me briefly think that they were the coeficients and I started doing it that way and just continued. Obviously it'd be shorter and direct to do the coefficients.
– fleablood
Dec 12 at 15:40
add a comment |
Alternatively:
$frac {150 + n}{15 + n} = frac {150+ 10n}{15+n} +frac {-9 n}{15+n}$
$=10 -frac {9 n}{15+n}$ (which is an integer for $n=0$ but when next?)
$=10 - frac {9n + 9*15}{15+n} + frac {9*15}{15+n}=$
$=10 - 9 + frac{3^3*5}{15+n}= 1 + frac{3^3*5}{15+n}$
which is an integer if $15+n$ is one of the factors of $3^3*5$.
And the factors of $3^3*5$ are $1, 3,9, 27, 5,15, 45, 135$.
So this will occur when $n = -14,-12, -10, -6,0, 12,30, 120$
When you are $1, 3, 5, 9, 15, 27, 45, 135$ and canada is $136, 138, 140, 144, 150, 162, 180, 270$ and canada is exactly $136,46, 28, 16, 10,6,4, 2$ as old as you are.
(Enjoy your $45$ birthday when your country annexes my country after we collapse from the thirty year aftermath of the unrecoverable mistakes of the last two years.)
That's a fun problem. It's nice to see other people like to think about these things.
Alternatively:
$frac {150 + n}{15 + n} = frac {150+ 10n}{15+n} +frac {-9 n}{15+n}$
$=10 -frac {9 n}{15+n}$ (which is an integer for $n=0$ but when next?)
$=10 - frac {9n + 9*15}{15+n} + frac {9*15}{15+n}=$
$=10 - 9 + frac{3^3*5}{15+n}= 1 + frac{3^3*5}{15+n}$
which is an integer if $15+n$ is one of the factors of $3^3*5$.
And the factors of $3^3*5$ are $1, 3,9, 27, 5,15, 45, 135$.
So this will occur when $n = -14,-12, -10, -6,0, 12,30, 120$
When you are $1, 3, 5, 9, 15, 27, 45, 135$ and canada is $136, 138, 140, 144, 150, 162, 180, 270$ and canada is exactly $136,46, 28, 16, 10,6,4, 2$ as old as you are.
(Enjoy your $45$ birthday when your country annexes my country after we collapse from the thirty year aftermath of the unrecoverable mistakes of the last two years.)
That's a fun problem. It's nice to see other people like to think about these things.
answered Dec 12 at 0:49
fleablood
68.1k22684
68.1k22684
2
That's nice, that's the way I usually think about these problems too; but you can shorten the process by writing $dfrac {150+n}{15+n} = dfrac {15+n}{15+n} + dfrac{135}{15+n}$
– Ovi
Dec 12 at 2:34
Hmmm.... I'm not sure why I did it the way I did. I think somehow I briefly thought the obviousness that 15 goes directly into 150 made me briefly think that they were the coeficients and I started doing it that way and just continued. Obviously it'd be shorter and direct to do the coefficients.
– fleablood
Dec 12 at 15:40
add a comment |
2
That's nice, that's the way I usually think about these problems too; but you can shorten the process by writing $dfrac {150+n}{15+n} = dfrac {15+n}{15+n} + dfrac{135}{15+n}$
– Ovi
Dec 12 at 2:34
Hmmm.... I'm not sure why I did it the way I did. I think somehow I briefly thought the obviousness that 15 goes directly into 150 made me briefly think that they were the coeficients and I started doing it that way and just continued. Obviously it'd be shorter and direct to do the coefficients.
– fleablood
Dec 12 at 15:40
2
2
That's nice, that's the way I usually think about these problems too; but you can shorten the process by writing $dfrac {150+n}{15+n} = dfrac {15+n}{15+n} + dfrac{135}{15+n}$
– Ovi
Dec 12 at 2:34
That's nice, that's the way I usually think about these problems too; but you can shorten the process by writing $dfrac {150+n}{15+n} = dfrac {15+n}{15+n} + dfrac{135}{15+n}$
– Ovi
Dec 12 at 2:34
Hmmm.... I'm not sure why I did it the way I did. I think somehow I briefly thought the obviousness that 15 goes directly into 150 made me briefly think that they were the coeficients and I started doing it that way and just continued. Obviously it'd be shorter and direct to do the coefficients.
– fleablood
Dec 12 at 15:40
Hmmm.... I'm not sure why I did it the way I did. I think somehow I briefly thought the obviousness that 15 goes directly into 150 made me briefly think that they were the coeficients and I started doing it that way and just continued. Obviously it'd be shorter and direct to do the coefficients.
– fleablood
Dec 12 at 15:40
add a comment |
Note that if $k mid a$ and $k mid b$, then $k mid a - b$. In this particular instance, we have $15 + n mid 15 + n$ and $15 + n mid 150 + n$, so $15 + n mid 135$. In other words, we are looking for $n+15$ to be the next factor of $135$ which is larger than $15$. Can you continue from here?
add a comment |
Note that if $k mid a$ and $k mid b$, then $k mid a - b$. In this particular instance, we have $15 + n mid 15 + n$ and $15 + n mid 150 + n$, so $15 + n mid 135$. In other words, we are looking for $n+15$ to be the next factor of $135$ which is larger than $15$. Can you continue from here?
add a comment |
Note that if $k mid a$ and $k mid b$, then $k mid a - b$. In this particular instance, we have $15 + n mid 15 + n$ and $15 + n mid 150 + n$, so $15 + n mid 135$. In other words, we are looking for $n+15$ to be the next factor of $135$ which is larger than $15$. Can you continue from here?
Note that if $k mid a$ and $k mid b$, then $k mid a - b$. In this particular instance, we have $15 + n mid 15 + n$ and $15 + n mid 150 + n$, so $15 + n mid 135$. In other words, we are looking for $n+15$ to be the next factor of $135$ which is larger than $15$. Can you continue from here?
answered Dec 11 at 23:20
platty
3,360320
3,360320
add a comment |
add a comment |
Servaes answer is excellent but let me add few cents for those who can't really make out something from dual variables and other factors (I know some people have problem with such things).
There is also a brute force solution, requiring a bit of thinking and a bit of simple calculation (the larger is the $n$ i $n$-times larger the more difficult it becomes though so I really suggest you try understanding the accepted solution anyway).
It's enough to check if there is an integer solution to equation
$$frac{150+n}{15+n}=9$$
If no, proceed with 8, 7 and so on. If you get to 2 and still have no anwser then the answer is never.
So a quick brute force check will like that:
$$frac{150+n}{15+n}=9$$
$$150+n=9cdot(15+n)$$
$$150+n=135+9cdot n$$
$$15=8cdot n$$
$$n = frac{15}{8}notinmathbb{Z}$$
So we continue with $8$
$$frac{150+n}{15+n}=8$$
$$150+n=8cdot(15+n)$$
$$150+n=120+8cdot n$$
$$30=7cdot n$$
$$n = frac{30}{7}notinmathbb{Z}$$
You may continue from here. Note, a smart person using this method will notice some pattern that will make it even simpler to test (not requiring all the calculation, just a quick check that literally takes seconds) but I will not give a direct hint.
Explanation
When you add the same number to both numerator and denominator of a fraction, the fraction decreases. In other words if you consider how the fraction of age of Canada and your age changes over time it will decrease.
On the other hand the fraction can never go to $1$ (or below) since the numerator will always be obviously greater than denominator (in our case by 135).
In other words you have a finite set of possible resultant fractions (namely ${2,3,4,5,6,7,8,9}$) that are potentially the sought "next case". From those you're looking for the largest one, so test them one by one, starting with $9$ and going down until you have an integer result or your options are gone.
Remarks
- Once again - this is a brute force solution and should not be treated as preferred if you can understand using two variables. But if you can't, it's still doable.
- If you notice the relationship I mention above, I guess even testing situation where the initial fraction is 100 could be done.
- You may try solving an interesting opposite question - when was the last time when such situation occurred (i.e. Canadas age was a multiply of your age). If you think it over well, you may use both Servaes and my approaches to that as well. Especially try rationalising that my approach will again have a finite and easily predictable number of tests to be performed.
- A food for thoughts. Is there always a solution to the original question (with differently chosen ages)? Is there always a solution to the problem I state in remark 3?
- Can you think of other related questions that will use similar approach (either Servaes's elegant one or mine brute force) to find a solution?
add a comment |
Servaes answer is excellent but let me add few cents for those who can't really make out something from dual variables and other factors (I know some people have problem with such things).
There is also a brute force solution, requiring a bit of thinking and a bit of simple calculation (the larger is the $n$ i $n$-times larger the more difficult it becomes though so I really suggest you try understanding the accepted solution anyway).
It's enough to check if there is an integer solution to equation
$$frac{150+n}{15+n}=9$$
If no, proceed with 8, 7 and so on. If you get to 2 and still have no anwser then the answer is never.
So a quick brute force check will like that:
$$frac{150+n}{15+n}=9$$
$$150+n=9cdot(15+n)$$
$$150+n=135+9cdot n$$
$$15=8cdot n$$
$$n = frac{15}{8}notinmathbb{Z}$$
So we continue with $8$
$$frac{150+n}{15+n}=8$$
$$150+n=8cdot(15+n)$$
$$150+n=120+8cdot n$$
$$30=7cdot n$$
$$n = frac{30}{7}notinmathbb{Z}$$
You may continue from here. Note, a smart person using this method will notice some pattern that will make it even simpler to test (not requiring all the calculation, just a quick check that literally takes seconds) but I will not give a direct hint.
Explanation
When you add the same number to both numerator and denominator of a fraction, the fraction decreases. In other words if you consider how the fraction of age of Canada and your age changes over time it will decrease.
On the other hand the fraction can never go to $1$ (or below) since the numerator will always be obviously greater than denominator (in our case by 135).
In other words you have a finite set of possible resultant fractions (namely ${2,3,4,5,6,7,8,9}$) that are potentially the sought "next case". From those you're looking for the largest one, so test them one by one, starting with $9$ and going down until you have an integer result or your options are gone.
Remarks
- Once again - this is a brute force solution and should not be treated as preferred if you can understand using two variables. But if you can't, it's still doable.
- If you notice the relationship I mention above, I guess even testing situation where the initial fraction is 100 could be done.
- You may try solving an interesting opposite question - when was the last time when such situation occurred (i.e. Canadas age was a multiply of your age). If you think it over well, you may use both Servaes and my approaches to that as well. Especially try rationalising that my approach will again have a finite and easily predictable number of tests to be performed.
- A food for thoughts. Is there always a solution to the original question (with differently chosen ages)? Is there always a solution to the problem I state in remark 3?
- Can you think of other related questions that will use similar approach (either Servaes's elegant one or mine brute force) to find a solution?
add a comment |
Servaes answer is excellent but let me add few cents for those who can't really make out something from dual variables and other factors (I know some people have problem with such things).
There is also a brute force solution, requiring a bit of thinking and a bit of simple calculation (the larger is the $n$ i $n$-times larger the more difficult it becomes though so I really suggest you try understanding the accepted solution anyway).
It's enough to check if there is an integer solution to equation
$$frac{150+n}{15+n}=9$$
If no, proceed with 8, 7 and so on. If you get to 2 and still have no anwser then the answer is never.
So a quick brute force check will like that:
$$frac{150+n}{15+n}=9$$
$$150+n=9cdot(15+n)$$
$$150+n=135+9cdot n$$
$$15=8cdot n$$
$$n = frac{15}{8}notinmathbb{Z}$$
So we continue with $8$
$$frac{150+n}{15+n}=8$$
$$150+n=8cdot(15+n)$$
$$150+n=120+8cdot n$$
$$30=7cdot n$$
$$n = frac{30}{7}notinmathbb{Z}$$
You may continue from here. Note, a smart person using this method will notice some pattern that will make it even simpler to test (not requiring all the calculation, just a quick check that literally takes seconds) but I will not give a direct hint.
Explanation
When you add the same number to both numerator and denominator of a fraction, the fraction decreases. In other words if you consider how the fraction of age of Canada and your age changes over time it will decrease.
On the other hand the fraction can never go to $1$ (or below) since the numerator will always be obviously greater than denominator (in our case by 135).
In other words you have a finite set of possible resultant fractions (namely ${2,3,4,5,6,7,8,9}$) that are potentially the sought "next case". From those you're looking for the largest one, so test them one by one, starting with $9$ and going down until you have an integer result or your options are gone.
Remarks
- Once again - this is a brute force solution and should not be treated as preferred if you can understand using two variables. But if you can't, it's still doable.
- If you notice the relationship I mention above, I guess even testing situation where the initial fraction is 100 could be done.
- You may try solving an interesting opposite question - when was the last time when such situation occurred (i.e. Canadas age was a multiply of your age). If you think it over well, you may use both Servaes and my approaches to that as well. Especially try rationalising that my approach will again have a finite and easily predictable number of tests to be performed.
- A food for thoughts. Is there always a solution to the original question (with differently chosen ages)? Is there always a solution to the problem I state in remark 3?
- Can you think of other related questions that will use similar approach (either Servaes's elegant one or mine brute force) to find a solution?
Servaes answer is excellent but let me add few cents for those who can't really make out something from dual variables and other factors (I know some people have problem with such things).
There is also a brute force solution, requiring a bit of thinking and a bit of simple calculation (the larger is the $n$ i $n$-times larger the more difficult it becomes though so I really suggest you try understanding the accepted solution anyway).
It's enough to check if there is an integer solution to equation
$$frac{150+n}{15+n}=9$$
If no, proceed with 8, 7 and so on. If you get to 2 and still have no anwser then the answer is never.
So a quick brute force check will like that:
$$frac{150+n}{15+n}=9$$
$$150+n=9cdot(15+n)$$
$$150+n=135+9cdot n$$
$$15=8cdot n$$
$$n = frac{15}{8}notinmathbb{Z}$$
So we continue with $8$
$$frac{150+n}{15+n}=8$$
$$150+n=8cdot(15+n)$$
$$150+n=120+8cdot n$$
$$30=7cdot n$$
$$n = frac{30}{7}notinmathbb{Z}$$
You may continue from here. Note, a smart person using this method will notice some pattern that will make it even simpler to test (not requiring all the calculation, just a quick check that literally takes seconds) but I will not give a direct hint.
Explanation
When you add the same number to both numerator and denominator of a fraction, the fraction decreases. In other words if you consider how the fraction of age of Canada and your age changes over time it will decrease.
On the other hand the fraction can never go to $1$ (or below) since the numerator will always be obviously greater than denominator (in our case by 135).
In other words you have a finite set of possible resultant fractions (namely ${2,3,4,5,6,7,8,9}$) that are potentially the sought "next case". From those you're looking for the largest one, so test them one by one, starting with $9$ and going down until you have an integer result or your options are gone.
Remarks
- Once again - this is a brute force solution and should not be treated as preferred if you can understand using two variables. But if you can't, it's still doable.
- If you notice the relationship I mention above, I guess even testing situation where the initial fraction is 100 could be done.
- You may try solving an interesting opposite question - when was the last time when such situation occurred (i.e. Canadas age was a multiply of your age). If you think it over well, you may use both Servaes and my approaches to that as well. Especially try rationalising that my approach will again have a finite and easily predictable number of tests to be performed.
- A food for thoughts. Is there always a solution to the original question (with differently chosen ages)? Is there always a solution to the problem I state in remark 3?
- Can you think of other related questions that will use similar approach (either Servaes's elegant one or mine brute force) to find a solution?
answered Dec 12 at 9:35
Ister
2216
2216
add a comment |
add a comment |
In general questions like this, where
$frac{x+n}{y+n}=m$
$m$ will be an integer smaller than $frac{x}{y}$. Since there are finitely many integers less than $frac{x}{y}$, each value of $m$ can be checked one by one. Not all values will generally give an integer $n$.
add a comment |
In general questions like this, where
$frac{x+n}{y+n}=m$
$m$ will be an integer smaller than $frac{x}{y}$. Since there are finitely many integers less than $frac{x}{y}$, each value of $m$ can be checked one by one. Not all values will generally give an integer $n$.
add a comment |
In general questions like this, where
$frac{x+n}{y+n}=m$
$m$ will be an integer smaller than $frac{x}{y}$. Since there are finitely many integers less than $frac{x}{y}$, each value of $m$ can be checked one by one. Not all values will generally give an integer $n$.
In general questions like this, where
$frac{x+n}{y+n}=m$
$m$ will be an integer smaller than $frac{x}{y}$. Since there are finitely many integers less than $frac{x}{y}$, each value of $m$ can be checked one by one. Not all values will generally give an integer $n$.
edited Dec 14 at 4:56
user334732
4,23511140
4,23511140
answered Dec 12 at 7:04
Prem kumar
18410
18410
add a comment |
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3035983%2fhow-can-i-find-integers-which-satisfy-frac150n15n-m%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
For extra credit, consider that Canada turned 150 on July 1, 2017. If your birthday is after that date, 14+n is also a valid denominator, as you will be both age 14 and age 15 during the 12 months that Canada is 150 years old. Likewise, if your 15th birthday is before that date, 16+n is a valid denominator, since you will be 15 when Canada turns 150, but turn 16 before Canada turns 151.
– Nuclear Wang
Dec 12 at 4:51
2
(1) Avoid using "interesting" in the title; (2) describe the problem in the title, not just your opinion and its topic.
– Asaf Karagila♦
Dec 12 at 11:19