sentences:  He was Mayor of Albany from 1851 to 1854, from 1856 to 1860, and from 1862 to 1866.Perry was elected as a Democrat to the 42nd and 43rd United States Congresses, holding office from March 4, 1871, to March 3, 1875.He died in Albany, New York, May 17, 1881.