Pave Gregor 16. ( 18. september 1765 ? 1. juni 1846 ) var pave fra ar 1831 , hvor han blev valgt , frem til sin død i 1846 .