Eulerian Trees

Author of Mathematica Notebook: Luis A Medina

Calling the package

<<EulerianTrees`

Examples of complete Eulerian p-adic Trees.

p=2, k=4.  Level 8

EulerianTree[2,4,8]

p=2, k=5.  Level 8

EulerianTree[2,5,8]

p=3, k=5.  Level 8

EulerianTree[3,5,8]

p=5, k=4.  Level 7

EulerianTree[5,4,7]

p=7, k=2.  Level 6

EulerianTree[7,2,6]

p=7, k=6.  Level 4

EulerianTree[7,6,4]

Examples of branches of the Eulerian p-adic Tree.

As you can seee, these trees can grow in size quite rapidly.  As a result, they can become not useful.  The next examples show part of the tree.  In particular, it shows the tree down after a specified node.

p=7, k=6.  Branch corresponding to the vertex (Subscript[v, 5,1]).

The tree when p=7 and k=6 is quite big.  However, if we can still study this tree given a specified node.

EulerianTreeNode[{5,1},7,6,5]

p=11, k=6.  Branch corresponding to the vertex (Subscript[v, 6,1]).

EulerianTreeNode[{6,1},11,6,4]