1 1 vote How to find log n base2+ log n base 3+ log n base4+........log n base n? Algorithms logarithmic-function normal descriptive + – Tushar Garg 2.8k views answer comment Share Follow Print See 1 comment 1 1 comment reply Raghav Khajuria commented Jul 9, 2018 reply Follow flag How to solve 1/log2 +1/log4+1/log6...+1 /logn? 0 0 replyShare Please log in or register to add a comment.
1 1 vote = log1n + log2n + log3n +log4n .............lognn = logn/log1 + logn /log2 +logn/log3 +logn/log4 .......... logn/logn (By using property of log ) = logn ( 1/log1 +1/log2 + 1/log3 +1/log4............1/logn ) = O(logn) air1ankit answered Jul 4, 2018 air1ankit comment Share Follow See all 6 Comments 6 6 Comments reply Show 3 previous comments Tushar Garg commented Jul 4, 2018 reply Follow flag Log1=0, so 1/log1= infinity so how can we ignore the infinty in last step although it is decreasing gp 0 0 replyShare air1ankit commented Jul 4, 2018 reply Follow flag we can not ignore infinity in the last step ...and by this, we can't decide its asymptotic value 0 0 replyShare ankitgupta.1729 commented Jul 10, 2018 reply Follow flag @Anil JI , Can u explain what's wrong in his solution except log n / log 1 part because it is not given in the question and also it is undefined.. 0 0 replyShare Please log in or register to add a comment.
0 0 votes Answer is 1 for n=1 and infinity for all other values. This can be done by substituting 1 and 2,3,4..in place of n. For n=1, log 1 base 1 is 1 while for n=2, 3.. Log2 base 1 is infinity pavansai1296 answered Jul 4, 2018 pavansai1296 comment Share Follow See 1 comment 1 1 comment reply Tushar Garg commented Jul 4, 2018 reply Follow flag Did not understand plzz elaborate .i want to find asymtotic value of this 0 0 replyShare Please log in or register to add a comment.
0 0 votes f(n)=logn{1/log2+1/log3+1/log4+1/log5+1/log6+1/log7+1/log/8+1/log9+1/log10+1/log11+.........1/logn} (base is 10) let sum of first nine term be k where k is some constant and sum of remaining term will be <2(less than 2,let it's x)) f(n)=logn{k+x} f(n)=klogn+xlogn so,f(n)=O(logn) BASANT KUMAR answered Jul 5, 2018 BASANT KUMAR comment Share Follow 0 reply Please log in or register to add a comment.