Results 1 to 11 of 11

Thread: Find the number....

  1. #1
    Contributing Member
    Join Date
    Sep 2006
    Answers
    962

    Find the number....

    Find the number using the following condition.

    If you divided by 9, you will get the remainder 8
    If you divided by 8, you will get the remainder 7
    If you divided by 7, you will get the remainder 6
    If you divided by 6, you will get the remainder 5
    If you divided by 5, you will get the remainder 4
    If you divided by 4, you will get the remainder 3
    If you divided by 3, you will get the remainder 2
    If you divided by 2, you will get the remainder 1

    Clue: The number is less than 3000.

    ----------------------
    suresh


  2. #2
    Junior Member
    Join Date
    Nov 2006
    Answers
    25

    Re: Find the number....

    Hi suresh,

    The number is 2519.


    Regards,
    Elango


  3. #3
    Junior Member
    Join Date
    Jul 2007
    Answers
    18

    Re: Find the number....

    thanx Elango
    is there any logic?
    explain it


  4. #4
    Expert Member
    Join Date
    Jun 2006
    Answers
    410

    Re: Find the number....

    It is very simple Sowji,

    find LCM of 2,3,4...8 and 9 then subtract 1 from that number. that is it


    Thanks,
    James


  5. #5
    Junior Member
    Join Date
    Sep 2010
    Answers
    1

    Red face Re: Find the number....

    Hey can u please tell me whats the logic behind in taking L.cm's and subracting 1 from it..
    Thanx in advance...............


  6. #6
    Junior Member
    Join Date
    Nov 2010
    Answers
    2

    Re: Find the number....

    Hi
    The answer is 2519


  7. #7
    Junior Member
    Join Date
    Nov 2010
    Answers
    2

    Re: Find the number....

    I know how to make it
    follow the c code:

    #include<stdio.h>
    void main()
    {
    for(int q=1;q<30000;q++)
    {
    if((q%9==8)&&(q%8==7)&&(q%7==6)&&(q%6==5)&&(q%5==4)&&(q%4==3)&&(q%3==2)&&(q%2==1))
    {
    printf("%d",q);
    break;
    }
    }
    }


  8. #8
    Junior Member
    Join Date
    Apr 2011
    Answers
    13

    Re: Find the number....

    Ur Logic is correct Chayan.
    The answer is 2519.


  9. #9
    Junior Member
    Join Date
    Jul 2012
    Answers
    1

    Re: Find the number....

    good work .......


  10. #10
    Junior Member
    Join Date
    Mar 2013
    Answers
    16

    Re: Find the number....

    2519 is the Answer..


  11. #11
    Junior Member
    Join Date
    Feb 2017
    Answers
    10

    Re: Find the number....

    The answer is 2519


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact