  We introduce a function of the density of states for periodic Jacobi matrices
on trees and prove a useful formula for it. This allows new, streamlined proofs
of the gap labeling and Aomoto index theorems. We prove a version of this new
formula for the Anderson model on trees.
