OFFSET
1,2
COMMENTS
A permutation of the positive integers. See the note at A183079.
LINKS
FORMULA
Let L(n)=floor(n*r), U(n)=floor(n*s), where r=4-sqrt(5) and s=r/(r-1).
The tree-array T(n,k) is then given by rows:
T(0,0) = 1; T(1,0) = 2; T(n,2j) = L(T(n-1),j); T(n,2j+1) = U(T(n-1),j);
for j=0,1,...,2^(n-1)-1, n>=2.
EXAMPLE
Top 5 rows:
1
2
3 4
5 6 7 9
8 11 10 13 12 16 15 20
MATHEMATICA
a = {1, 2}; row = {a[[-1]]}; r = 4 - Sqrt[5]; s = r/(r - 1); Do[a = Join[a, row = Flatten[{Floor[#*{r, s}]} & /@ row]], {n, 5}]; a (* Ivan Neretin, Nov 09 2015 *)
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Clark Kimberling, Dec 23 2010
STATUS
approved