Infinite divisibility of Smith matrices