Results 1 to 7 of 7

Thread: Missing Numbers

  1. #1

    Thread Starter
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Missing Numbers

    I am stumped on my 13 year old borthers maths problem. How sad is that?


    x = a missing digit between 0 and 9

    √(1xx2x) = xx3

    I got this far:

    Code:
         xx3
    x    xx3
    -------
         xx9
    +   xxx0
       xxx00
    --------
      11x2x9
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  2. #2
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863

    Re: Missing Numbers

    Whow about 123 *123= 15129
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  3. #3

    Thread Starter
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Missing Numbers

    Quote Originally Posted by opus
    Whow about 123 *123= 15129
    Is that a guess or did you use a mathematical formula to work it out?
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  4. #4
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: Missing Numbers

    Dim i As Long

    For i = 103 To 993 Step 10
    If CStr(i * i) Like "1##2#" Then
    MsgBox "DONE: " & i
    End If
    Next i
    I don't live here any more.

  5. #5
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863

    Re: Missing Numbers

    You found the last digit (3).
    Since the result is less than 20000, and Sqr(20000) is 141,....., the number has to 103,113,123 or 133. and for those I did try and error to find the one that looks like 1xx2x.
    Not much math needed here.
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  6. #6
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863

    Re: Missing Numbers

    You made me curious.

    Instead of using xx3 * xx3 use a different Var for each digit, like:

    ab3 * ab3
    the result would be:
    Code:
                   a      b      3
    *              a      b      3
    ________________________
                 (3a)   (3b)    9   'each bracket makes one digit
                (ba) (bb)   (3b)    0
    +          (aa) (ba) (3b)     0      0
    _______________________
                (aa) (2ba)(....)(6b)      9   ' (..) stands for (3a +bb+3b)
    the 4th digit has to be a 2 , so b has to 2 (6*2=12) or 7 (6*7=42).
    If b would be 7 , the 2 digit would be 2*7*a, which is more than 10, so the first digit would be aa +1 ore more, and that is not possible, since it has to be a 1.
    so b is 2.
    Code:
                    a      2      3
    *              a      2      3
    ________________________
                   (3a)   6       9   'each bracket makes one digit
            (2a)   (4)   6       0
    +(aa) (2a)   (6)   0       0
    _______________________
      (aa) (4a) (....)(2)      9   ' (..) stands for (3a +bb+3b+1)
    Since the first digit is 1, a*a must be 1, that makes a=1
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  7. #7
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860

    Re: Missing Numbers

    Quote Originally Posted by visualAd
    I am stumped on my 13 year old borthers maths problem. How sad is that?


    x = a missing digit between 0 and 9

    √(1xx2x) = xx3

    I got this far:

    Code:
         xx3
    x    xx3
    -------
         xx9
    +   xxx0
       xxx00
    --------
      11x2x9
    √(1xx2x) = xx3
    √(10020 + 1101x) = 110x + 3
    10020 + 1101x = (110x + 3)^2
    10020 + 1101x = 12100x^2 + 330x + 9
    12100x^2 - 7971x - 10011 = 0

    x = (7971 +- √(7971^2 - 4*12100*-10011)) / (2*12100)

    or something like that
    Don't pay attention to this signature, it's contradictory.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width