Thread: ~~Time Number Theory~

  1. #16
    Banned nickname_changed's Avatar
    Join Date
    Feb 2003
    Location
    Australia
    Posts
    986
    Seems any numbers that add up to 20 dont work out.

    11:09
    1 + 1 + 0 + 9 = 11
    11 + 9 = 20
    2 + 0 = 2

    What if they are higher than 20?
    12:09
    1 + 2 + 0 + 9 = 12
    12 + 09 = 21
    2 + 1 = 3

    What about 22
    12:10
    12+10 = 22, 2+2 = 4
    1 + 2 + 1 + 0 = 4

    So it seems anything thats 20>21 doesn't work out that way.

  2. #17
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Originally posted by stovellp
    12:08

    1 + 2 + 0 + 8 = 11
    12 + 08 = 20
    2 + 0 = 2

    Doesn't work out.....
    Umm...
    1 + 2 + 0 + 8 = 11
    1 + 1 = 2
    12 + 08 = 20
    2 + 0 = 2
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  3. #18
    Banned nickname_changed's Avatar
    Join Date
    Feb 2003
    Location
    Australia
    Posts
    986
    But thats doing it differently. The first example he gave only split the second number (the 12+06) but didn't split the first number (1+2+0+6).

  4. #19
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    OK, here's a proof that I made (I had nothing to do; I had to shut down the computer due to a thunderstorm )
    It proves that King Zoolerius ther ory is correct for any two number os any length in any base.

    S(X) is the digit sum of X
    B is the base

    If X is a number of length n in base B, X can be written as
    X = B^0 * x0 + B^1 * x1 + ... + B^n * xn
    then S(X) is calculated as follows
    S(X) = S(x0+x1+...+xn) if X >= B (*)
    S(X) = X if X<B


    Now, if we choose two arbitrary numbers X and Y, if King Zoolerius' theory is correct, then:
    S(X+Y) = S(x0+x1+...+xn + y0+y1+...+yn)

    S(X+Y) = S[ B^0*(x0+y0) + B^1*(x1+y1) + ... + B^n*(xn+yn) ]

    but we earlier concluded (*) that this could we written as
    S(x0+y0+x1+y1+...+xn+yn)which is just what we was going to show.


    This has obviously nothing to do with base 10, here's an example with hexadecimal numbers:
    X = EF361AA
    Y = 518204B
    E+F+3+6+1+A+A + 5+1+8+2+0+4+B = 5A and 5+A = F
    EF361AA + 518204B = 140B81F5 and 1+4+0+B+8+1+F+5 = 2D and 2+D = F



    Originally posted by stovellp
    But thats doing it differently. The first example he gave only split the second number (the 12+06) but didn't split the first number (1+2+0+6).
    You cannot split a single digit (9), can you?
    You split every number larger than of equal to the current base.
    Last edited by Sang-drax; 09-21-2003 at 06:20 AM.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  5. #20
    Registered User
    Join Date
    Sep 2003
    Posts
    71
    Finally!, someone who supports and agrees with my theory!! I love you Sang-drax!!!
    Last edited by KingZoolerius66; 09-21-2003 at 09:57 AM.
    Name: Eric Lesnar
    Learning: C/C++, SDL, WinAPI, OpenGL, and Python
    Compiler: Dev-C++ 4.9.0
    Current Game Project: Acoznict

  6. #21
    Senior Member joshdick's Avatar
    Join Date
    Nov 2002
    Location
    Phildelphia, PA
    Posts
    1,146
    Huzzah, SangDrax. Good job.
    FAQ

    "The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs." -- Joseph Weizenbaum.

    "If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it." -- Richard Pattis.

  7. #22
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    Posts
    753
    I agreed with you, ok I was wrong about the base10 thing. But what I'm pointing out is that it has NOTHING to do with TIME, king zoolerius.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. adding a number to a number
    By bigmac(rexdale) in forum C Programming
    Replies: 11
    Last Post: 10-24-2007, 12:56 PM
  2. scanf oddities
    By robwhit in forum C Programming
    Replies: 5
    Last Post: 09-22-2007, 01:03 AM
  3. Learning Memory, Ins and Outs?
    By Zoiked in forum C Programming
    Replies: 1
    Last Post: 08-27-2007, 04:43 PM
  4. parsing a number
    By juancardenas in forum C Programming
    Replies: 1
    Last Post: 02-19-2003, 01:10 PM
  5. Random Number problem in number guessing game...
    By -leech- in forum Windows Programming
    Replies: 8
    Last Post: 01-15-2002, 05:00 PM