All ten digits

Logic Level 4

If we square a 5 digit integer P Q Q Q Q \overline{PQQQQ} less than 90000, it will be 1 more than a 10-digit integer which contains each of the digits 0, 1, 2, ... , 9. What is this 5 digit integer?


The answer is 85555.

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.

1 solution

Kenny Lau
Jul 22, 2015

Actually there are two solutions: 8555 5 2 = 7319658024 + 1 85555^2=7319658024+1 and 9777 7 2 = 9560341728 + 1 97777^2=9560341728+1 .

I used a java program to generate all squares of such form and looked at them one by one. It was not a tedious task since there is only 90 90 entries.

The code and the list generated is here: http://pastebin.com/N959TE5u


Unrelated but important info:

  • Never trust any links that do not link back into this website.
  • To avoid clicking links that do not lead to what they write, for example: http://a-normal-website.com/ , copy the text of the link and paste it.
  • Use mywot to check the website's safety (don't just click on this website also!)

The number is less than 9000. So only one of these solutions is valid.

Harshita Sahijwani - 5 years, 10 months ago

Log in to reply

Haha I wrote that before the question was modified.

Kenny Lau - 5 years, 10 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...