Jump to content
BrainDen.com - Brain Teasers
  • 0


Guest
 Share

Question

2 answers to this question

Recommended Posts

  • 0

[spoiler='Like superprismatic, we assume that the sample space is the set of 7 octal-digit perfect squares with no

leading zero.']A number N = n2 (with n integer) has 7 octal-digits with no leading zero if and only if N is in

[(1000000)8, (10000000)8) = [86, 87) = [218, 221).

This is equivalent to

n is in [29, 210√2) = [512, 1024√2)

or (since n is integer)

n is in [512, 1448].

We conclude that there are exactly 1448 - 512 + 1 = 937 such numbers N.

Now we shall see how many of those numbers have the stated form, that is,

n2 = N = a(1 + 8 + 82 + 84 + 85 +86) + b83 = (1 + 8 + 82)(1 + 84)a + 512b = 73*4097a + 512b (*)

where a and b belong to {0, ..., 7} and a is non zero.

From (*) we get a = n2 (mod 8) and since the only perfect squares (mod 8) are 0, 1 and 4 it follows that a = 1 or a = 4.

Substituting each of the 16 pairs (a, b) in {1, 4}x{0, ..., 7} into (*), the only one which gives a perfect square is (4, 1), in which case, N = (4441444)8 = 73*4097*4 + 512*1 = 10942.

Therefore, the probability is 1 / 937.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...