Results 1 to 11 of 11

Thread: My regular puzzle...

  1. #1

    Thread Starter
    Hyperactive Member DavidHooper's Avatar
    Join Date
    Apr 2001
    Posts
    357

    My regular puzzle...

    Well I've been pretty busy recently and I haven't been on the board as much as I would like - particularly to answer some of the questions recently posted.

    But anyway, I received this puzzle from someone the other day. Take a look:

    An absent-minded mathematician has been asked to call at a house in a street (in which the houses are numbered consecutively from 1 upwards in the usual fashion), only he has forgotten its number. What he does remember, though, is that the sum of the house numbers before this house happens to be equal to the sum of the house numbers after this house, and also that the house he is looking for has a two-digit number.

    What is the number of the house he is looking for? And how many houses are there in the street?

    Only pencil and paper are permitted.
    There are 10 types of people in the world - those that understand binary, and those that don't.

  2. #2
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397
    I don't see an easy way around it yet, but ultimately it comes down to plugging various values of k, 9 < k < 100, k being the address, in the following equation for n, where n is the number of houses on the street.



    I do know the answer, but you didn't allow calculaters, so I won't say a word.

    But, let me play with the Radical a little more, see if I can factor it, chunk it up a little.

  3. #3
    Addicted Member
    Join Date
    Feb 2001
    Posts
    198
    I cheated as well, used excel.

    An interesting puzzle, if the mathematician is unsure whether it was two or three digits in the house number then I can offer him just one other address to check.

  4. #4

    Thread Starter
    Hyperactive Member DavidHooper's Avatar
    Join Date
    Apr 2001
    Posts
    357
    Good work NotLKH, you've got the right equation but there is a big shortcut. Try seeing what happens if K is made up of two factors p and q so n=pq.

    I'll post the solution soon if no-one finishes it off.

    Starman, it'd be interesting to find a rough relationship between number of digits and possible solutions?
    There are 10 types of people in the world - those that understand binary, and those that don't.

  5. #5
    Addicted Member
    Join Date
    Feb 2001
    Posts
    198
    2 for 4 digits

    1 about half way up the fives and then excel ran out of lines - I didn't go any further.

    The uniqueness is interesting and I'm looking forward to your solution.

  6. #6
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397
    Finished!
    With only Pen & Paper,
    the Address = 35, and there are 49 houses on the street.

    Created a proof for the generic equation seen in the beginning of this image, and the rest explains the answer.
    Attached Images Attached Images  

  7. #7

  8. #8
    Hyperactive Member thinktank2's Avatar
    Join Date
    Nov 2001
    Location
    Arctic
    Posts
    272

    Why all the trouble ??

    As NotLKH put it...

    N(N+1) / 2 = K^2

    is the derived condition.

    Now since N and K are both integers and N(N+1)/2 is a perfect square...

    Either N or (N+1) must be Perfect square.

    So the easiest way to find N and K

    is choose the perfect squares ie.. 4,9,16,25,36,49,64,81...

    add 1 or subtract 1 and multiply with it and divide it by 2, if it is a perfect square you got a valid door number.

    Say suppose you chose 9, then find out

    if [(9-1)*9 / 2] or [9*(9+1)/2] is a perfect square...

    in this case (8 * 9)/2 = 36 is a perfect square.

    so Door number is Sqrt(36) = 6


    Next if we chose 16

    Neither of ((16-1)*16)/2 and (16* (16+1) ) /2 is a perfect square..so we skip them...


    When we choose 49

    49 * (49+1) / 2 = 1225 = 35^2 is perfect square

    so we have a valid door number = 35 (2-digit)


    If you need to calculate more ..here is the vb code

    VB Code:
    1. Dim i As Long
    2. Dim pre As Double
    3. Dim pos As Double
    4.  
    5. For i = 2 To 100000
    6.     pre = Sqr(((i ^ 2) - 1) * (i ^ 2) / 2)
    7.     pos = Sqr((i ^ 2) * ((i ^ 2) + 1) / 2)
    8.     If pre = Int(pre) Then
    9.         Debug.Print "Door Number:" & pre & " , No. of Houses: " & (i ^ 2) - 1
    10.     ElseIf pos = Int(pos) Then
    11.         Debug.Print "Door Number:" & pos & " No. of Houses: " & i ^ 2
    12.     End If
    13. Next

    Have fun !!

  9. #9
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397
    TT,
    Heres one for you,
    using only paper and pen, with a simple calculator, but no programming,

    Find the first 5 digit whole value of Y such that X is a whole value, where X and Y satisfy
    45X^2 + 4 = Y^2

    -Lou

  10. #10

    Thread Starter
    Hyperactive Member DavidHooper's Avatar
    Join Date
    Apr 2001
    Posts
    357
    Well done both NotLKH and TT, I'm really impressed! Can I have a go at that prob NotLKH?
    There are 10 types of people in the world - those that understand binary, and those that don't.

  11. #11

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