We compute the Hausdorff and Minkowski dimension of subsets of the symbolic space Σm = {0, ..., m−1}N that are invariant under multiplication by integers. The results apply to the sets {x ∈ Σm : ∀ k, xkx2k · · ·xnk = 0}, where n ≥ 3. We prove that for such sets, the Hausdorff and Minkowski dimensions typically differ.