All the positive perfect squares 1, 4, 9, 16, 25.... are written in strictly ascending order of magnitude and without the commas and spaces, resulting in the following infinite string:
Reading left to right, what is the 2010th digit in the above pattern?
I used the following BASIC code to verify what Jer calculated and got the same result of 6:
YEAR = 2010
FOR i = 1 TO 1000
s$ = s$ + STR$(i^2)
IF LEN(s$) >= YEAR THEN GOTO [Stop]
PRINT MID$(s$, YEAR, 1)