yes sir but however as i was solving second one i found that…
$lgn + lg(n/2) + lg(n/2^2) +...+ lg(n/2^{logn})$
evalutes to
$lgn + lgn - 1 + (lgn -2) +...+ lgn- lgn$
above was easily understandable but then it was suggested to write in reverse and the last step was like
$0 + 1 + 2 +.. + lgn$
which is what i didn’t understood.
after reaching 1 we’ll use the guassian sum formula or Ramanujan formula and
$lgn (lgn + 1)/2$