We consider iterations of integer-valued functions ϕ, which have no fixed points in the domain of positive integers. We define a local function ϕn, which is a sub-function of ϕ being restricted to the subdomain {0,...,n}. The iterations of ϕn can be described by a certain n×n sparse matrix Mn and its powers. The determinant of the related n×n matrix M^n=I−Mn, where I is the identity matrix, acts as an indicator, whether the iterations of the local function ϕn enter a cycle or not. If ϕn has no cycle, then detM^n=1 and the structure of the inverse M^n−1 can be characterized. Subsequently, we give applications to compute the inverse M^n−1 for some special functions. At the end, we discuss the results in connection with the 3x+1 and related problems.