Prove that the number $7^n+1$ is divisible by $8$ if $n$ is odd. In the case where $n$ is even, give the...
What is 'Log Memory' in Query Store 2017
Is there a math expression equivalent to the conditional ternary operator?
Is it a Cyclops number? "Nobody" knows!
Too soon for a plot twist?
How to write a chaotic neutral protagonist and prevent my readers from thinking they are evil?
Book where society has been split into 2 with a wall down the middle where one side embraced high tech whereas other side were totally against tech
Is "cogitate" used appropriately in "I cogitate that success relies on hard work"?
std::string vs const std::string& vs std::string_view
What is Tony Stark injecting into himself in Iron Man 3?
Paper published similar to PhD thesis
Why does this boat have a landing pad? (SpaceX's GO Searcher) Any plans for propulsive capsule landings?
Can I challenge the interviewer to give me a proper technical feedback?
Did Amazon pay $0 in taxes last year?
What is the oldest European royal house?
Why do phishing e-mails use faked e-mail addresses instead of the real one?
Help! My Character is too much for her story!
Short story about cities being connected by a conveyor belt
Sort array by month and year
PTIJ: Sport in the Torah
The (Easy) Road to Code
Is the differential, dp, exact or not?
Can multiple states demand income tax from an LLC?
Why do we say 'Pairwise Disjoint', rather than 'Disjoint'?
I am the person who abides by rules but breaks the rules . Who am I
Prove that the number $7^n+1$ is divisible by $8$ if $n$ is odd. In the case where $n$ is even, give the remainder of the division of $7^n+1$ by $8$.
If $17 mid frac{n^m - 1}{n-1}$ find the values of $n$ where $m$ is even but not divisible by $4$Sums of powers below a primeCan an odd perfect number be divisible by $101$?Proving a palindromic integer with an even number of digits is divisible by 11How to prove that sums of even powers is divisible by pDetermine the smallest number such that the division by $12,20,38$ left the same remainder $10$.Prove that the sum is divisible by $7$Could the sum of an even number of distinct positive odd numbers be divisible by each of the odd numbers?Probability that sum is odd but not divisible by $3$How long would it take a computer to check that a number is not divisible by any 20-digit prime?
$begingroup$
Prove that the number $7^n+1$ is divisible by $8$ if $n$ is odd. In the case where $n$ is even, give the remainder of the division of $7^n+1$ by $8$.
- If $n$ is odd
$7 equiv -1 mod 8$
$7^n equiv (-1)^n mod 8$
$7^n equiv -1 mod 8$
$7^n +1 equiv 0 mod 8$
Therefore, $7^n+1$ is divisible by $8$ if $n$ is odd.
- If $n$ is even
$7 equiv -1 mod 8$
$7^n equiv (-1)^n mod 8$
$7^n equiv 1 mod 8$
$7^n +1 equiv 2 mod 8$
Therefore, the remainder of the division of $7^n+1$ is $2$.
Is that true, please?
number-theory
$endgroup$
add a comment |
$begingroup$
Prove that the number $7^n+1$ is divisible by $8$ if $n$ is odd. In the case where $n$ is even, give the remainder of the division of $7^n+1$ by $8$.
- If $n$ is odd
$7 equiv -1 mod 8$
$7^n equiv (-1)^n mod 8$
$7^n equiv -1 mod 8$
$7^n +1 equiv 0 mod 8$
Therefore, $7^n+1$ is divisible by $8$ if $n$ is odd.
- If $n$ is even
$7 equiv -1 mod 8$
$7^n equiv (-1)^n mod 8$
$7^n equiv 1 mod 8$
$7^n +1 equiv 2 mod 8$
Therefore, the remainder of the division of $7^n+1$ is $2$.
Is that true, please?
number-theory
$endgroup$
2
$begingroup$
Perfect {}{}{}{}{}{}{}{}{
$endgroup$
– hamam_Abdallah
yesterday
$begingroup$
@hamam_Abdallah Thank you so much.
$endgroup$
– Dima
yesterday
add a comment |
$begingroup$
Prove that the number $7^n+1$ is divisible by $8$ if $n$ is odd. In the case where $n$ is even, give the remainder of the division of $7^n+1$ by $8$.
- If $n$ is odd
$7 equiv -1 mod 8$
$7^n equiv (-1)^n mod 8$
$7^n equiv -1 mod 8$
$7^n +1 equiv 0 mod 8$
Therefore, $7^n+1$ is divisible by $8$ if $n$ is odd.
- If $n$ is even
$7 equiv -1 mod 8$
$7^n equiv (-1)^n mod 8$
$7^n equiv 1 mod 8$
$7^n +1 equiv 2 mod 8$
Therefore, the remainder of the division of $7^n+1$ is $2$.
Is that true, please?
number-theory
$endgroup$
Prove that the number $7^n+1$ is divisible by $8$ if $n$ is odd. In the case where $n$ is even, give the remainder of the division of $7^n+1$ by $8$.
- If $n$ is odd
$7 equiv -1 mod 8$
$7^n equiv (-1)^n mod 8$
$7^n equiv -1 mod 8$
$7^n +1 equiv 0 mod 8$
Therefore, $7^n+1$ is divisible by $8$ if $n$ is odd.
- If $n$ is even
$7 equiv -1 mod 8$
$7^n equiv (-1)^n mod 8$
$7^n equiv 1 mod 8$
$7^n +1 equiv 2 mod 8$
Therefore, the remainder of the division of $7^n+1$ is $2$.
Is that true, please?
number-theory
number-theory
asked yesterday
DimaDima
822416
822416
2
$begingroup$
Perfect {}{}{}{}{}{}{}{}{
$endgroup$
– hamam_Abdallah
yesterday
$begingroup$
@hamam_Abdallah Thank you so much.
$endgroup$
– Dima
yesterday
add a comment |
2
$begingroup$
Perfect {}{}{}{}{}{}{}{}{
$endgroup$
– hamam_Abdallah
yesterday
$begingroup$
@hamam_Abdallah Thank you so much.
$endgroup$
– Dima
yesterday
2
2
$begingroup$
Perfect {}{}{}{}{}{}{}{}{
$endgroup$
– hamam_Abdallah
yesterday
$begingroup$
Perfect {}{}{}{}{}{}{}{}{
$endgroup$
– hamam_Abdallah
yesterday
$begingroup$
@hamam_Abdallah Thank you so much.
$endgroup$
– Dima
yesterday
$begingroup$
@hamam_Abdallah Thank you so much.
$endgroup$
– Dima
yesterday
add a comment |
3 Answers
3
active
oldest
votes
$begingroup$
Yes, you are right. Another way to present it would be like so:
For $n$ odd,
$$7^n+1 equiv (-1)^n+1 equiv -1+1 equiv 0 pmod 8$$
and for $n$ even,
$$7^n+1 equiv (-1)^n+1 equiv 1+1 equiv 2 pmod 8$$
$endgroup$
add a comment |
$begingroup$
Note that
$forall n in Bbb N, ; 7^n + 1 = (8 - 1)^n + 1 = displaystyle sum_0^n dfrac{n!}{k!(n - k)!}8^{n - k}(-1)^k + 1 = sum_0^{n - 1} dfrac{n!}{k!(n - k)!}8^{n - k}(-1)^k + (-1)^n + 1 , tag 1$
via the binomial theorem; when $n$ is odd this yields
$7^n + 1 = displaystyle 8sum_0^{n - 1} dfrac{n!}{k!(n - k)!}8^{n - k - 1}(-1)^k , tag 2$
whence
$8 mid 7^n + 1, ; text{odd} ; n; tag 3$
for even $n$ we obtain
$7^n + 1 = displaystyle 8sum_0^{n - 1} dfrac{n!}{k!(n - k)!}8^{n - k - 1}(-1)^k + 2; tag 4$
we note that
$0 le 2 < 8; tag 5$
that is, the remainder of $7^n + 1$ when divided by $8$ is $2$.
$endgroup$
2
$begingroup$
Not sure why anyone would think that is a better way than what the OP did which was easy, clear and correct.
$endgroup$
– fleablood
yesterday
add a comment |
$begingroup$
Just to be different:
$(a-1)(a^{n-1} + a^{n-2} + ..... + a + 1)=(a^n - 1)$.
$(a+1)(a^{n-1} -a^{n-2} + ........ mp a pm 1) = (a^n pm 1)$.
with $n$ even yielding $(a+1)(a^{n-1} -a^{n-2} + ........ + a - 1)=a^n -1$
and $n$ odd yielding $(a+1)(a^{n-1} -a^{n-2} + ...... -a +1) = a^n+1$
So we $a = 7$ we get $7+1=8|a^n+1$ if $n$ is odd. And $7+1=8|a^n-1$ if $n$ is even. And as $a^n-1 = (a^n -1) + 2$, $a^n + 1$ will have remainder $2$ if $n$ is even.
But that's just to be different.
What you did was shorter and better. This just shows why it's no surprise.
$endgroup$
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%2f3139279%2fprove-that-the-number-7n1-is-divisible-by-8-if-n-is-odd-in-the-case-whe%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Yes, you are right. Another way to present it would be like so:
For $n$ odd,
$$7^n+1 equiv (-1)^n+1 equiv -1+1 equiv 0 pmod 8$$
and for $n$ even,
$$7^n+1 equiv (-1)^n+1 equiv 1+1 equiv 2 pmod 8$$
$endgroup$
add a comment |
$begingroup$
Yes, you are right. Another way to present it would be like so:
For $n$ odd,
$$7^n+1 equiv (-1)^n+1 equiv -1+1 equiv 0 pmod 8$$
and for $n$ even,
$$7^n+1 equiv (-1)^n+1 equiv 1+1 equiv 2 pmod 8$$
$endgroup$
add a comment |
$begingroup$
Yes, you are right. Another way to present it would be like so:
For $n$ odd,
$$7^n+1 equiv (-1)^n+1 equiv -1+1 equiv 0 pmod 8$$
and for $n$ even,
$$7^n+1 equiv (-1)^n+1 equiv 1+1 equiv 2 pmod 8$$
$endgroup$
Yes, you are right. Another way to present it would be like so:
For $n$ odd,
$$7^n+1 equiv (-1)^n+1 equiv -1+1 equiv 0 pmod 8$$
and for $n$ even,
$$7^n+1 equiv (-1)^n+1 equiv 1+1 equiv 2 pmod 8$$
edited yesterday
answered yesterday
ThéophileThéophile
20.2k13047
20.2k13047
add a comment |
add a comment |
$begingroup$
Note that
$forall n in Bbb N, ; 7^n + 1 = (8 - 1)^n + 1 = displaystyle sum_0^n dfrac{n!}{k!(n - k)!}8^{n - k}(-1)^k + 1 = sum_0^{n - 1} dfrac{n!}{k!(n - k)!}8^{n - k}(-1)^k + (-1)^n + 1 , tag 1$
via the binomial theorem; when $n$ is odd this yields
$7^n + 1 = displaystyle 8sum_0^{n - 1} dfrac{n!}{k!(n - k)!}8^{n - k - 1}(-1)^k , tag 2$
whence
$8 mid 7^n + 1, ; text{odd} ; n; tag 3$
for even $n$ we obtain
$7^n + 1 = displaystyle 8sum_0^{n - 1} dfrac{n!}{k!(n - k)!}8^{n - k - 1}(-1)^k + 2; tag 4$
we note that
$0 le 2 < 8; tag 5$
that is, the remainder of $7^n + 1$ when divided by $8$ is $2$.
$endgroup$
2
$begingroup$
Not sure why anyone would think that is a better way than what the OP did which was easy, clear and correct.
$endgroup$
– fleablood
yesterday
add a comment |
$begingroup$
Note that
$forall n in Bbb N, ; 7^n + 1 = (8 - 1)^n + 1 = displaystyle sum_0^n dfrac{n!}{k!(n - k)!}8^{n - k}(-1)^k + 1 = sum_0^{n - 1} dfrac{n!}{k!(n - k)!}8^{n - k}(-1)^k + (-1)^n + 1 , tag 1$
via the binomial theorem; when $n$ is odd this yields
$7^n + 1 = displaystyle 8sum_0^{n - 1} dfrac{n!}{k!(n - k)!}8^{n - k - 1}(-1)^k , tag 2$
whence
$8 mid 7^n + 1, ; text{odd} ; n; tag 3$
for even $n$ we obtain
$7^n + 1 = displaystyle 8sum_0^{n - 1} dfrac{n!}{k!(n - k)!}8^{n - k - 1}(-1)^k + 2; tag 4$
we note that
$0 le 2 < 8; tag 5$
that is, the remainder of $7^n + 1$ when divided by $8$ is $2$.
$endgroup$
2
$begingroup$
Not sure why anyone would think that is a better way than what the OP did which was easy, clear and correct.
$endgroup$
– fleablood
yesterday
add a comment |
$begingroup$
Note that
$forall n in Bbb N, ; 7^n + 1 = (8 - 1)^n + 1 = displaystyle sum_0^n dfrac{n!}{k!(n - k)!}8^{n - k}(-1)^k + 1 = sum_0^{n - 1} dfrac{n!}{k!(n - k)!}8^{n - k}(-1)^k + (-1)^n + 1 , tag 1$
via the binomial theorem; when $n$ is odd this yields
$7^n + 1 = displaystyle 8sum_0^{n - 1} dfrac{n!}{k!(n - k)!}8^{n - k - 1}(-1)^k , tag 2$
whence
$8 mid 7^n + 1, ; text{odd} ; n; tag 3$
for even $n$ we obtain
$7^n + 1 = displaystyle 8sum_0^{n - 1} dfrac{n!}{k!(n - k)!}8^{n - k - 1}(-1)^k + 2; tag 4$
we note that
$0 le 2 < 8; tag 5$
that is, the remainder of $7^n + 1$ when divided by $8$ is $2$.
$endgroup$
Note that
$forall n in Bbb N, ; 7^n + 1 = (8 - 1)^n + 1 = displaystyle sum_0^n dfrac{n!}{k!(n - k)!}8^{n - k}(-1)^k + 1 = sum_0^{n - 1} dfrac{n!}{k!(n - k)!}8^{n - k}(-1)^k + (-1)^n + 1 , tag 1$
via the binomial theorem; when $n$ is odd this yields
$7^n + 1 = displaystyle 8sum_0^{n - 1} dfrac{n!}{k!(n - k)!}8^{n - k - 1}(-1)^k , tag 2$
whence
$8 mid 7^n + 1, ; text{odd} ; n; tag 3$
for even $n$ we obtain
$7^n + 1 = displaystyle 8sum_0^{n - 1} dfrac{n!}{k!(n - k)!}8^{n - k - 1}(-1)^k + 2; tag 4$
we note that
$0 le 2 < 8; tag 5$
that is, the remainder of $7^n + 1$ when divided by $8$ is $2$.
edited yesterday
answered yesterday
Robert LewisRobert Lewis
47.8k23067
47.8k23067
2
$begingroup$
Not sure why anyone would think that is a better way than what the OP did which was easy, clear and correct.
$endgroup$
– fleablood
yesterday
add a comment |
2
$begingroup$
Not sure why anyone would think that is a better way than what the OP did which was easy, clear and correct.
$endgroup$
– fleablood
yesterday
2
2
$begingroup$
Not sure why anyone would think that is a better way than what the OP did which was easy, clear and correct.
$endgroup$
– fleablood
yesterday
$begingroup$
Not sure why anyone would think that is a better way than what the OP did which was easy, clear and correct.
$endgroup$
– fleablood
yesterday
add a comment |
$begingroup$
Just to be different:
$(a-1)(a^{n-1} + a^{n-2} + ..... + a + 1)=(a^n - 1)$.
$(a+1)(a^{n-1} -a^{n-2} + ........ mp a pm 1) = (a^n pm 1)$.
with $n$ even yielding $(a+1)(a^{n-1} -a^{n-2} + ........ + a - 1)=a^n -1$
and $n$ odd yielding $(a+1)(a^{n-1} -a^{n-2} + ...... -a +1) = a^n+1$
So we $a = 7$ we get $7+1=8|a^n+1$ if $n$ is odd. And $7+1=8|a^n-1$ if $n$ is even. And as $a^n-1 = (a^n -1) + 2$, $a^n + 1$ will have remainder $2$ if $n$ is even.
But that's just to be different.
What you did was shorter and better. This just shows why it's no surprise.
$endgroup$
add a comment |
$begingroup$
Just to be different:
$(a-1)(a^{n-1} + a^{n-2} + ..... + a + 1)=(a^n - 1)$.
$(a+1)(a^{n-1} -a^{n-2} + ........ mp a pm 1) = (a^n pm 1)$.
with $n$ even yielding $(a+1)(a^{n-1} -a^{n-2} + ........ + a - 1)=a^n -1$
and $n$ odd yielding $(a+1)(a^{n-1} -a^{n-2} + ...... -a +1) = a^n+1$
So we $a = 7$ we get $7+1=8|a^n+1$ if $n$ is odd. And $7+1=8|a^n-1$ if $n$ is even. And as $a^n-1 = (a^n -1) + 2$, $a^n + 1$ will have remainder $2$ if $n$ is even.
But that's just to be different.
What you did was shorter and better. This just shows why it's no surprise.
$endgroup$
add a comment |
$begingroup$
Just to be different:
$(a-1)(a^{n-1} + a^{n-2} + ..... + a + 1)=(a^n - 1)$.
$(a+1)(a^{n-1} -a^{n-2} + ........ mp a pm 1) = (a^n pm 1)$.
with $n$ even yielding $(a+1)(a^{n-1} -a^{n-2} + ........ + a - 1)=a^n -1$
and $n$ odd yielding $(a+1)(a^{n-1} -a^{n-2} + ...... -a +1) = a^n+1$
So we $a = 7$ we get $7+1=8|a^n+1$ if $n$ is odd. And $7+1=8|a^n-1$ if $n$ is even. And as $a^n-1 = (a^n -1) + 2$, $a^n + 1$ will have remainder $2$ if $n$ is even.
But that's just to be different.
What you did was shorter and better. This just shows why it's no surprise.
$endgroup$
Just to be different:
$(a-1)(a^{n-1} + a^{n-2} + ..... + a + 1)=(a^n - 1)$.
$(a+1)(a^{n-1} -a^{n-2} + ........ mp a pm 1) = (a^n pm 1)$.
with $n$ even yielding $(a+1)(a^{n-1} -a^{n-2} + ........ + a - 1)=a^n -1$
and $n$ odd yielding $(a+1)(a^{n-1} -a^{n-2} + ...... -a +1) = a^n+1$
So we $a = 7$ we get $7+1=8|a^n+1$ if $n$ is odd. And $7+1=8|a^n-1$ if $n$ is even. And as $a^n-1 = (a^n -1) + 2$, $a^n + 1$ will have remainder $2$ if $n$ is even.
But that's just to be different.
What you did was shorter and better. This just shows why it's no surprise.
answered yesterday
fleabloodfleablood
72k22687
72k22687
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.
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%2f3139279%2fprove-that-the-number-7n1-is-divisible-by-8-if-n-is-odd-in-the-case-whe%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
2
$begingroup$
Perfect {}{}{}{}{}{}{}{}{
$endgroup$
– hamam_Abdallah
yesterday
$begingroup$
@hamam_Abdallah Thank you so much.
$endgroup$
– Dima
yesterday