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
  1. Home
  2. General Programming
  3. Algorithms
  4. Hardcore Maths Question

Hardcore Maths Question

Scheduled Pinned Locked Moved Algorithms
questionasp-netcombusiness
46 Posts 11 Posters 0 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.
  • L leppie

    Judah Himango wrote:

    I kind of cheated.

    He did say "find a number" :) So there are more than one of these. I wonder if its some kind of series...

    **

    xacc.ide-0.2.0.50 - now with partial MSBuild support!

    **

    U Offline
    U Offline
    User 12346520
    wrote on last edited by
    #41

    thanks: https://movied.org

    1 Reply Last reply
    0
    • J Judah Gabriel Himango

      Provided I've understood the question correctly, I think I've solved it. I kind of cheated though; I wrote a C# program that solves this:

              int start = 1;
              int divisor = 10;
              while (divisor >= 2)
              {
                  if (start % divisor == divisor - 1)
                  {
                      divisor--;
                  }
                  else
                  {
                      start++;
                      divisor = 10;
                  }
              }
      

      Soon as that loop exits, you've got your number, which happens to be 2519.

      U Offline
      U Offline
      User 12346520
      wrote on last edited by
      #42

      thanks: https://movied.org

      1 Reply Last reply
      0
      • L leppie

        2701439 last 4 digits by deduction, rest trial and error guess with 3/9 rule. :)

        **

        xacc.ide-0.2.0.50 - now with partial MSBuild support!

        **

        U Offline
        U Offline
        User 12346520
        wrote on last edited by
        #43

        thanks: https://movied.org

        1 Reply Last reply
        0
        • L leppie

          Here's a wild guess: 123456789 ? [edit] ok I got the 9 bit :p [edit] -- modified at 18:37 Wednesday 26th July, 2006

          U Offline
          U Offline
          User 12346520
          wrote on last edited by
          #44

          thanks: https://movied.org

          1 Reply Last reply
          0
          • A Andrew Bleakley

            It's not a mexican is it ?

            U Offline
            U Offline
            User 12346520
            wrote on last edited by
            #45

            thanks: https://movied.org

            1 Reply Last reply
            0
            • R Raj Lal

              Ok lets me be the first to ask a maths question Find a number which 1. divided by 10 gives a remainder 9 2. divided by 9 gives remainder 8 --- --- so on till divided by 2 gives a remainder 1 Any one ?

              Omit Needless Words - Strunk, William, Jr.


              Online Project Management
              Universal DBA | Ajax Rating | ExplorerTree

              U Offline
              U Offline
              User 12346520
              wrote on last edited by
              #46

              thanks: https://movied.org

              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