Generalizations of an algorithm of Sebastião e Silva