-2
$\begingroup$

I need to know how to get the summation of a constant (c) from i=0 to log(n) of a constant

$\endgroup$

closed as off-topic by TheGeekGreek, Namaste, kingW3, Daniel W. Farlow, Shailesh Feb 13 '17 at 0:15

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question is missing context or other details: Please improve the question by providing additional context, which ideally includes your thoughts on the problem and any attempts you have made to solve it. This information helps others identify where you have difficulties and helps them write answers appropriate to your experience level." – TheGeekGreek, Namaste, kingW3, Daniel W. Farlow, Shailesh
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 4
    $\begingroup$ $\;\log n-1\;$ won't usually be a natural number, so what do you exactly mean? $\endgroup$ – DonAntonio Feb 12 '17 at 18:50
  • $\begingroup$ Maybe there's a ceiling or flooring operation on $\log(n) - 1$, for $n>0$? $\endgroup$ – rookie Feb 12 '17 at 18:52
  • $\begingroup$ Your question is not enough clear ! $\endgroup$ – Khosrotash Feb 12 '17 at 18:52
  • $\begingroup$ Welcome to MSE! It's important that posts are clearly written in TeX and explained so users can help as much as possible! $\endgroup$ – Test123 Feb 12 '17 at 18:53
  • 1
    $\begingroup$ @Alexandralopez That doesn't matter: the number's still not a natural one. $\endgroup$ – DonAntonio Feb 12 '17 at 18:56
2
$\begingroup$

$$\sum_{i = 0}^{\ln(n)} C = C \sum_{i = 0}^{\ln(n)} 1 = C\cdot (\ln(n)+1) = C\ln(n) + C $$

"More rigorously"

$$\lim_{N\to \ln(n)} \sum_{i = 0}^{N} C = C\cdot (N+1) = C\ln(n) + C$$

$\endgroup$
  • 1
    $\begingroup$ there are $\log(n) + 1$ indices when starting from zero. So it's $C(\log(n)+1)$. The sum is $\sum_{j=0}^{\log(n)-1} C = C\log(n)$. $\endgroup$ – user335907 Feb 12 '17 at 18:56
  • $\begingroup$ @james.nixon Whoops, thank you! $\endgroup$ – Von Neumann Feb 12 '17 at 18:56

Not the answer you're looking for? Browse other questions tagged or ask your own question.