Square Numbers' Sequence

The square numbers starting at 1 are written in a row after the decimal point: N=0.149162536... What is the 100th digit of the sequence?


The answer is 9.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Timothy Wong
Apr 26, 2014

1-digit: 1 2 1^2 , 2 2 2^2 , 3 2 3^2 = 3 3 digits

2-digits: 4 2 4^2 , 5 2 5^2 , ... 9 2 9^2 = 6 × 2 = 12 6 \times 2=12 digits

3-digits: 1 0 2 10^2 , 1 1 2 11^2 , ... 3 1 2 31^2 = 22 × 3 = 66 22 \times 3=66 digits

66 + 12 + 3 = 81 66+12+3=81 digits, 100 81 = 19 100-81=19 digits

19th digit after 3 1 2 31^2 is the 3rd digit of 3 6 2 = 1296 36^2=1296

The final answer is 9.

David Holcer
Mar 17, 2015
1
2
3
4
string=''
for i in range(1,100):
    string+=str(i**2)
print string[99]

Python code, the cheap way ;)

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...