Let c be a nonnegative integer, and define an=n2+c (for n≥1). Define dn as the greatest common divisor of an and an+1.
(a) Suppose that c=0. Show that dn=1, ∀n≥1.
(b) Suppose that c=1. Show that dn∈{1,5}, ∀n≥1.
(c) Show that dn≤4c+1, ∀n≥1. algorithmgreatest common divisornumber theoryEuclidean algorithm