@Wladimir : you have to use formula given in below link.... http://en.wikipedia.org/wiki/Inclusion%E2%80%93exclusion_principle
On Fri, Sep 28, 2012 at 12:26 AM, Wladimir Tavares <[email protected]>wrote: > what happens when a = 3, d = 5 > a, a + d, d +2, a +3 d = 3,8,13,18? > > Wladimir Araujo Tavares > *Federal University of CearĂ¡ <http://lia.ufc.br/%7Ewladimir/> > Homepage <http://lia.ufc.br/%7Ewladimir/> | > Maratona<https://sites.google.com/site/quixadamaratona/>| > * > > > > > > On Thu, Sep 27, 2012 at 8:57 AM, atul anand <[email protected]>wrote: > >> @ashish : here is the generalized equation.... >> http://en.wikipedia.org/wiki/Inclusion%E2%80%93exclusion_principle >> >> note : you need to take LCM of a,a+d,a+2d etc etc........whenever you are >> dividing to find count >> >> On Thu, Sep 27, 2012 at 2:55 AM, ashish pant <[email protected]>wrote: >> >>> thanks for your reply.. actually i was thinking the same thing.. but I >>> am facing problems in finding the unique multiples of a+3d and a+4d as >>> applying inclusion exclusion principle in this way is getting too difficult >>> due to large no of factors to be added and subtracted.. is der any other >>> approach or any way to simplify the process.. >>> >>> -- >>> 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. >> > > -- > 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.
