Results 1 to 11 of 11

Thread: Find the maximum number of numbers in the sequence

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

    Find the maximum number of numbers in the sequence

    From the numbers 1; 2; 3; 4; … 500 a sequence is formed by deleting
    numbers so that no two remaining numbers have a sum which is a multiple
    of 7. The maximum number of numbers in this sequence is_______________


  2. #2
    Junior Member
    Join Date
    Jan 2006
    Answers
    15

    Re: Find the maximum number of numbers in the sequence

    I guess the Numbers in the sequnce are the Multiples of 7 beween 1 & 500.


  3. #3
    Junior Member
    Join Date
    Dec 2006
    Answers
    4

    Re: Find the maximum number of numbers in the sequence

    At last there will be only 2 numbers remaining


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

    Re: Find the maximum number of numbers in the sequence

    NO...you guys are wrong...

    1,2,3 is one sequence which satisfies the condition
    2,3,7,8 is another sequence
    similar way you have to find a sequence with maximum numbers


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

    Re: Find the maximum number of numbers in the sequence

    James,

    i am not clear about the question...
    Remaining two numbers means which two numbers.....?
    please give some example....

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


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

    Re: Find the maximum number of numbers in the sequence

    Suresh,
    you have to write a sequence of numbers between 1 to 500 in such a way that o that no two numbers have a sum which is a multiple of 7.

    let us say you have a sequence like this

    1,2,3,4 here 3+4=7 which is a mutliple of 7. So this is an invalid sequence.
    but 1,2,3 is a valid sequence since no two numbers have a sum which is a multiple of 7.

    You have to find the sequence with maximum numbers...and you don't have to write the sequence. you need to find the total number of numbers in that sequence.

    I hope this clears all your doubts.


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

    Re: Find the maximum number of numbers in the sequence

    James,

    yes. it's very helpful...one more doubt...
    that two numbers are only consecutive numbers or any two number..

    For example...
    if i write a sequence 1,2,3,5,....

    In this above series no consecutive number are multiple by 7..
    but if i add 5+2 = 7 which is multiple by 7..

    plz clarify this one..

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


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

    Smile Re: Find the maximum number of numbers in the sequence

    If its not a consecutive numbers then the total number of numbers in this sequence is 217.

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


  9. #9
    Junior Member
    Join Date
    Aug 2006
    Answers
    1

    Re: Find the maximum number of numbers in the sequence

    this is nice one


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

    Re: Find the maximum number of numbers in the sequence

    Excellent Suresh...

    Give your solution.


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

    Smile Re: Find the maximum number of numbers in the sequence

    First you take 1 to 30...

    the series is 1,2,3,7,8,9,10,15,16,17,22,23,24,29,30,.....

    Look at the first four numbers are 1,2,3.7... So any numbers are multiply by 7 and below the three numbers of seven are not in the part of series...

    example....if you take the number 21 then the numbers 18,19,20,21 are not in the series...(18+3)(19+2)(20+1)(21+7)....

    this series going like this after the number 10.....

    The anwer is (490/7) * 3 + 7 = 217.

    (In the above answer i add 7 because the number between 1 to 10, the series have 7 numbers)

    i don't know any other mathematicla formula...

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


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