plotting the remainder r(n,x) as a function of n












0












$begingroup$


I was graphing the remainder of the Euclidean division between an integer $n$ and an irrational $x$: $r(n,x) =n-x cdot lfloor n/x rfloor$
when I stumbled on quasi-linear graph I cannot explain. Any idea how to calculate the slopes of the lines and why there is no lines for $x = phi$, the golden ratio?



r(n,Phi):



r(n,Pi)



r(n,e)










share|cite|improve this question











$endgroup$












  • $begingroup$
    You should plot $r(y,x) = y - x lfloor y/x rfloor$ for $y in [0,x]$. Then $frac{r(yx,x)}{x}= y - lfloor y rfloor$ doesn't depend on $x$ so when changing $x$ you obtain the same plot but rescaled differently. Clearly the plot of $y - lfloor y rfloor, y in [0,1]$ is just a line segment from $(0,0)$ to $(1,1)$, and when plotting $y - lfloor y rfloor, y in mathbb{R}$ you get a bunch of line segments from $(n,n)$ to $(n+1,n+1)$. Thus your question now becomes : what happens when sampling the latter plot at discrete values of $y$ ?
    $endgroup$
    – reuns
    Dec 24 '18 at 6:01










  • $begingroup$
    Why is the slope changing from positive for Pi to negative for e? Furthermore, the pattern is filled from the bottom right to up-right, then shift right, goes down, etc...Lines only appear if you plot a lot of points, and points on the line do not correspond to the successive value of n.
    $endgroup$
    – Shaktyai
    Dec 24 '18 at 11:27
















0












$begingroup$


I was graphing the remainder of the Euclidean division between an integer $n$ and an irrational $x$: $r(n,x) =n-x cdot lfloor n/x rfloor$
when I stumbled on quasi-linear graph I cannot explain. Any idea how to calculate the slopes of the lines and why there is no lines for $x = phi$, the golden ratio?



r(n,Phi):



r(n,Pi)



r(n,e)










share|cite|improve this question











$endgroup$












  • $begingroup$
    You should plot $r(y,x) = y - x lfloor y/x rfloor$ for $y in [0,x]$. Then $frac{r(yx,x)}{x}= y - lfloor y rfloor$ doesn't depend on $x$ so when changing $x$ you obtain the same plot but rescaled differently. Clearly the plot of $y - lfloor y rfloor, y in [0,1]$ is just a line segment from $(0,0)$ to $(1,1)$, and when plotting $y - lfloor y rfloor, y in mathbb{R}$ you get a bunch of line segments from $(n,n)$ to $(n+1,n+1)$. Thus your question now becomes : what happens when sampling the latter plot at discrete values of $y$ ?
    $endgroup$
    – reuns
    Dec 24 '18 at 6:01










  • $begingroup$
    Why is the slope changing from positive for Pi to negative for e? Furthermore, the pattern is filled from the bottom right to up-right, then shift right, goes down, etc...Lines only appear if you plot a lot of points, and points on the line do not correspond to the successive value of n.
    $endgroup$
    – Shaktyai
    Dec 24 '18 at 11:27














0












0








0





$begingroup$


I was graphing the remainder of the Euclidean division between an integer $n$ and an irrational $x$: $r(n,x) =n-x cdot lfloor n/x rfloor$
when I stumbled on quasi-linear graph I cannot explain. Any idea how to calculate the slopes of the lines and why there is no lines for $x = phi$, the golden ratio?



r(n,Phi):



r(n,Pi)



r(n,e)










share|cite|improve this question











$endgroup$




I was graphing the remainder of the Euclidean division between an integer $n$ and an irrational $x$: $r(n,x) =n-x cdot lfloor n/x rfloor$
when I stumbled on quasi-linear graph I cannot explain. Any idea how to calculate the slopes of the lines and why there is no lines for $x = phi$, the golden ratio?



r(n,Phi):



r(n,Pi)



r(n,e)







number-theory






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Dec 24 '18 at 4:50









gt6989b

36k22557




36k22557










asked Dec 24 '18 at 4:37









ShaktyaiShaktyai

1




1












  • $begingroup$
    You should plot $r(y,x) = y - x lfloor y/x rfloor$ for $y in [0,x]$. Then $frac{r(yx,x)}{x}= y - lfloor y rfloor$ doesn't depend on $x$ so when changing $x$ you obtain the same plot but rescaled differently. Clearly the plot of $y - lfloor y rfloor, y in [0,1]$ is just a line segment from $(0,0)$ to $(1,1)$, and when plotting $y - lfloor y rfloor, y in mathbb{R}$ you get a bunch of line segments from $(n,n)$ to $(n+1,n+1)$. Thus your question now becomes : what happens when sampling the latter plot at discrete values of $y$ ?
    $endgroup$
    – reuns
    Dec 24 '18 at 6:01










  • $begingroup$
    Why is the slope changing from positive for Pi to negative for e? Furthermore, the pattern is filled from the bottom right to up-right, then shift right, goes down, etc...Lines only appear if you plot a lot of points, and points on the line do not correspond to the successive value of n.
    $endgroup$
    – Shaktyai
    Dec 24 '18 at 11:27


















  • $begingroup$
    You should plot $r(y,x) = y - x lfloor y/x rfloor$ for $y in [0,x]$. Then $frac{r(yx,x)}{x}= y - lfloor y rfloor$ doesn't depend on $x$ so when changing $x$ you obtain the same plot but rescaled differently. Clearly the plot of $y - lfloor y rfloor, y in [0,1]$ is just a line segment from $(0,0)$ to $(1,1)$, and when plotting $y - lfloor y rfloor, y in mathbb{R}$ you get a bunch of line segments from $(n,n)$ to $(n+1,n+1)$. Thus your question now becomes : what happens when sampling the latter plot at discrete values of $y$ ?
    $endgroup$
    – reuns
    Dec 24 '18 at 6:01










  • $begingroup$
    Why is the slope changing from positive for Pi to negative for e? Furthermore, the pattern is filled from the bottom right to up-right, then shift right, goes down, etc...Lines only appear if you plot a lot of points, and points on the line do not correspond to the successive value of n.
    $endgroup$
    – Shaktyai
    Dec 24 '18 at 11:27
















$begingroup$
You should plot $r(y,x) = y - x lfloor y/x rfloor$ for $y in [0,x]$. Then $frac{r(yx,x)}{x}= y - lfloor y rfloor$ doesn't depend on $x$ so when changing $x$ you obtain the same plot but rescaled differently. Clearly the plot of $y - lfloor y rfloor, y in [0,1]$ is just a line segment from $(0,0)$ to $(1,1)$, and when plotting $y - lfloor y rfloor, y in mathbb{R}$ you get a bunch of line segments from $(n,n)$ to $(n+1,n+1)$. Thus your question now becomes : what happens when sampling the latter plot at discrete values of $y$ ?
$endgroup$
– reuns
Dec 24 '18 at 6:01




$begingroup$
You should plot $r(y,x) = y - x lfloor y/x rfloor$ for $y in [0,x]$. Then $frac{r(yx,x)}{x}= y - lfloor y rfloor$ doesn't depend on $x$ so when changing $x$ you obtain the same plot but rescaled differently. Clearly the plot of $y - lfloor y rfloor, y in [0,1]$ is just a line segment from $(0,0)$ to $(1,1)$, and when plotting $y - lfloor y rfloor, y in mathbb{R}$ you get a bunch of line segments from $(n,n)$ to $(n+1,n+1)$. Thus your question now becomes : what happens when sampling the latter plot at discrete values of $y$ ?
$endgroup$
– reuns
Dec 24 '18 at 6:01












$begingroup$
Why is the slope changing from positive for Pi to negative for e? Furthermore, the pattern is filled from the bottom right to up-right, then shift right, goes down, etc...Lines only appear if you plot a lot of points, and points on the line do not correspond to the successive value of n.
$endgroup$
– Shaktyai
Dec 24 '18 at 11:27




$begingroup$
Why is the slope changing from positive for Pi to negative for e? Furthermore, the pattern is filled from the bottom right to up-right, then shift right, goes down, etc...Lines only appear if you plot a lot of points, and points on the line do not correspond to the successive value of n.
$endgroup$
– Shaktyai
Dec 24 '18 at 11:27










0






active

oldest

votes












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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3050943%2fplotting-the-remainder-rn-x-as-a-function-of-n%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
















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3050943%2fplotting-the-remainder-rn-x-as-a-function-of-n%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Plaza Victoria

In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...