The recurrence rearranges to
an=1+nn−1(an−1+1). Computing early terms
2,25,310,417,… suggests
an=n+n1. This follows by induction: substituting
an−1=n−1+n−11 into the recurrence gives
an=1+nn−1(n+n−11) =n+n1. Then
an2=n2+2+n21, so
n=1∑100an2=n=1∑100n2+200+n=1∑100n21=338350+200+S, where
S>1 and
S<1+∫1∞x−2dx=2. Hence the sum is between
338551 and
338552, and its floor is
338551. Thus, the correct answer is
B.