Define the function f:N>1→N>1 such that f(x) is the greatest prime factor of x. A sequence of positive integers {an} satisfies a1=M>1 and
an+1={an−f(an)an+kif an is composite.otherwise.
Show that for any positive integers M,k, the sequence {an} is bounded.(TAN768092100853)