Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Random trivia

  1. #1
    Join Date
    Jul 2006
    Posts
    16,486
    Blog Entries
    75
    Rep Power
    143

    Random trivia

    100! has 158 digits, and ends in 24 0's.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Nov 2009
    Location
    I seem to be lost...
    Posts
    1,566
    Blog Entries
    1
    Rep Power
    22

    Re: Random trivia

    Is this the answer? 93326215443944152681699238856266700490715968264381
    62146859296389521759999322991560894146397615651828
    62536979208272237582511852109168640000000000000000
    00000000
    Knowledge: Intermediate C#, Beginner AS3, HTML, CSS, Binary, Hex, Octal.
    Science is only an educated theory, which we cannot disprove.

  4. #3
    Join Date
    Jul 2006
    Posts
    16,486
    Blog Entries
    75
    Rep Power
    143

    Re: Random trivia

    Yes.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  5. #4
    Join Date
    Nov 2009
    Location
    I seem to be lost...
    Posts
    1,566
    Blog Entries
    1
    Rep Power
    22

    Re: Random trivia

    Cool.
    Knowledge: Intermediate C#, Beginner AS3, HTML, CSS, Binary, Hex, Octal.
    Science is only an educated theory, which we cannot disprove.

  6. #5
    Join Date
    Nov 2009
    Location
    I seem to be lost...
    Posts
    1,566
    Blog Entries
    1
    Rep Power
    22

    Re: Random trivia

    OK how many different combination's can a Rubiks Cube have?
    Knowledge: Intermediate C#, Beginner AS3, HTML, CSS, Binary, Hex, Octal.
    Science is only an educated theory, which we cannot disprove.

  7. #6
    Join Date
    Jul 2009
    Location
    Santa Clarita, CA
    Posts
    2,111
    Blog Entries
    47
    Rep Power
    31

    Re: Random trivia

    Here's a program to prove what WingedPanther said in Haskell:
    Code:
    main = do
        putStrLn (show $ (\x -> (x, numberOfDigits x, zerosOnEnd x)) $ factorialList !! 100)
    
    factorialList = 1 : 1 : [x * y | (x, y) <- zip [2..] (tail factorialList)]
    
    numberOfDigits :: (Show a) => a -> Int
    numberOfDigits = length . show
    
    zerosOnEnd :: (Show a) => a -> Int
    zerosOnEnd = length . takeWhile (== '0') . reverse . show
    Wow I changed my sig!

  8. #7
    Join Date
    Jul 2006
    Posts
    16,486
    Blog Entries
    75
    Rep Power
    143

    Re: Random trivia

    Quote Originally Posted by thegamemaker View Post
    OK how many different combination's can a Rubiks Cube have?
    Do you want all theoretically possible combinations, or just the ones possible through rotations of the cube?

    @Zeke: I just typed it in on my new toy: an HP 50g calculator
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  9. #8
    Join Date
    Nov 2009
    Location
    I seem to be lost...
    Posts
    1,566
    Blog Entries
    1
    Rep Power
    22

    Re: Random trivia

    Do you want all theoretically possible combinations, or just the ones possible through rotations of the cube?
    Just the ones possible through the rotations of the cube.
    Knowledge: Intermediate C#, Beginner AS3, HTML, CSS, Binary, Hex, Octal.
    Science is only an educated theory, which we cannot disprove.

  10. #9
    Join Date
    Jul 2006
    Posts
    16,486
    Blog Entries
    75
    Rep Power
    143

    Re: Random trivia

    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  11. #10
    Join Date
    Nov 2009
    Location
    I seem to be lost...
    Posts
    1,566
    Blog Entries
    1
    Rep Power
    22

    Re: Random trivia

    Correct.
    Knowledge: Intermediate C#, Beginner AS3, HTML, CSS, Binary, Hex, Octal.
    Science is only an educated theory, which we cannot disprove.

Closed Thread
Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Using a random function to generate another random funtion
    By Roger in forum General Programming
    Replies: 11
    Last Post: 08-23-2010, 08:07 AM
  2. "random" number generator is not random?
    By schwza in forum PHP Development
    Replies: 1
    Last Post: 06-04-2010, 01:58 AM
  3. What is random?
    By nicckk in forum The Lounge
    Replies: 26
    Last Post: 03-21-2009, 01:22 AM
  4. Random.. not actually random
    By TcM in forum Programming Theory
    Replies: 30
    Last Post: 01-30-2009, 07:50 PM
  5. Need Help: Trivia Program using Menus and Validating Input
    By Nollen in forum Visual Basic Programming
    Replies: 3
    Last Post: 11-01-2007, 11:13 AM

Tags for this Thread

Bookmarks

Posting Permissions

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