Maximal sum of all numbers in the circle.
$begingroup$
$49$ integers are ordered around a circle. It is given that for any two adjacent numbers $x,y$ we have $x+y=(x-y)^2$. Find the maximal sum of all numbers in the circle.
Solution
Note that $x+y=(x-y)^2$ may be written as
$(2x-2y+1)^2=8y+1$ or also $(2y-2x+1)^2=8x+1$
And so all elements are such that $8x+1ge 0$
Replacing all elements $x$ on the circle by $X=sqrt{8x+1}$ the relation becomes
$X=pm Ypm 2$ (always with the constraint $X,Yge 0$)
So, applying $n$ times this process starting from $a$, we get $pm a+(overbrace{pm 1pm 1 ... pm 1}^{ntext{ times}})2$
In order to have a cycle after $49$ steps, we get $a=pm a+(overbrace{pm 1pm 1 ... pm 1}^{49text{ times}})2$
The second part is twice an odd number and so can never be zero and so we need the $pm a$ in RHS be $-a$
And so $a=(overbrace{pm 1pm 1 ... pm 1}^{49text{ times}})le 49$
Note that in order the $pm a$ becomes $-a$, at least one transformation needs to be $Xto 2-X$ and so $X=1$
It is easy to see that the optimum sequence for Xs then will be :
$(49,47,45,...,3,1,1,3,5,...,45,47),(49,47,45,...,3,1,1,3,5,...,45,47),...$
Which is, for the original sequence of $49$ numbers :
$frac{49^2-1}8,frac{47^2-1}8,...,frac{3^2-1}8,0,0,frac{3^2-1}8,...,frac{47^2-1}8$
And so the maximum sum is $sum_{k=0}^{24}frac{(2k+1)^2-1}8+sum_{k=0}^{23}frac{(2k+1)^2-1}8$
Which is $boxed{4900}$
My question: Could you please solve the generalize problem?
Thank you in advance!
combinatorics number-theory
$endgroup$
add a comment |
$begingroup$
$49$ integers are ordered around a circle. It is given that for any two adjacent numbers $x,y$ we have $x+y=(x-y)^2$. Find the maximal sum of all numbers in the circle.
Solution
Note that $x+y=(x-y)^2$ may be written as
$(2x-2y+1)^2=8y+1$ or also $(2y-2x+1)^2=8x+1$
And so all elements are such that $8x+1ge 0$
Replacing all elements $x$ on the circle by $X=sqrt{8x+1}$ the relation becomes
$X=pm Ypm 2$ (always with the constraint $X,Yge 0$)
So, applying $n$ times this process starting from $a$, we get $pm a+(overbrace{pm 1pm 1 ... pm 1}^{ntext{ times}})2$
In order to have a cycle after $49$ steps, we get $a=pm a+(overbrace{pm 1pm 1 ... pm 1}^{49text{ times}})2$
The second part is twice an odd number and so can never be zero and so we need the $pm a$ in RHS be $-a$
And so $a=(overbrace{pm 1pm 1 ... pm 1}^{49text{ times}})le 49$
Note that in order the $pm a$ becomes $-a$, at least one transformation needs to be $Xto 2-X$ and so $X=1$
It is easy to see that the optimum sequence for Xs then will be :
$(49,47,45,...,3,1,1,3,5,...,45,47),(49,47,45,...,3,1,1,3,5,...,45,47),...$
Which is, for the original sequence of $49$ numbers :
$frac{49^2-1}8,frac{47^2-1}8,...,frac{3^2-1}8,0,0,frac{3^2-1}8,...,frac{47^2-1}8$
And so the maximum sum is $sum_{k=0}^{24}frac{(2k+1)^2-1}8+sum_{k=0}^{23}frac{(2k+1)^2-1}8$
Which is $boxed{4900}$
My question: Could you please solve the generalize problem?
Thank you in advance!
combinatorics number-theory
$endgroup$
$begingroup$
By the generalized problem you mean the initial problem with 49 replaced by any integer $nge 2$, right?
$endgroup$
– Alex Ravsky
Dec 21 '18 at 3:32
1
$begingroup$
$ngeq 2$ integers are ordered around a circle. It is given that for any two adjacent numbers x,y we have $x+y=(x−y)^2$. Find the maximal sum of all numbers in the circle.
$endgroup$
– nam
Dec 23 '18 at 2:56
add a comment |
$begingroup$
$49$ integers are ordered around a circle. It is given that for any two adjacent numbers $x,y$ we have $x+y=(x-y)^2$. Find the maximal sum of all numbers in the circle.
Solution
Note that $x+y=(x-y)^2$ may be written as
$(2x-2y+1)^2=8y+1$ or also $(2y-2x+1)^2=8x+1$
And so all elements are such that $8x+1ge 0$
Replacing all elements $x$ on the circle by $X=sqrt{8x+1}$ the relation becomes
$X=pm Ypm 2$ (always with the constraint $X,Yge 0$)
So, applying $n$ times this process starting from $a$, we get $pm a+(overbrace{pm 1pm 1 ... pm 1}^{ntext{ times}})2$
In order to have a cycle after $49$ steps, we get $a=pm a+(overbrace{pm 1pm 1 ... pm 1}^{49text{ times}})2$
The second part is twice an odd number and so can never be zero and so we need the $pm a$ in RHS be $-a$
And so $a=(overbrace{pm 1pm 1 ... pm 1}^{49text{ times}})le 49$
Note that in order the $pm a$ becomes $-a$, at least one transformation needs to be $Xto 2-X$ and so $X=1$
It is easy to see that the optimum sequence for Xs then will be :
$(49,47,45,...,3,1,1,3,5,...,45,47),(49,47,45,...,3,1,1,3,5,...,45,47),...$
Which is, for the original sequence of $49$ numbers :
$frac{49^2-1}8,frac{47^2-1}8,...,frac{3^2-1}8,0,0,frac{3^2-1}8,...,frac{47^2-1}8$
And so the maximum sum is $sum_{k=0}^{24}frac{(2k+1)^2-1}8+sum_{k=0}^{23}frac{(2k+1)^2-1}8$
Which is $boxed{4900}$
My question: Could you please solve the generalize problem?
Thank you in advance!
combinatorics number-theory
$endgroup$
$49$ integers are ordered around a circle. It is given that for any two adjacent numbers $x,y$ we have $x+y=(x-y)^2$. Find the maximal sum of all numbers in the circle.
Solution
Note that $x+y=(x-y)^2$ may be written as
$(2x-2y+1)^2=8y+1$ or also $(2y-2x+1)^2=8x+1$
And so all elements are such that $8x+1ge 0$
Replacing all elements $x$ on the circle by $X=sqrt{8x+1}$ the relation becomes
$X=pm Ypm 2$ (always with the constraint $X,Yge 0$)
So, applying $n$ times this process starting from $a$, we get $pm a+(overbrace{pm 1pm 1 ... pm 1}^{ntext{ times}})2$
In order to have a cycle after $49$ steps, we get $a=pm a+(overbrace{pm 1pm 1 ... pm 1}^{49text{ times}})2$
The second part is twice an odd number and so can never be zero and so we need the $pm a$ in RHS be $-a$
And so $a=(overbrace{pm 1pm 1 ... pm 1}^{49text{ times}})le 49$
Note that in order the $pm a$ becomes $-a$, at least one transformation needs to be $Xto 2-X$ and so $X=1$
It is easy to see that the optimum sequence for Xs then will be :
$(49,47,45,...,3,1,1,3,5,...,45,47),(49,47,45,...,3,1,1,3,5,...,45,47),...$
Which is, for the original sequence of $49$ numbers :
$frac{49^2-1}8,frac{47^2-1}8,...,frac{3^2-1}8,0,0,frac{3^2-1}8,...,frac{47^2-1}8$
And so the maximum sum is $sum_{k=0}^{24}frac{(2k+1)^2-1}8+sum_{k=0}^{23}frac{(2k+1)^2-1}8$
Which is $boxed{4900}$
My question: Could you please solve the generalize problem?
Thank you in advance!
combinatorics number-theory
combinatorics number-theory
asked Dec 19 '18 at 12:07
namnam
973
973
$begingroup$
By the generalized problem you mean the initial problem with 49 replaced by any integer $nge 2$, right?
$endgroup$
– Alex Ravsky
Dec 21 '18 at 3:32
1
$begingroup$
$ngeq 2$ integers are ordered around a circle. It is given that for any two adjacent numbers x,y we have $x+y=(x−y)^2$. Find the maximal sum of all numbers in the circle.
$endgroup$
– nam
Dec 23 '18 at 2:56
add a comment |
$begingroup$
By the generalized problem you mean the initial problem with 49 replaced by any integer $nge 2$, right?
$endgroup$
– Alex Ravsky
Dec 21 '18 at 3:32
1
$begingroup$
$ngeq 2$ integers are ordered around a circle. It is given that for any two adjacent numbers x,y we have $x+y=(x−y)^2$. Find the maximal sum of all numbers in the circle.
$endgroup$
– nam
Dec 23 '18 at 2:56
$begingroup$
By the generalized problem you mean the initial problem with 49 replaced by any integer $nge 2$, right?
$endgroup$
– Alex Ravsky
Dec 21 '18 at 3:32
$begingroup$
By the generalized problem you mean the initial problem with 49 replaced by any integer $nge 2$, right?
$endgroup$
– Alex Ravsky
Dec 21 '18 at 3:32
1
1
$begingroup$
$ngeq 2$ integers are ordered around a circle. It is given that for any two adjacent numbers x,y we have $x+y=(x−y)^2$. Find the maximal sum of all numbers in the circle.
$endgroup$
– nam
Dec 23 '18 at 2:56
$begingroup$
$ngeq 2$ integers are ordered around a circle. It is given that for any two adjacent numbers x,y we have $x+y=(x−y)^2$. Find the maximal sum of all numbers in the circle.
$endgroup$
– nam
Dec 23 '18 at 2:56
add a comment |
0
active
oldest
votes
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%2f3046311%2fmaximal-sum-of-all-numbers-in-the-circle%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f3046311%2fmaximal-sum-of-all-numbers-in-the-circle%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$
By the generalized problem you mean the initial problem with 49 replaced by any integer $nge 2$, right?
$endgroup$
– Alex Ravsky
Dec 21 '18 at 3:32
1
$begingroup$
$ngeq 2$ integers are ordered around a circle. It is given that for any two adjacent numbers x,y we have $x+y=(x−y)^2$. Find the maximal sum of all numbers in the circle.
$endgroup$
– nam
Dec 23 '18 at 2:56