Finding the nth Partial Sum for a Series Involving Floor and Mod Operators

  • Context: Undergrad 
  • Thread starter Thread starter m84uily
  • Start date Start date
  • Tags Tags
    Partial Sum
Click For Summary

Discussion Overview

The discussion revolves around finding the nth partial sum for a series involving floor and mod operators, specifically the expression \(\sum_{k=0}^{\lfloor \log(n) \rfloor} \lfloor \frac{n}{10^k} \rfloor\). Participants explore examples, clarify definitions, and propose generalizations related to the problem.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Homework-related

Main Points Raised

  • One participant expresses difficulty with the problem and seeks assistance.
  • Another suggests trying examples of n to better understand the summation process.
  • A clarification is made regarding the logarithm being base 10.
  • Specific examples are provided for n = 1 and n = 21, demonstrating the calculation of the partial sums.
  • A general form for n represented as \(a_1a_2...a_k\) is proposed, suggesting a potential pattern in the sums.
  • Another participant introduces an alternative expression for the sum, involving both a straightforward summation and a more complex term involving the mod operator, indicating that the latter is challenging to compute.

Areas of Agreement / Disagreement

Participants do not reach a consensus on a general solution for the nth partial sum, and multiple approaches and interpretations are presented without resolution.

Contextual Notes

Some assumptions about the properties of logarithms and the behavior of the floor and mod operators are not explicitly stated, which may affect the interpretation of the problem. The complexity of the mod operator in the proposed alternative expression remains unresolved.

m84uily
Messages
31
Reaction score
0
Given some natural number n find the nth partial sum for:

\displaystyle\sum_{k=0}^{\lfloor log(n) \rfloor} \lfloor \frac{n}{10^k} \rfloor

I find this question really difficult! If anyone could help, it would be greatly appreciated. Thanks in advance!
 
Physics news on Phys.org
Perhaps try a few examples of n to see what it actually is that you're doing??
 
I take that 'log' here means the base-10 logarithm. Is that so?
 
It is indeed the base 10 logarithm.

For n = 1: \displaystyle\sum_{k=0}^{0} \lfloor \frac{1}{10^k} \rfloor = \lfloor 1/1 \rfloor = 1

For n = 21: \displaystyle\sum_{k=0}^{1} \lfloor \frac{21}{10^k} \rfloor = \lfloor 21/1 \rfloor + \lfloor 21/10 \rfloor= 21 + 2 = 23
 
What about a general number

n=a_1a_2...a_k

?? Can you find it for that??
 
n=a_1a_2...a_k

I think it would be:

a_1a_2...a_k + a_1a_2...a_{k-1} + ... + a_1a_2 + a_1
 
Something else that could possibly be used is:

\displaystyle\sum_{k=0}^{\lfloor log(n) \rfloor} \lfloor \frac{n}{10^k} \rfloor = \displaystyle\sum_{k=0}^{\lfloor log(n) \rfloor} \frac{n}{10^k} - \displaystyle\sum_{k=0}^{\lfloor log(n) \rfloor} \frac{n}{10^k} mod 1

Where mod represents the remainder operator. Here the first sum is quite easy to figure out, however the summation involving mod is equally as difficult as the original, to me.
 
Last edited:

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 17 ·
Replies
17
Views
5K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K