Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. The Lounge
  3. Another Silly puzzle

Another Silly puzzle

Scheduled Pinned Locked Moved The Lounge
questioncom
51 Posts 19 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Chris Losinger

    Marc Clifton wrote:

    You mean they still don't know?

    this site[^] explains it pretty well, i think. but it's not the traditioinal Bernoulli's explanation (high pressure below, low pressure above). this one explains it as: The lift of a wing is proportional to the amount of air diverted down times the downward velocity of that air. so, some might know, but the rest of the world disagrees. Cleek | Image Toolkits | Thumbnail maker

    A Offline
    A Offline
    Andy Brummer
    wrote on last edited by
    #34

    It definitely makes more intuitive sense then the traditional description. You learn something new every day.


    I can imagine the sinking feeling one would have after ordering my book, only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon

    1 Reply Last reply
    0
    • B Bob Flynn

      Wjousts wrote:

      I'm sure this is some known sequence and there is some very clever and simple way to calculate it, but I'm not up to the challenge

      Actually there is no closed form equation for this series. Brute force is the only way. http://www.shef.ac.uk/pas/SOM104/series.pdf[^]

      R Offline
      R Offline
      Russell Morris
      wrote on last edited by
      #35

      Bob Flynn wrote:

      Brute force is the only way.

      From what I've been reading, ln(n) is a good approximation for the sum of this series computed with n terms. It'll be a bit of considering that the ln(n) approximates the harmonic series, which is the same as this series except for the addition term '1/1'.

      B 1 Reply Last reply
      0
      • R Russell Morris

        Bob Flynn wrote:

        Brute force is the only way.

        From what I've been reading, ln(n) is a good approximation for the sum of this series computed with n terms. It'll be a bit of considering that the ln(n) approximates the harmonic series, which is the same as this series except for the addition term '1/1'.

        B Offline
        B Offline
        Bob Flynn
        wrote on last edited by
        #36

        The approximation is good for characterization, but for the answer to the question "when does the series cross 100", an approximation will not provide the correct answer. It could be used to get an idea of how long it will take to do it by brute force - which is recommended because our little CPU's just might not have enough life expectancy to compute the result using brute force.

        1 Reply Last reply
        0
        • Richard Andrew x64R Richard Andrew x64

          The sum will never even reach the number 1, much less exceed 100. And the candle gets extinguished from the carbon dioxide in our breath. Rich ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸

          J Offline
          J Offline
          Jorgen Sigvardsson
          wrote on last edited by
          #37

          You're thinking about the "1/2 + 1/4 + 1/8 ..." series. It approaches 1. :)

          1 Reply Last reply
          0
          • R Raj Lal

            1/2 + 1/3 + 1/4 + 1/5 + 1/6 + 1/7 + 1/8 ...... When will the sum of this series exceed 100 ? Will it EVER ? For the thinkers, Why does a candle extinguishes when we blow on it? (Never paid attention to it, right?) Looks simple but it isn't ! * you are right, this guy has got nothing to do... but if you read this we are in the same boat --- My Unedited article^

            B Offline
            B Offline
            Bob Flynn
            wrote on last edited by
            #38

            is it 20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000?

            1 Reply Last reply
            0
            • C Chris Losinger

              it's very close to the Harmonic Series[^], it just starts with i=2, instead of i=1. Cleek | Image Toolkits | Thumbnail maker

              D Offline
              D Offline
              Dan Neely
              wrote on last edited by
              #39

              thanks. I knew I'd seen it. Back of the envelope time to hit 100, give or take an order of magnitude. Needs 200 terms in the orsene sequense. 200th term is a sum of 2^200 terms. 2^200 = 2*((2^10)^10) = 2*(10^3)^10 = 2*10^30 terms. Anyone trying to bruteforce it using floats will fail when sum + 1/n = sum due to precision limits, anyone using a scientific number class with arbitary decimal points will be at it for ~10^13 years assuming 1bn terms/sec.

              1 Reply Last reply
              0
              • R Russell Morris

                Jon Sagara wrote:

                e100?

                Wait - after working this a bit, I'm getting that e100 is a good approximation of the number of terms it would take for the sum of that series to get up to 100. Is that what you were indicating? If so, I apologize for my first 'correction' :-O From my musings, the above series is the Harmonic Series, but starting at k=2 (Chris Losinger has noted this already, it appears). In addition, ln(n) is a good approximation of this series' value at n. Therefore solving: ln(n) = 100 for n would approximate the number of terms in the series needed to get the sum of the series to 100. Solving this equation, I get: n = e100 which is what you originally wrote. Did you come to this conclusion in the same way I did? I hope I'm not making myself look silly - I'm 6 years away from my last math class. It's amazing how the details become so fuzzy after such a short time...

                S Offline
                S Offline
                Somanova420
                wrote on last edited by
                #40

                Wow, I like read that exact same page off a Google search.:laugh:

                R 1 Reply Last reply
                0
                • S Somanova420

                  Wow, I like read that exact same page off a Google search.:laugh:

                  R Offline
                  R Offline
                  Russell Morris
                  wrote on last edited by
                  #41

                  Somanova420 wrote:

                  Wow, I like read that exact same page off a Google search

                  I spent the first 20 minutes poking through Wolfram's mathweb stuff, trying to decide what type of series it was. It wasn't until I stumbled upon the Wikipedia page for series that it listed this series as the harmonic series, along with approximations. I got a solid A on this stuff in CalcIII back in college - now I'm looking at it through what seems to be foggy, frosted glass only a handful of years later :-O -- Russell Morris Morbo: "WINDMILLS DO NOT WORK THAT WAY!"

                  1 Reply Last reply
                  0
                  • C Chris Losinger

                    Nishant Sivakumar wrote:

                    That works on the vacuum principle too, eh?

                    a wing will create small pockets of (partial) vacuum as air moves around it. it's under debate as to whether this is the actual source of lift or not. Cleek | Image Toolkits | Thumbnail maker

                    P Offline
                    P Offline
                    Phil J Pearson
                    wrote on last edited by
                    #42

                    Chris Losinger wrote:

                    (partial) vacuum

                    My Physics teacher would have ranted at you! "Vacuum is a total absence of air. How can you have a partial total absence? You mean 'a pocket of lower air pressure'" Phil

                    C 1 Reply Last reply
                    0
                    • R Raj Lal

                      1/2 + 1/3 + 1/4 + 1/5 + 1/6 + 1/7 + 1/8 ...... When will the sum of this series exceed 100 ? Will it EVER ? For the thinkers, Why does a candle extinguishes when we blow on it? (Never paid attention to it, right?) Looks simple but it isn't ! * you are right, this guy has got nothing to do... but if you read this we are in the same boat --- My Unedited article^

                      M Offline
                      M Offline
                      Maxwell Chen
                      wrote on last edited by
                      #43

                      http://www.math.com/tables/expansion/power2.htm[^]


                      Maxwell Chen

                      B 1 Reply Last reply
                      0
                      • R Raj Lal

                        1/2 + 1/3 + 1/4 + 1/5 + 1/6 + 1/7 + 1/8 ...... When will the sum of this series exceed 100 ? Will it EVER ? For the thinkers, Why does a candle extinguishes when we blow on it? (Never paid attention to it, right?) Looks simple but it isn't ! * you are right, this guy has got nothing to do... but if you read this we are in the same boat --- My Unedited article^

                        M Offline
                        M Offline
                        Maxwell Chen
                        wrote on last edited by
                        #44

                        Summation applet[^]. 1) Click the [Applet] button, a popup window is seen. 2) Input 1/(n+1), 3) Click [Auto] button. :-D [Edit] Ouch! Overflow ... ;P [/Edit]


                        Maxwell Chen

                        1 Reply Last reply
                        0
                        • P Phil J Pearson

                          Chris Losinger wrote:

                          (partial) vacuum

                          My Physics teacher would have ranted at you! "Vacuum is a total absence of air. How can you have a partial total absence? You mean 'a pocket of lower air pressure'" Phil

                          C Offline
                          C Offline
                          Chris Losinger
                          wrote on last edited by
                          #45

                          Phil J Pearson wrote:

                          My Physics teacher would have ranted at you!

                          i would've ranted back. ;) Cleek | Image Toolkits | Thumbnail maker

                          1 Reply Last reply
                          0
                          • M Maxwell Chen

                            http://www.math.com/tables/expansion/power2.htm[^]


                            Maxwell Chen

                            B Offline
                            B Offline
                            Bob Flynn
                            wrote on last edited by
                            #46

                            That's not the answer to the question.

                            M 1 Reply Last reply
                            0
                            • B Bob Flynn

                              That's not the answer to the question.

                              M Offline
                              M Offline
                              Maxwell Chen
                              wrote on last edited by
                              #47

                              Bob Flynn wrote:

                              That's not the answer to the question.

                              It is! See the 1st raw in the table.


                              Maxwell Chen

                              B 1 Reply Last reply
                              0
                              • M Maxwell Chen

                                Bob Flynn wrote:

                                That's not the answer to the question.

                                It is! See the 1st raw in the table.


                                Maxwell Chen

                                B Offline
                                B Offline
                                Bob Flynn
                                wrote on last edited by
                                #48

                                Yes, I saw it. It said that the sum goes to infinity as n goes to infinity. But the question was when does the sum reach 100? If ever. You definitely got the "if ever part", but that left the much more difficult problem of what is the value of n when the sum equals 100.

                                D 1 Reply Last reply
                                0
                                • B Bob Flynn

                                  Yes, I saw it. It said that the sum goes to infinity as n goes to infinity. But the question was when does the sum reach 100? If ever. You definitely got the "if ever part", but that left the much more difficult problem of what is the value of n when the sum equals 100.

                                  D Offline
                                  D Offline
                                  Dan Neely
                                  wrote on last edited by
                                  #49

                                  I order of magnituded the eta for 100 here. Unless there's an analytical method getting a precise value is impossible since bruteforce isn't an option. http://www.codeproject.com/script/comments/forums.asp?msg=1480757&forumid=1159#xx1480757xx

                                  1 Reply Last reply
                                  0
                                  • N Nish Nishant

                                    Quartz... wrote:

                                    Why does a candle extinguishes when we blow on it?

                                    We blow the air away creating a small vacuum pocket and a fire cannot burn in a vacuum. That's my guess anyway :-) Regards, Nish


                                    Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                                    The Ultimate Grid - The #1 MFC grid out there!

                                    B Offline
                                    B Offline
                                    Bob X
                                    wrote on last edited by
                                    #50

                                    Nishant Sivakumar wrote:

                                    We blow the air away creating a small vacuum pocket and a fire cannot burn in a vacuum. That's my guess anyway

                                    Sorry. You cannot blow into an area and create a vacumm caused by no matter in an area. This is physically impossible through the laws of physics. Carbon Dioxide doesn't put out the flame either because your breath contains a large amount of oxygen in it. If I remember correctly, the flame goes out due to over supplying oxygen to the flame. Similar to why an airplane engine will stall if you make the fuel too rich.

                                    1 Reply Last reply
                                    0
                                    • R Raj Lal

                                      1/2 + 1/3 + 1/4 + 1/5 + 1/6 + 1/7 + 1/8 ...... When will the sum of this series exceed 100 ? Will it EVER ? For the thinkers, Why does a candle extinguishes when we blow on it? (Never paid attention to it, right?) Looks simple but it isn't ! * you are right, this guy has got nothing to do... but if you read this we are in the same boat --- My Unedited article^

                                      R Offline
                                      R Offline
                                      Raj Lal
                                      wrote on last edited by
                                      #51

                                      The real solution is here [^] --- My Unedited article^

                                      1 Reply Last reply
                                      0
                                      Reply
                                      • Reply as topic
                                      Log in to reply
                                      • Oldest to Newest
                                      • Newest to Oldest
                                      • Most Votes


                                      • Login

                                      • Don't have an account? Register

                                      • Login or register to search.
                                      • First post
                                        Last post
                                      0
                                      • Categories
                                      • Recent
                                      • Tags
                                      • Popular
                                      • World
                                      • Users
                                      • Groups