Computing the first few terms of this sequence gives a1=2, a2=25, a3=310, and a4=417, so it appears that an=n+n1. Indeed, this is correct, because the recurrence relation is satisfied:
(n−1)+1an−1+1=nn−1+n−11+1=1+n(n−1)1=n−1n−1+n−11=n−1an−1
Then
n=1∑100an2=n=1∑100(n2+2+n21)=6100⋅101⋅201+200+r=62030100+1200+r=338,550+r,
where r=∑n=1100n21. But by a telescoping sum argument,
1<r<1+n=2∑100n(n−1)1=2−1001<2.
Thus ∑n=1100an2 is between 338,551 and 338,552, and the requested greatest integer is 338,551.