How do I find a number which when divided by 4, 5, 6 and 7 gives 3, 4, 5 and 6 as remainders respectively?
$begingroup$
Is there specific set of steps to be followed when solving similar questions?
My attempt:
A number gives remainder 3 when divided by 4. Hence it is of the form 4m+3 where m = 0,1,2…
Now, 4m+3 gives remainder 4 when divided by 5. It means (4m+3)-4 is divisible by 5.
Hence, 4m-1=5n where n is some positive integer. n=(4m-1)/5.
But, 4m+3 gives remainder 5 when divided by 6. It means (4m+3)-5 is divisible by 6.
Hence, 4m-2=6f where f is some positive integer. f=(4m-2)/6.
Again, 4m+3 gives remainder 6 when divided by 7. It means (4m+3)-6 is divisible by 7.
Hence, 4m-3=7l where l is some positive integer. l=(4m-3)/7.
My confusion: What do I do now? Or am I even in the right path?
Please don't solve it using modular arithmetic. I don't know it yet.
number-theory contest-math arithmetic puzzle
$endgroup$
add a comment |
$begingroup$
Is there specific set of steps to be followed when solving similar questions?
My attempt:
A number gives remainder 3 when divided by 4. Hence it is of the form 4m+3 where m = 0,1,2…
Now, 4m+3 gives remainder 4 when divided by 5. It means (4m+3)-4 is divisible by 5.
Hence, 4m-1=5n where n is some positive integer. n=(4m-1)/5.
But, 4m+3 gives remainder 5 when divided by 6. It means (4m+3)-5 is divisible by 6.
Hence, 4m-2=6f where f is some positive integer. f=(4m-2)/6.
Again, 4m+3 gives remainder 6 when divided by 7. It means (4m+3)-6 is divisible by 7.
Hence, 4m-3=7l where l is some positive integer. l=(4m-3)/7.
My confusion: What do I do now? Or am I even in the right path?
Please don't solve it using modular arithmetic. I don't know it yet.
number-theory contest-math arithmetic puzzle
$endgroup$
$begingroup$
This is a repeated direct application of the chinese remainder theorem. This is a special case however that should be straightforward to solve. Notice that $3=4-1$ that $4=5-1$, that $5=6-1$ etc... so you are looking for a number which satisfies $begin{cases}nequiv -1pmod{4}\nequiv -1pmod{5}\nequiv -1pmod{6}\nequiv -1pmod{7}end{cases}$. A clear candidate would be $-1$. If you want it to be positive, then consider adding $text{lcm}(4,5,6,7)$.
$endgroup$
– JMoravitz
Jan 31 at 4:11
1
$begingroup$
"Please don't solve using modular arithmetic" There is no time like the present to learn. It works just like ordinary arithmetic with most of the same rules that you are already familiar with, just requiring a little bit more abstraction. All you need to know about it can be learned in 2 minutes.
$endgroup$
– JMoravitz
Jan 31 at 4:13
$begingroup$
" Please don't solve it using modular arithmetic. I don't know it yet." Then learn it. It's exceedingly easy and will be much easier to learn it a solve this using modular arithmetic then to solve it any other way. There is no reason it should take anyone more than a half hour to learn modular arithmetic.
$endgroup$
– fleablood
Jan 31 at 4:37
$begingroup$
Okay.. 😊 @JMoravitz
$endgroup$
– salsabil.raisa
Jan 31 at 4:38
$begingroup$
Ok, going to give a shot @fleablood
$endgroup$
– salsabil.raisa
Jan 31 at 4:39
add a comment |
$begingroup$
Is there specific set of steps to be followed when solving similar questions?
My attempt:
A number gives remainder 3 when divided by 4. Hence it is of the form 4m+3 where m = 0,1,2…
Now, 4m+3 gives remainder 4 when divided by 5. It means (4m+3)-4 is divisible by 5.
Hence, 4m-1=5n where n is some positive integer. n=(4m-1)/5.
But, 4m+3 gives remainder 5 when divided by 6. It means (4m+3)-5 is divisible by 6.
Hence, 4m-2=6f where f is some positive integer. f=(4m-2)/6.
Again, 4m+3 gives remainder 6 when divided by 7. It means (4m+3)-6 is divisible by 7.
Hence, 4m-3=7l where l is some positive integer. l=(4m-3)/7.
My confusion: What do I do now? Or am I even in the right path?
Please don't solve it using modular arithmetic. I don't know it yet.
number-theory contest-math arithmetic puzzle
$endgroup$
Is there specific set of steps to be followed when solving similar questions?
My attempt:
A number gives remainder 3 when divided by 4. Hence it is of the form 4m+3 where m = 0,1,2…
Now, 4m+3 gives remainder 4 when divided by 5. It means (4m+3)-4 is divisible by 5.
Hence, 4m-1=5n where n is some positive integer. n=(4m-1)/5.
But, 4m+3 gives remainder 5 when divided by 6. It means (4m+3)-5 is divisible by 6.
Hence, 4m-2=6f where f is some positive integer. f=(4m-2)/6.
Again, 4m+3 gives remainder 6 when divided by 7. It means (4m+3)-6 is divisible by 7.
Hence, 4m-3=7l where l is some positive integer. l=(4m-3)/7.
My confusion: What do I do now? Or am I even in the right path?
Please don't solve it using modular arithmetic. I don't know it yet.
number-theory contest-math arithmetic puzzle
number-theory contest-math arithmetic puzzle
asked Jan 31 at 4:02
salsabil.raisasalsabil.raisa
133
133
$begingroup$
This is a repeated direct application of the chinese remainder theorem. This is a special case however that should be straightforward to solve. Notice that $3=4-1$ that $4=5-1$, that $5=6-1$ etc... so you are looking for a number which satisfies $begin{cases}nequiv -1pmod{4}\nequiv -1pmod{5}\nequiv -1pmod{6}\nequiv -1pmod{7}end{cases}$. A clear candidate would be $-1$. If you want it to be positive, then consider adding $text{lcm}(4,5,6,7)$.
$endgroup$
– JMoravitz
Jan 31 at 4:11
1
$begingroup$
"Please don't solve using modular arithmetic" There is no time like the present to learn. It works just like ordinary arithmetic with most of the same rules that you are already familiar with, just requiring a little bit more abstraction. All you need to know about it can be learned in 2 minutes.
$endgroup$
– JMoravitz
Jan 31 at 4:13
$begingroup$
" Please don't solve it using modular arithmetic. I don't know it yet." Then learn it. It's exceedingly easy and will be much easier to learn it a solve this using modular arithmetic then to solve it any other way. There is no reason it should take anyone more than a half hour to learn modular arithmetic.
$endgroup$
– fleablood
Jan 31 at 4:37
$begingroup$
Okay.. 😊 @JMoravitz
$endgroup$
– salsabil.raisa
Jan 31 at 4:38
$begingroup$
Ok, going to give a shot @fleablood
$endgroup$
– salsabil.raisa
Jan 31 at 4:39
add a comment |
$begingroup$
This is a repeated direct application of the chinese remainder theorem. This is a special case however that should be straightforward to solve. Notice that $3=4-1$ that $4=5-1$, that $5=6-1$ etc... so you are looking for a number which satisfies $begin{cases}nequiv -1pmod{4}\nequiv -1pmod{5}\nequiv -1pmod{6}\nequiv -1pmod{7}end{cases}$. A clear candidate would be $-1$. If you want it to be positive, then consider adding $text{lcm}(4,5,6,7)$.
$endgroup$
– JMoravitz
Jan 31 at 4:11
1
$begingroup$
"Please don't solve using modular arithmetic" There is no time like the present to learn. It works just like ordinary arithmetic with most of the same rules that you are already familiar with, just requiring a little bit more abstraction. All you need to know about it can be learned in 2 minutes.
$endgroup$
– JMoravitz
Jan 31 at 4:13
$begingroup$
" Please don't solve it using modular arithmetic. I don't know it yet." Then learn it. It's exceedingly easy and will be much easier to learn it a solve this using modular arithmetic then to solve it any other way. There is no reason it should take anyone more than a half hour to learn modular arithmetic.
$endgroup$
– fleablood
Jan 31 at 4:37
$begingroup$
Okay.. 😊 @JMoravitz
$endgroup$
– salsabil.raisa
Jan 31 at 4:38
$begingroup$
Ok, going to give a shot @fleablood
$endgroup$
– salsabil.raisa
Jan 31 at 4:39
$begingroup$
This is a repeated direct application of the chinese remainder theorem. This is a special case however that should be straightforward to solve. Notice that $3=4-1$ that $4=5-1$, that $5=6-1$ etc... so you are looking for a number which satisfies $begin{cases}nequiv -1pmod{4}\nequiv -1pmod{5}\nequiv -1pmod{6}\nequiv -1pmod{7}end{cases}$. A clear candidate would be $-1$. If you want it to be positive, then consider adding $text{lcm}(4,5,6,7)$.
$endgroup$
– JMoravitz
Jan 31 at 4:11
$begingroup$
This is a repeated direct application of the chinese remainder theorem. This is a special case however that should be straightforward to solve. Notice that $3=4-1$ that $4=5-1$, that $5=6-1$ etc... so you are looking for a number which satisfies $begin{cases}nequiv -1pmod{4}\nequiv -1pmod{5}\nequiv -1pmod{6}\nequiv -1pmod{7}end{cases}$. A clear candidate would be $-1$. If you want it to be positive, then consider adding $text{lcm}(4,5,6,7)$.
$endgroup$
– JMoravitz
Jan 31 at 4:11
1
1
$begingroup$
"Please don't solve using modular arithmetic" There is no time like the present to learn. It works just like ordinary arithmetic with most of the same rules that you are already familiar with, just requiring a little bit more abstraction. All you need to know about it can be learned in 2 minutes.
$endgroup$
– JMoravitz
Jan 31 at 4:13
$begingroup$
"Please don't solve using modular arithmetic" There is no time like the present to learn. It works just like ordinary arithmetic with most of the same rules that you are already familiar with, just requiring a little bit more abstraction. All you need to know about it can be learned in 2 minutes.
$endgroup$
– JMoravitz
Jan 31 at 4:13
$begingroup$
" Please don't solve it using modular arithmetic. I don't know it yet." Then learn it. It's exceedingly easy and will be much easier to learn it a solve this using modular arithmetic then to solve it any other way. There is no reason it should take anyone more than a half hour to learn modular arithmetic.
$endgroup$
– fleablood
Jan 31 at 4:37
$begingroup$
" Please don't solve it using modular arithmetic. I don't know it yet." Then learn it. It's exceedingly easy and will be much easier to learn it a solve this using modular arithmetic then to solve it any other way. There is no reason it should take anyone more than a half hour to learn modular arithmetic.
$endgroup$
– fleablood
Jan 31 at 4:37
$begingroup$
Okay.. 😊 @JMoravitz
$endgroup$
– salsabil.raisa
Jan 31 at 4:38
$begingroup$
Okay.. 😊 @JMoravitz
$endgroup$
– salsabil.raisa
Jan 31 at 4:38
$begingroup$
Ok, going to give a shot @fleablood
$endgroup$
– salsabil.raisa
Jan 31 at 4:39
$begingroup$
Ok, going to give a shot @fleablood
$endgroup$
– salsabil.raisa
Jan 31 at 4:39
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
Let $a$ be your number. Then note that $a + 1$ divided by $4, 5, 6 text{ and } 7$ will give remainders of $0$ in all cases. Thus, the smallest positive $a + 1$ will be the smallest number which $4, 5, 6 text{ and } 7$ all divide into. Since $6$ and $4$ each have a factor of $2$, you don't need to repeat this factor, giving it to be $4 times 3 times 5 times 7 = 420$, giving that $a = 419$ works.
Note that, in general, $a = 420n - 1$ for any integer $n$.
$endgroup$
$begingroup$
Beautiful, elegant solution! Perfectly aligns with JMoravitz's comment on modular arithmetic, and adding the lcm to the mod
$endgroup$
– Christopher Marley
Jan 31 at 4:16
$begingroup$
@ChristopherMarley Thanks for the compliment. I tried to keep it quite simple based on my perception of the OP's limited math knowledge, such as the request to not using modular arithmetic. Similarly, I chose to not explicitly mention the lcm for the same reason.
$endgroup$
– John Omielan
Jan 31 at 4:19
$begingroup$
Thank you so much. The solution is a lot simpler than I have thought. :)
$endgroup$
– salsabil.raisa
Jan 31 at 4:26
$begingroup$
@salsabil.raisa You are welcome. Quite often there's some little trick with these sorts of problems that makes them fairly easy to solve.
$endgroup$
– John Omielan
Jan 31 at 4:28
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%2f3094493%2fhow-do-i-find-a-number-which-when-divided-by-4-5-6-and-7-gives-3-4-5-and-6-a%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Let $a$ be your number. Then note that $a + 1$ divided by $4, 5, 6 text{ and } 7$ will give remainders of $0$ in all cases. Thus, the smallest positive $a + 1$ will be the smallest number which $4, 5, 6 text{ and } 7$ all divide into. Since $6$ and $4$ each have a factor of $2$, you don't need to repeat this factor, giving it to be $4 times 3 times 5 times 7 = 420$, giving that $a = 419$ works.
Note that, in general, $a = 420n - 1$ for any integer $n$.
$endgroup$
$begingroup$
Beautiful, elegant solution! Perfectly aligns with JMoravitz's comment on modular arithmetic, and adding the lcm to the mod
$endgroup$
– Christopher Marley
Jan 31 at 4:16
$begingroup$
@ChristopherMarley Thanks for the compliment. I tried to keep it quite simple based on my perception of the OP's limited math knowledge, such as the request to not using modular arithmetic. Similarly, I chose to not explicitly mention the lcm for the same reason.
$endgroup$
– John Omielan
Jan 31 at 4:19
$begingroup$
Thank you so much. The solution is a lot simpler than I have thought. :)
$endgroup$
– salsabil.raisa
Jan 31 at 4:26
$begingroup$
@salsabil.raisa You are welcome. Quite often there's some little trick with these sorts of problems that makes them fairly easy to solve.
$endgroup$
– John Omielan
Jan 31 at 4:28
add a comment |
$begingroup$
Let $a$ be your number. Then note that $a + 1$ divided by $4, 5, 6 text{ and } 7$ will give remainders of $0$ in all cases. Thus, the smallest positive $a + 1$ will be the smallest number which $4, 5, 6 text{ and } 7$ all divide into. Since $6$ and $4$ each have a factor of $2$, you don't need to repeat this factor, giving it to be $4 times 3 times 5 times 7 = 420$, giving that $a = 419$ works.
Note that, in general, $a = 420n - 1$ for any integer $n$.
$endgroup$
$begingroup$
Beautiful, elegant solution! Perfectly aligns with JMoravitz's comment on modular arithmetic, and adding the lcm to the mod
$endgroup$
– Christopher Marley
Jan 31 at 4:16
$begingroup$
@ChristopherMarley Thanks for the compliment. I tried to keep it quite simple based on my perception of the OP's limited math knowledge, such as the request to not using modular arithmetic. Similarly, I chose to not explicitly mention the lcm for the same reason.
$endgroup$
– John Omielan
Jan 31 at 4:19
$begingroup$
Thank you so much. The solution is a lot simpler than I have thought. :)
$endgroup$
– salsabil.raisa
Jan 31 at 4:26
$begingroup$
@salsabil.raisa You are welcome. Quite often there's some little trick with these sorts of problems that makes them fairly easy to solve.
$endgroup$
– John Omielan
Jan 31 at 4:28
add a comment |
$begingroup$
Let $a$ be your number. Then note that $a + 1$ divided by $4, 5, 6 text{ and } 7$ will give remainders of $0$ in all cases. Thus, the smallest positive $a + 1$ will be the smallest number which $4, 5, 6 text{ and } 7$ all divide into. Since $6$ and $4$ each have a factor of $2$, you don't need to repeat this factor, giving it to be $4 times 3 times 5 times 7 = 420$, giving that $a = 419$ works.
Note that, in general, $a = 420n - 1$ for any integer $n$.
$endgroup$
Let $a$ be your number. Then note that $a + 1$ divided by $4, 5, 6 text{ and } 7$ will give remainders of $0$ in all cases. Thus, the smallest positive $a + 1$ will be the smallest number which $4, 5, 6 text{ and } 7$ all divide into. Since $6$ and $4$ each have a factor of $2$, you don't need to repeat this factor, giving it to be $4 times 3 times 5 times 7 = 420$, giving that $a = 419$ works.
Note that, in general, $a = 420n - 1$ for any integer $n$.
answered Jan 31 at 4:10
John OmielanJohn Omielan
4,6312215
4,6312215
$begingroup$
Beautiful, elegant solution! Perfectly aligns with JMoravitz's comment on modular arithmetic, and adding the lcm to the mod
$endgroup$
– Christopher Marley
Jan 31 at 4:16
$begingroup$
@ChristopherMarley Thanks for the compliment. I tried to keep it quite simple based on my perception of the OP's limited math knowledge, such as the request to not using modular arithmetic. Similarly, I chose to not explicitly mention the lcm for the same reason.
$endgroup$
– John Omielan
Jan 31 at 4:19
$begingroup$
Thank you so much. The solution is a lot simpler than I have thought. :)
$endgroup$
– salsabil.raisa
Jan 31 at 4:26
$begingroup$
@salsabil.raisa You are welcome. Quite often there's some little trick with these sorts of problems that makes them fairly easy to solve.
$endgroup$
– John Omielan
Jan 31 at 4:28
add a comment |
$begingroup$
Beautiful, elegant solution! Perfectly aligns with JMoravitz's comment on modular arithmetic, and adding the lcm to the mod
$endgroup$
– Christopher Marley
Jan 31 at 4:16
$begingroup$
@ChristopherMarley Thanks for the compliment. I tried to keep it quite simple based on my perception of the OP's limited math knowledge, such as the request to not using modular arithmetic. Similarly, I chose to not explicitly mention the lcm for the same reason.
$endgroup$
– John Omielan
Jan 31 at 4:19
$begingroup$
Thank you so much. The solution is a lot simpler than I have thought. :)
$endgroup$
– salsabil.raisa
Jan 31 at 4:26
$begingroup$
@salsabil.raisa You are welcome. Quite often there's some little trick with these sorts of problems that makes them fairly easy to solve.
$endgroup$
– John Omielan
Jan 31 at 4:28
$begingroup$
Beautiful, elegant solution! Perfectly aligns with JMoravitz's comment on modular arithmetic, and adding the lcm to the mod
$endgroup$
– Christopher Marley
Jan 31 at 4:16
$begingroup$
Beautiful, elegant solution! Perfectly aligns with JMoravitz's comment on modular arithmetic, and adding the lcm to the mod
$endgroup$
– Christopher Marley
Jan 31 at 4:16
$begingroup$
@ChristopherMarley Thanks for the compliment. I tried to keep it quite simple based on my perception of the OP's limited math knowledge, such as the request to not using modular arithmetic. Similarly, I chose to not explicitly mention the lcm for the same reason.
$endgroup$
– John Omielan
Jan 31 at 4:19
$begingroup$
@ChristopherMarley Thanks for the compliment. I tried to keep it quite simple based on my perception of the OP's limited math knowledge, such as the request to not using modular arithmetic. Similarly, I chose to not explicitly mention the lcm for the same reason.
$endgroup$
– John Omielan
Jan 31 at 4:19
$begingroup$
Thank you so much. The solution is a lot simpler than I have thought. :)
$endgroup$
– salsabil.raisa
Jan 31 at 4:26
$begingroup$
Thank you so much. The solution is a lot simpler than I have thought. :)
$endgroup$
– salsabil.raisa
Jan 31 at 4:26
$begingroup$
@salsabil.raisa You are welcome. Quite often there's some little trick with these sorts of problems that makes them fairly easy to solve.
$endgroup$
– John Omielan
Jan 31 at 4:28
$begingroup$
@salsabil.raisa You are welcome. Quite often there's some little trick with these sorts of problems that makes them fairly easy to solve.
$endgroup$
– John Omielan
Jan 31 at 4:28
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.
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%2f3094493%2fhow-do-i-find-a-number-which-when-divided-by-4-5-6-and-7-gives-3-4-5-and-6-a%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

$begingroup$
This is a repeated direct application of the chinese remainder theorem. This is a special case however that should be straightforward to solve. Notice that $3=4-1$ that $4=5-1$, that $5=6-1$ etc... so you are looking for a number which satisfies $begin{cases}nequiv -1pmod{4}\nequiv -1pmod{5}\nequiv -1pmod{6}\nequiv -1pmod{7}end{cases}$. A clear candidate would be $-1$. If you want it to be positive, then consider adding $text{lcm}(4,5,6,7)$.
$endgroup$
– JMoravitz
Jan 31 at 4:11
1
$begingroup$
"Please don't solve using modular arithmetic" There is no time like the present to learn. It works just like ordinary arithmetic with most of the same rules that you are already familiar with, just requiring a little bit more abstraction. All you need to know about it can be learned in 2 minutes.
$endgroup$
– JMoravitz
Jan 31 at 4:13
$begingroup$
" Please don't solve it using modular arithmetic. I don't know it yet." Then learn it. It's exceedingly easy and will be much easier to learn it a solve this using modular arithmetic then to solve it any other way. There is no reason it should take anyone more than a half hour to learn modular arithmetic.
$endgroup$
– fleablood
Jan 31 at 4:37
$begingroup$
Okay.. 😊 @JMoravitz
$endgroup$
– salsabil.raisa
Jan 31 at 4:38
$begingroup$
Ok, going to give a shot @fleablood
$endgroup$
– salsabil.raisa
Jan 31 at 4:39