A074049 Tree generated by the Wythoff sequences: a permutation of the positive integers.
1, 2, 3, 5, 4, 7, 8, 13, 6, 10, 11, 18, 12, 20, 21, 34, 9, 15, 16, 26, 17, 28, 29, 47, 19, 31, 32, 52, 33, 54, 55, 89, 14, 23, 24, 39, 25, 41, 42, 68, 27, 44, 45, 73, 46, 75, 76, 123, 30, 49, 50, 81, 51, 83, 84, 136, 53, 86, 87, 141, 88, 143, 144, 233, 22, 36, 37
Offset: 1
Examples
First levels of the tree: ...................1 ...................2 ...........3.................5 .......4.......7........8........13 .....6..10...11..18....12..20...21..34
Links
Programs
-
Mathematica
a = {1, 2}; row = {a[[-1]]}; r = GoldenRatio; s = r/(r - 1); Do[a = Join[a, row = Flatten[{Floor[#*{r, s}]} & /@ row]], {n, 5}]; a (* Ivan Neretin, Nov 09 2015 *)
Formula
Array T(n, k) by rows: T(0, 0)=1; T(1, 0)=2;
T(n, 2j) = floor(tau*T(n-1, j));
T(n, 2j+1) = floor((tau+1)*T(n-1, j))
for j=0,1,...,2^(n-1)-1, n>=2.
Extensions
Extended by Clark Kimberling, Dec 23 2010
Comments