Svoboda | Graniru | BBC Russia | Golosameriki | Facebook
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A257242 Random Fibonacci tree defined with the pair(1,1). 1
1, 1, 0, 2, 1, 1, 1, 3, 1, 1, 1, 1, 1, 3, 1, 5, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 2, 4, 2, 4, 2, 8, 1, 1, 1, 3, 1, 1, 1, 3, 1, 1, 1, 3, 1, 1, 1, 3, 1, 1, 1, 3, 1, 5, 1, 7, 1, 3, 3, 5, 3, 7, 3, 13, 1, 1, 1, 1, 1, 3, 1, 5, 1, 1, 1, 1, 1, 3, 1, 5, 1, 1, 1, 1, 1, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
COMMENTS
"By the random Fibonacci tree of the pair (a,b) we mean the binary tree denoted by T(a,b) and defined in the following way: a is the root, b its only child; if x is the parent of y, then y has two children, which are x + y and abs(x-y)."
"The sequence of labels in the tree read in breadth-first order (1, 1, 0, 2, 1, 1, 1, 3, 1, 1, 1, 1, 1, 3, 1, 5. . . ), gives an example of a 2-regular sequence in the terminology given by Allouche and Shallit (see links)."
LINKS
J.-P. Allouche and J. Shallit, The ring of k-regular sequences, Theoretical Computer Sci., 98 (1992), 163-197.
J.-P. Allouche and J. Shallit, The ring of k-regular sequences, II, Theoret. Computer Sci., 307 (2003), 3-29.
B. Rittaud, On the Average Growth of Random Fibonacci Sequences, Journal of Integer Sequences, 10 (2007), Article 07.2.4.
EXAMPLE
[1];
[1];
[0, 2];
[1, 1, 1, 3];
[1, 1, 1, 1, 1, 3, 1, 5];
[0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 2, 4, 2, 4, 2, 8];
...
PROG
(PARI) lchild(a, b) = abs(b-a);
rchild(a, b) = b+a;
tablf(nn) = {print(prow = [1]); print(crow = [1]); nrow = vector(2); nrow[1] = lchild(prow[1], crow[1]); nrow[2] = rchild(prow[1], prow[1]); print(nrow); for (n=4, nn, prow = crow; crow = nrow; nrow = vector(4*#prow); inew = 0; ichild = 0; for (inode=1, #prow, node = prow[inode]; child = crow[ichild++]; nrow[inew++] = lchild(node, child); nrow[inew++] = rchild(node, child); child = crow[ichild++]; nrow[inew++] = lchild(node, child); nrow[inew++] = rchild(node, child); ); print(nrow); ); }
CROSSREFS
Cf. A257243.
Sequence in context: A318997 A355662 A069897 * A337908 A325789 A356352
KEYWORD
nonn,tabf
AUTHOR
Michel Marcus, Apr 19 2015
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 11 16:20 EDT 2024. Contains 375836 sequences. (Running on oeis4.)