hey we can do like dis man using trial and error, so start with m = 15, 22, 29 etc. obviuosly we cant start with 8 as n must be greater than 1. I think u people got the reason for starting with 15(1+14 is divisible by 7), 22(1+21 is divisible by 7) etc.
test for m = 15; Day 1:- medals = 1+14/7 = 3; Day 2:- medals = 2 + 10 which is not divisible by 7 test for m = 22; Day 1:- medals = 1+21/7=4; Day 2:- medals = 2+16 which is not divisible by 7 test for m = 29; Day 1:- medals = 1+28/7 = 5; Day 2:-medals = 2+22 which is not divisible by 7 test for m = 36 Day 1:- medals = 1+35/7=6; Day 2:- medals = 2+28/7=6; Day 3:- meadals = 3+21/7 = 6; Day 4:- medals = 4+ 14/7 = 6; Day 5:- medals = 5+7/7 = 6; Day 6:- medals = 6; So m = 36 and n = 6. Hope I am clear. On Fri, Mar 18, 2011 at 12:02 PM, bittu <[email protected]> wrote: > Hi here is the basic approach as we know in a week atmost 7 days ..so > start with hit and trial > > Total 36 medals were awarded and the contest was for 6 days. > > On day 1: Medals awarded = (1 + 35/7) = 6 : Remaining 30 medals > On day 2: Medals awarded = (2 + 28/7) = 6 : Remaining 24 medals > On day 3: Medals awarded = (3 + 21/7) = 6 : Remaining 18 medals > On day 4: Medals awarded = (4 + 14/7) = 6 : Remaining 12 medals > On day 5: Medals awarded = (5 +7/7) = 6 : Remaining 6 medals > On day 6: Medals awarded 6 > > Clear and Simple > > Thanks > Sahshank > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
