Identify the number

Number Theory Level pending

Find a 4 digit natural number such that its square gives a 8 digit number with last 4 digits equal to the number taken...


The answer is 9376.

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

Brock Brown
Dec 26, 2014
1
2
3
4
5
6
7
8
9
def goal(x):
    if len(str(x**2)) == 8:
        if str(x**2).endswith(str(x)):
            return True
    return False
for i in xrange(1000,10000):
    if goal(i):
        print 'Answer:', i
        break

Tanishq Varshney
Dec 26, 2014

the last digit has to be 6 becoz only6* 6 gives 36(which has six at units place)

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...