Can 2018 be written as a sum of two squares? If can, what is the expression?
$begingroup$
Can $2018$ be written as a sum of two squares?
If it can be, what are the numbers?
I know the first answer is it can be because $2018=2times1009$ and $1009equiv 1 pmod{4}$. But I cannot find the numbers.
elementary-number-theory
$endgroup$
add a comment |
$begingroup$
Can $2018$ be written as a sum of two squares?
If it can be, what are the numbers?
I know the first answer is it can be because $2018=2times1009$ and $1009equiv 1 pmod{4}$. But I cannot find the numbers.
elementary-number-theory
$endgroup$
1
$begingroup$
If all you care about is the numbers, then wolframalpha can help.
$endgroup$
– JMoravitz
Dec 7 '17 at 4:18
$begingroup$
By hit and trial, you can verify that $2018 = 13^2 + cdots$
$endgroup$
– Math Lover
Dec 7 '17 at 4:21
$begingroup$
For a small number like this, just make a column in a spreadsheet with $1$ to $45$ then =sqrt(2018-left^2) will make it easy to find. Just search by eye for the entries without decimals. They leap out.
$endgroup$
– Ross Millikan
Dec 7 '17 at 4:21
$begingroup$
See math.stackexchange.com/questions/1828694/…
$endgroup$
– lab bhattacharjee
Dec 7 '17 at 4:41
add a comment |
$begingroup$
Can $2018$ be written as a sum of two squares?
If it can be, what are the numbers?
I know the first answer is it can be because $2018=2times1009$ and $1009equiv 1 pmod{4}$. But I cannot find the numbers.
elementary-number-theory
$endgroup$
Can $2018$ be written as a sum of two squares?
If it can be, what are the numbers?
I know the first answer is it can be because $2018=2times1009$ and $1009equiv 1 pmod{4}$. But I cannot find the numbers.
elementary-number-theory
elementary-number-theory
edited Dec 16 '17 at 17:39
Namaste
1
1
asked Dec 7 '17 at 4:15
Joe sae Joe sae
337
337
1
$begingroup$
If all you care about is the numbers, then wolframalpha can help.
$endgroup$
– JMoravitz
Dec 7 '17 at 4:18
$begingroup$
By hit and trial, you can verify that $2018 = 13^2 + cdots$
$endgroup$
– Math Lover
Dec 7 '17 at 4:21
$begingroup$
For a small number like this, just make a column in a spreadsheet with $1$ to $45$ then =sqrt(2018-left^2) will make it easy to find. Just search by eye for the entries without decimals. They leap out.
$endgroup$
– Ross Millikan
Dec 7 '17 at 4:21
$begingroup$
See math.stackexchange.com/questions/1828694/…
$endgroup$
– lab bhattacharjee
Dec 7 '17 at 4:41
add a comment |
1
$begingroup$
If all you care about is the numbers, then wolframalpha can help.
$endgroup$
– JMoravitz
Dec 7 '17 at 4:18
$begingroup$
By hit and trial, you can verify that $2018 = 13^2 + cdots$
$endgroup$
– Math Lover
Dec 7 '17 at 4:21
$begingroup$
For a small number like this, just make a column in a spreadsheet with $1$ to $45$ then =sqrt(2018-left^2) will make it easy to find. Just search by eye for the entries without decimals. They leap out.
$endgroup$
– Ross Millikan
Dec 7 '17 at 4:21
$begingroup$
See math.stackexchange.com/questions/1828694/…
$endgroup$
– lab bhattacharjee
Dec 7 '17 at 4:41
1
1
$begingroup$
If all you care about is the numbers, then wolframalpha can help.
$endgroup$
– JMoravitz
Dec 7 '17 at 4:18
$begingroup$
If all you care about is the numbers, then wolframalpha can help.
$endgroup$
– JMoravitz
Dec 7 '17 at 4:18
$begingroup$
By hit and trial, you can verify that $2018 = 13^2 + cdots$
$endgroup$
– Math Lover
Dec 7 '17 at 4:21
$begingroup$
By hit and trial, you can verify that $2018 = 13^2 + cdots$
$endgroup$
– Math Lover
Dec 7 '17 at 4:21
$begingroup$
For a small number like this, just make a column in a spreadsheet with $1$ to $45$ then =sqrt(2018-left^2) will make it easy to find. Just search by eye for the entries without decimals. They leap out.
$endgroup$
– Ross Millikan
Dec 7 '17 at 4:21
$begingroup$
For a small number like this, just make a column in a spreadsheet with $1$ to $45$ then =sqrt(2018-left^2) will make it easy to find. Just search by eye for the entries without decimals. They leap out.
$endgroup$
– Ross Millikan
Dec 7 '17 at 4:21
$begingroup$
See math.stackexchange.com/questions/1828694/…
$endgroup$
– lab bhattacharjee
Dec 7 '17 at 4:41
$begingroup$
See math.stackexchange.com/questions/1828694/…
$endgroup$
– lab bhattacharjee
Dec 7 '17 at 4:41
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
Yes, $2018 = 2times 1009$ (as prime factorization). Since $1009$ is an odd prime of the form $4k+1$, it can be written as a sum of two squares $1009 = a^2+b^2$. Together with $2 = 1^2 + 1^2$,
Brahmagupta–Fibonacci identity
$$(a^2+b^2)(c^2+d^2) = (ac-bd)^2 + (ad+bc)^2 = (ac+bd)^2 + (ad-bc)^2$$
tell us $2018 = (a+b)^2 + (a-b)^2$.
The task reduces to rewrite $1009$ as a sum of two squares. In addition to
seaching by brute force, one can use algorithms described in
answers of this question to determine $a,b$ efficiently. At the end, one find $$1009 = 28^2+15^2 quadimpliesquad 2018 = 43^2 + 13^2$$
A good reference of these sort of algorithms will be Henri Cohen's book
A course in Computation Algebraic Number Theory. Take a look at that if you need more details.
$endgroup$
add a comment |
$begingroup$
You are correct my friend,as per Brahmagupta's Fibonacci identity,it says that-$a^2c^2+a^2d^2+b^2c^2+b^2d^2$=$a^2c^2-2acbd+b^2d^2+a^2d^2+2adbc+b^2c^2$=$a^2c^2+2acbd+b^2d^2+a^2d^2-2adbc+b^2c^2$ just as you are writing 1009=784+225 and 2018=1849+169
$endgroup$
$begingroup$
Now if you want to use only 43 and 13 to represent 1009 then you can write as follows:$$1009=[(frac{1}{4}){(43+13)^2+(43-13)^2}]$$= $$(frac{1}{4}){(56^2+30^2)$$ = $$(frac{1}{4})(3136+900)$$
$endgroup$
– user630998
Jan 2 at 5:09
add a comment |
Your Answer
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%2f2555005%2fcan-2018-be-written-as-a-sum-of-two-squares-if-can-what-is-the-expression%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Yes, $2018 = 2times 1009$ (as prime factorization). Since $1009$ is an odd prime of the form $4k+1$, it can be written as a sum of two squares $1009 = a^2+b^2$. Together with $2 = 1^2 + 1^2$,
Brahmagupta–Fibonacci identity
$$(a^2+b^2)(c^2+d^2) = (ac-bd)^2 + (ad+bc)^2 = (ac+bd)^2 + (ad-bc)^2$$
tell us $2018 = (a+b)^2 + (a-b)^2$.
The task reduces to rewrite $1009$ as a sum of two squares. In addition to
seaching by brute force, one can use algorithms described in
answers of this question to determine $a,b$ efficiently. At the end, one find $$1009 = 28^2+15^2 quadimpliesquad 2018 = 43^2 + 13^2$$
A good reference of these sort of algorithms will be Henri Cohen's book
A course in Computation Algebraic Number Theory. Take a look at that if you need more details.
$endgroup$
add a comment |
$begingroup$
Yes, $2018 = 2times 1009$ (as prime factorization). Since $1009$ is an odd prime of the form $4k+1$, it can be written as a sum of two squares $1009 = a^2+b^2$. Together with $2 = 1^2 + 1^2$,
Brahmagupta–Fibonacci identity
$$(a^2+b^2)(c^2+d^2) = (ac-bd)^2 + (ad+bc)^2 = (ac+bd)^2 + (ad-bc)^2$$
tell us $2018 = (a+b)^2 + (a-b)^2$.
The task reduces to rewrite $1009$ as a sum of two squares. In addition to
seaching by brute force, one can use algorithms described in
answers of this question to determine $a,b$ efficiently. At the end, one find $$1009 = 28^2+15^2 quadimpliesquad 2018 = 43^2 + 13^2$$
A good reference of these sort of algorithms will be Henri Cohen's book
A course in Computation Algebraic Number Theory. Take a look at that if you need more details.
$endgroup$
add a comment |
$begingroup$
Yes, $2018 = 2times 1009$ (as prime factorization). Since $1009$ is an odd prime of the form $4k+1$, it can be written as a sum of two squares $1009 = a^2+b^2$. Together with $2 = 1^2 + 1^2$,
Brahmagupta–Fibonacci identity
$$(a^2+b^2)(c^2+d^2) = (ac-bd)^2 + (ad+bc)^2 = (ac+bd)^2 + (ad-bc)^2$$
tell us $2018 = (a+b)^2 + (a-b)^2$.
The task reduces to rewrite $1009$ as a sum of two squares. In addition to
seaching by brute force, one can use algorithms described in
answers of this question to determine $a,b$ efficiently. At the end, one find $$1009 = 28^2+15^2 quadimpliesquad 2018 = 43^2 + 13^2$$
A good reference of these sort of algorithms will be Henri Cohen's book
A course in Computation Algebraic Number Theory. Take a look at that if you need more details.
$endgroup$
Yes, $2018 = 2times 1009$ (as prime factorization). Since $1009$ is an odd prime of the form $4k+1$, it can be written as a sum of two squares $1009 = a^2+b^2$. Together with $2 = 1^2 + 1^2$,
Brahmagupta–Fibonacci identity
$$(a^2+b^2)(c^2+d^2) = (ac-bd)^2 + (ad+bc)^2 = (ac+bd)^2 + (ad-bc)^2$$
tell us $2018 = (a+b)^2 + (a-b)^2$.
The task reduces to rewrite $1009$ as a sum of two squares. In addition to
seaching by brute force, one can use algorithms described in
answers of this question to determine $a,b$ efficiently. At the end, one find $$1009 = 28^2+15^2 quadimpliesquad 2018 = 43^2 + 13^2$$
A good reference of these sort of algorithms will be Henri Cohen's book
A course in Computation Algebraic Number Theory. Take a look at that if you need more details.
edited Nov 25 '18 at 19:49
LoPablo
33
33
answered Dec 7 '17 at 4:51
achille huiachille hui
96.7k5132261
96.7k5132261
add a comment |
add a comment |
$begingroup$
You are correct my friend,as per Brahmagupta's Fibonacci identity,it says that-$a^2c^2+a^2d^2+b^2c^2+b^2d^2$=$a^2c^2-2acbd+b^2d^2+a^2d^2+2adbc+b^2c^2$=$a^2c^2+2acbd+b^2d^2+a^2d^2-2adbc+b^2c^2$ just as you are writing 1009=784+225 and 2018=1849+169
$endgroup$
$begingroup$
Now if you want to use only 43 and 13 to represent 1009 then you can write as follows:$$1009=[(frac{1}{4}){(43+13)^2+(43-13)^2}]$$= $$(frac{1}{4}){(56^2+30^2)$$ = $$(frac{1}{4})(3136+900)$$
$endgroup$
– user630998
Jan 2 at 5:09
add a comment |
$begingroup$
You are correct my friend,as per Brahmagupta's Fibonacci identity,it says that-$a^2c^2+a^2d^2+b^2c^2+b^2d^2$=$a^2c^2-2acbd+b^2d^2+a^2d^2+2adbc+b^2c^2$=$a^2c^2+2acbd+b^2d^2+a^2d^2-2adbc+b^2c^2$ just as you are writing 1009=784+225 and 2018=1849+169
$endgroup$
$begingroup$
Now if you want to use only 43 and 13 to represent 1009 then you can write as follows:$$1009=[(frac{1}{4}){(43+13)^2+(43-13)^2}]$$= $$(frac{1}{4}){(56^2+30^2)$$ = $$(frac{1}{4})(3136+900)$$
$endgroup$
– user630998
Jan 2 at 5:09
add a comment |
$begingroup$
You are correct my friend,as per Brahmagupta's Fibonacci identity,it says that-$a^2c^2+a^2d^2+b^2c^2+b^2d^2$=$a^2c^2-2acbd+b^2d^2+a^2d^2+2adbc+b^2c^2$=$a^2c^2+2acbd+b^2d^2+a^2d^2-2adbc+b^2c^2$ just as you are writing 1009=784+225 and 2018=1849+169
$endgroup$
You are correct my friend,as per Brahmagupta's Fibonacci identity,it says that-$a^2c^2+a^2d^2+b^2c^2+b^2d^2$=$a^2c^2-2acbd+b^2d^2+a^2d^2+2adbc+b^2c^2$=$a^2c^2+2acbd+b^2d^2+a^2d^2-2adbc+b^2c^2$ just as you are writing 1009=784+225 and 2018=1849+169
answered Jan 2 at 4:55
user630998
$begingroup$
Now if you want to use only 43 and 13 to represent 1009 then you can write as follows:$$1009=[(frac{1}{4}){(43+13)^2+(43-13)^2}]$$= $$(frac{1}{4}){(56^2+30^2)$$ = $$(frac{1}{4})(3136+900)$$
$endgroup$
– user630998
Jan 2 at 5:09
add a comment |
$begingroup$
Now if you want to use only 43 and 13 to represent 1009 then you can write as follows:$$1009=[(frac{1}{4}){(43+13)^2+(43-13)^2}]$$= $$(frac{1}{4}){(56^2+30^2)$$ = $$(frac{1}{4})(3136+900)$$
$endgroup$
– user630998
Jan 2 at 5:09
$begingroup$
Now if you want to use only 43 and 13 to represent 1009 then you can write as follows:$$1009=[(frac{1}{4}){(43+13)^2+(43-13)^2}]$$= $$(frac{1}{4}){(56^2+30^2)$$ = $$(frac{1}{4})(3136+900)$$
$endgroup$
– user630998
Jan 2 at 5:09
$begingroup$
Now if you want to use only 43 and 13 to represent 1009 then you can write as follows:$$1009=[(frac{1}{4}){(43+13)^2+(43-13)^2}]$$= $$(frac{1}{4}){(56^2+30^2)$$ = $$(frac{1}{4})(3136+900)$$
$endgroup$
– user630998
Jan 2 at 5:09
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%2f2555005%2fcan-2018-be-written-as-a-sum-of-two-squares-if-can-what-is-the-expression%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
$begingroup$
If all you care about is the numbers, then wolframalpha can help.
$endgroup$
– JMoravitz
Dec 7 '17 at 4:18
$begingroup$
By hit and trial, you can verify that $2018 = 13^2 + cdots$
$endgroup$
– Math Lover
Dec 7 '17 at 4:21
$begingroup$
For a small number like this, just make a column in a spreadsheet with $1$ to $45$ then =sqrt(2018-left^2) will make it easy to find. Just search by eye for the entries without decimals. They leap out.
$endgroup$
– Ross Millikan
Dec 7 '17 at 4:21
$begingroup$
See math.stackexchange.com/questions/1828694/…
$endgroup$
– lab bhattacharjee
Dec 7 '17 at 4:41