+ Manish Patidar On Thu, Jul 26, 2012 at 10:14 PM, Manish Patidar <manishpatidar...@gmail.com > wrote:
> 20 > Thank you, > Have a great day !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > > > * With Regards, > * > * > Manish Patidar.* > > > > On Thu, Jul 26, 2012 at 11:11 PM, payal gupta <gpt.pa...@gmail.com> wrote: > >> ans.20 >> >> >> On Thu, Jul 26, 2012 at 11:09 PM, Ali Ahmad Ansari < >> ali.ahamad.ans...@gmail.com> wrote: >> >>> Given a number N, generate a sequence S such that >>> S[ 0 ] = N >>> S[ i+1 ] = (3 * S[ i ] + 1) / 2 if S[ i ] is odd, >>> = S[ i ] / 2, if S[ i ] is even, >>> till you reach 1. >>> For example for N = 5, the sequence is 5, 8, 4, 2, 1 >>> Given two numbers 20 and 35, generate the sequence S for A >>> and B, and find the number where the two sequences meet. >>> a.20 >>> b.30 >>> c.35 >>> d.40 >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Algorithm Geeks" group. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msg/algogeeks/-/EEhTdWZgDrQJ. >>> To post to this group, send email to algogeeks@googlegroups.com. >>> To unsubscribe from this group, send email to >>> algogeeks+unsubscr...@googlegroups.com. >>> 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 algogeeks@googlegroups.com. >> To unsubscribe from this group, send email to >> algogeeks+unsubscr...@googlegroups.com. >> 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 algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > 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 algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.