An ideal of a commutative ring R is said to be finitely generated if there exist elements a1,…,an in R such that every element r in the ideal can be written as a1r1+⋯+anrn for some r1,…,rn in R. Prove that R satisfies the ascending chain condition if and only if every ideal of R is finitely generated.