Math

This is a discussion on Math within the General Chat board part of the General category; Is the answer 4 and 13? edit: dang you ichsuger, i just read your post and you have the same ...

Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11
    Pan's Avatar
    Pan
    Pan is offline Former D3scene Olympian
    Array
    Join Date
    Jul 2008
    Location
    north, south, east, west, of you
    Posts
    637
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    13
    Reputation
    884
    Is the answer 4 and 13?



    edit: dang you ichsuger, i just read your post and you have the same answer

    edit edit: after a little google search (to see if my answer was right) i found this hard math riddle: two numbers between 1 and 99 - TestMagic Forums
    on page 2 i found something that surprised me...

    ^^^^^^^^^^^^^^
    ichsuger is a cheater!!!

    edit edit edit:
    wha ? oh ! , forgot im so bad at math it hurts, but im good at finding stuff on the internet !
    I just failed so bad it hurts
    Last edited by Pan; 11-28-2008 at 07:56 PM.


    I'M BAAACKKK

  2. #12
    ichsuger is offline Banned User Array
    Join Date
    Feb 2008
    Location
    Denmark
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    465
    Quote Originally Posted by Pan View Post
    Is the answer 4 and 13?

    edit: dang you ichsuger, i just read your post and you have the same answer

    edit edit: after a little google search (to see if my answer was right) i found this hard math riddle: two numbers between 1 and 99 - TestMagic Forums
    on page 2 i found something that surprised me...

    ^^^^^^^^^^^^^^
    ichsuger is a cheater!!!

    edit edit edit:
    I just failed so bad it hurts
    But you took it like a man!

  3. #13
    Pan's Avatar
    Pan
    Pan is offline Former D3scene Olympian
    Array
    Join Date
    Jul 2008
    Location
    north, south, east, west, of you
    Posts
    637
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    13
    Reputation
    884

    Me = Failz


    I'M BAAACKKK

  4. #14
    dog_keeper's Avatar
    dog_keeper is offline Teh Sexy One.
    Array
    Join Date
    Dec 2007
    Posts
    1,998
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    16
    Reputation
    1264
    i found this.. someone did some work 0.0 same page as pan found it


    Code:
    Sub main()
    
        For b = 2 To 98
            For a = 2 To 98
                If a + b < 100 Then
    '               Debug.Print a; b,
                    If Not P_knows(a * b) Then
    '                   Debug.Print "P knows not",
                        If S_knows_that(a + b) Then
    '                       Debug.Print "S knows that",
                            If P_knows_now(a * b) Then
    '                           Debug.Print "P knows now",
                                If S_knows_now(a + b) Then
    '                               Debug.Print "S knows now",
                                    MsgBox Format(a) + ", " + Format(b)
            End If: End If: End If: End If: End If
    '       Debug.Print
    '       DoEvents
        Next a, b
        
    End Sub
    
    Function P_knows(Product As Integer)                    'Does P know the numbers?
    
        t = 0
        
        For I = 2 To Sqr(Product)                           'Sqr to exclude the same numbers (e.g. 8 = 2 * 4 and 4 * 2)
            If Product Mod I = 0 Then t = t + 1             'P doesn't know if you can divide it by more then one number
            If t > 1 Then Exit For                          'no need to check futher
        Next
        
        P_knows = t = 1
        
    End Function
    
    Function S_knows_that(Sum)                              'Does S know that P can't know the numbers?
    
        For I = 2 To Sum  2                                ' 2 to exclude the same numbers (e.g. 17 = 2 + 15 and 15 + 2)
            If P_knows(i * (Sum - i)) Then                  'for all the possible sums P should not be able to know the combination
                S_knows_that = False
                Exit Function
            End If
        Next i
        
        S_knows_that = True
            
    End Function
    
    Function P_knows_now(Product)                           'Does P know the two numbers after S knows that P can't know them?
    
        t = 0
    
        For I = 2 To Sqr(Product)
            If Product Mod I = 0 Then                       'P can only say that if there is just one combination
                If I + (Product  i) < 100 Then If S_knows_that(i + (Product  i)) Then t = t + 1
                If t > 1 Then Exit For                      'no need to check futher
            End If
        Next i
        
        P_knows_now = t = 1
                
    End Function
    
    Function S_knows_now(Sum)                               'Does S know the two numbers too after P knows them?
    
        t = 0
    
        For I = 2 To Sum  2                                'S can only say that if there is just one combination
            If P_knows_now(i * (Sum - i)) Then t = t + 1
            If t > 1 Then Exit For                          'no need to check futher
        Next i
        
        S_knows_now = t = 1
                
    End Function
    http://i34.tinypic.com/2j1o715.jpg
    By eZ]aCx of D3Scene.com

  5. #15
    Bat's Avatar
    Bat
    Bat is offline Premium Member
    Array
    Join Date
    Feb 2007
    Location
    Norway :P
    Posts
    736
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    13
    Reputation
    618
    Cheatz0rs=(

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Roll High
    By devindagrate in forum WoW Guides
    Replies: 10
    Last Post: 04-21-2009, 02:51 AM
  2. Simple Math Test
    By dog_keeper in forum General Chat
    Replies: 8
    Last Post: 06-05-2008, 04:29 PM
  3. help hacking my math homework
    By 35yeros in forum Development
    Replies: 13
    Last Post: 06-03-2008, 07:19 PM
  4. What you know about math?
    By Toxik in forum General Chat
    Replies: 9
    Last Post: 05-16-2007, 05:19 PM

Posting Permissions

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