This is probably something stupid and for some reason I can't see it, but let's say you are taking the sum of the first $10^{i}$ squares. If $i=1$ we get $385$,$i=2$ we get $338350$, $i=3$ we get $333833500$ ... the obvious pattern for the digits is $i$ three's, 1 eight, $i-1$ three's, 1 five, and $i-1$ zeros.
I couldn't see why this should emerge, I tried manipulating the standard sum-of-squares formula - $(n/6)(n+1)(2n+1)$ - and just let $n=10^{i}$ but it didn't build any understanding for me.