in Quantitative Aptitude recategorized by
555 views
0 votes
0 votes

How to find log of the first n natural numbers?

$T(n)= \log 1+ \log 2+ \log 3+\ldots + \log n$  // How to proceed from here?

in Quantitative Aptitude recategorized by
by
555 views

2 Comments

log ($ 1\times2 \times3\times4\times......\times n$) = log(n!) = log(nn) = O(nlogn)

3
3

i think n! can be maped to exponential ....nn  ...

so O(nlogn)

1
1

1 Answer

1 vote
1 vote
Best answer

you can write  log( 1 *2 *3 * ------------------n)

log( n ! )   answer    product of 1st n natural number = n ! 

other one :  1 + 2+ 3+ -------------+ n  = n(n+1) /2 

same way log 1 + log 2+ -------- log n = $\frac{logn(logn +1 )}{2}$   {  but it is not true  } 

selected by

4 Comments

@sumit goyal 1 Anu007 how  you you write log1+ log2+ log3+⋯+ logn as  log( 1 *2 *3 * ------------------n) as 

log( n ! ) 

1
1

hi bhai   by log property   log a + log b = log ( a.b)

so if you have , log a + log b + log c +------- + log n  then it  is equal to

log(a . b . c -------  . n )

and  n!  = 1.2.3.4............ n   @iarnav

1
1

@sumit goyal 1 Thanks Bhaijaan :)

1
1
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true