This Infinite Random Sequence?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I was working on Random sequence and LCG's when I found this recursive algorithm:




$$X_n+1=[sqrtn(X_n+1)]%10$$




Where, $[x]$ is the floor function.



When executed with $X_0=0$, the sequence turns out to be:




0,0,1,2,5,9,5,4,5,9,8,0,1,6,4,1,1,2,9,6,0,0,1,1,2,1,5,3,4,2,0,0,1,5,0,4,8,8,1,3,8,0,1,9,5,7,7,0,7........




I tested it and found out that there is no repition in this sequence till $X_10000$

Is it a better alternative to LCG's?







share|cite|improve this question





















  • A quick test reveals that the mean of your sequence deviates significantly from $4.5$ (I stopped watching after $200times 10^6$ numbers $X_n,$ finally the mean values is about $4.19dots 4.21.$ What are your values?
    – gammatester
    Aug 6 at 9:46











  • i also got values around $4.405702381885952 $ at $10^8$ numbers
    – Maths textbook
    Aug 6 at 9:57










  • Also I get another sequence: $0,0,1,2,3dots$. $x_4$ is not $5$ because $x_4 = [sqrt3(2+1)] % 10 = 3$
    – gammatester
    Aug 6 at 10:09










  • Better in what sense? It isn't clear what you're asking.
    – Cameron Buie
    Aug 6 at 11:25














up vote
0
down vote

favorite












I was working on Random sequence and LCG's when I found this recursive algorithm:




$$X_n+1=[sqrtn(X_n+1)]%10$$




Where, $[x]$ is the floor function.



When executed with $X_0=0$, the sequence turns out to be:




0,0,1,2,5,9,5,4,5,9,8,0,1,6,4,1,1,2,9,6,0,0,1,1,2,1,5,3,4,2,0,0,1,5,0,4,8,8,1,3,8,0,1,9,5,7,7,0,7........




I tested it and found out that there is no repition in this sequence till $X_10000$

Is it a better alternative to LCG's?







share|cite|improve this question





















  • A quick test reveals that the mean of your sequence deviates significantly from $4.5$ (I stopped watching after $200times 10^6$ numbers $X_n,$ finally the mean values is about $4.19dots 4.21.$ What are your values?
    – gammatester
    Aug 6 at 9:46











  • i also got values around $4.405702381885952 $ at $10^8$ numbers
    – Maths textbook
    Aug 6 at 9:57










  • Also I get another sequence: $0,0,1,2,3dots$. $x_4$ is not $5$ because $x_4 = [sqrt3(2+1)] % 10 = 3$
    – gammatester
    Aug 6 at 10:09










  • Better in what sense? It isn't clear what you're asking.
    – Cameron Buie
    Aug 6 at 11:25












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I was working on Random sequence and LCG's when I found this recursive algorithm:




$$X_n+1=[sqrtn(X_n+1)]%10$$




Where, $[x]$ is the floor function.



When executed with $X_0=0$, the sequence turns out to be:




0,0,1,2,5,9,5,4,5,9,8,0,1,6,4,1,1,2,9,6,0,0,1,1,2,1,5,3,4,2,0,0,1,5,0,4,8,8,1,3,8,0,1,9,5,7,7,0,7........




I tested it and found out that there is no repition in this sequence till $X_10000$

Is it a better alternative to LCG's?







share|cite|improve this question













I was working on Random sequence and LCG's when I found this recursive algorithm:




$$X_n+1=[sqrtn(X_n+1)]%10$$




Where, $[x]$ is the floor function.



When executed with $X_0=0$, the sequence turns out to be:




0,0,1,2,5,9,5,4,5,9,8,0,1,6,4,1,1,2,9,6,0,0,1,1,2,1,5,3,4,2,0,0,1,5,0,4,8,8,1,3,8,0,1,9,5,7,7,0,7........




I tested it and found out that there is no repition in this sequence till $X_10000$

Is it a better alternative to LCG's?









share|cite|improve this question












share|cite|improve this question




share|cite|improve this question








edited Aug 6 at 11:22









Cameron Buie

83.5k771153




83.5k771153









asked Aug 6 at 9:21









Maths textbook

526




526











  • A quick test reveals that the mean of your sequence deviates significantly from $4.5$ (I stopped watching after $200times 10^6$ numbers $X_n,$ finally the mean values is about $4.19dots 4.21.$ What are your values?
    – gammatester
    Aug 6 at 9:46











  • i also got values around $4.405702381885952 $ at $10^8$ numbers
    – Maths textbook
    Aug 6 at 9:57










  • Also I get another sequence: $0,0,1,2,3dots$. $x_4$ is not $5$ because $x_4 = [sqrt3(2+1)] % 10 = 3$
    – gammatester
    Aug 6 at 10:09










  • Better in what sense? It isn't clear what you're asking.
    – Cameron Buie
    Aug 6 at 11:25
















  • A quick test reveals that the mean of your sequence deviates significantly from $4.5$ (I stopped watching after $200times 10^6$ numbers $X_n,$ finally the mean values is about $4.19dots 4.21.$ What are your values?
    – gammatester
    Aug 6 at 9:46











  • i also got values around $4.405702381885952 $ at $10^8$ numbers
    – Maths textbook
    Aug 6 at 9:57










  • Also I get another sequence: $0,0,1,2,3dots$. $x_4$ is not $5$ because $x_4 = [sqrt3(2+1)] % 10 = 3$
    – gammatester
    Aug 6 at 10:09










  • Better in what sense? It isn't clear what you're asking.
    – Cameron Buie
    Aug 6 at 11:25















A quick test reveals that the mean of your sequence deviates significantly from $4.5$ (I stopped watching after $200times 10^6$ numbers $X_n,$ finally the mean values is about $4.19dots 4.21.$ What are your values?
– gammatester
Aug 6 at 9:46





A quick test reveals that the mean of your sequence deviates significantly from $4.5$ (I stopped watching after $200times 10^6$ numbers $X_n,$ finally the mean values is about $4.19dots 4.21.$ What are your values?
– gammatester
Aug 6 at 9:46













i also got values around $4.405702381885952 $ at $10^8$ numbers
– Maths textbook
Aug 6 at 9:57




i also got values around $4.405702381885952 $ at $10^8$ numbers
– Maths textbook
Aug 6 at 9:57












Also I get another sequence: $0,0,1,2,3dots$. $x_4$ is not $5$ because $x_4 = [sqrt3(2+1)] % 10 = 3$
– gammatester
Aug 6 at 10:09




Also I get another sequence: $0,0,1,2,3dots$. $x_4$ is not $5$ because $x_4 = [sqrt3(2+1)] % 10 = 3$
– gammatester
Aug 6 at 10:09












Better in what sense? It isn't clear what you're asking.
– Cameron Buie
Aug 6 at 11:25




Better in what sense? It isn't clear what you're asking.
– Cameron Buie
Aug 6 at 11:25















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',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
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%2f2873725%2fthis-infinite-random-sequence%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2873725%2fthis-infinite-random-sequence%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

What is the equation of a 3D cone with generalised tilt?

Color the edges and diagonals of a regular polygon

Relationship between determinant of matrix and determinant of adjoint?