How do you find the sum of the digits of number N? Say N = 10

  • Thread starter Thread starter PrudensOptimus
  • Start date Start date
  • Tags Tags
    Sum
AI Thread Summary
To find the sum of the digits of a number N, such as 10, the calculation involves adding each digit together, resulting in 1+0=1. The discussion also touches on the formula for the sum of the first N integers, \sum_{k=1}^N k= \frac{N(N+1)}2, which is relevant for arithmetic sequences but not applicable for digit sums in general. An example provided highlights that for a number like 12245, the sum is 1+2+2+4+5. The conversation further explores larger numbers and emphasizes that the digit sum can be calculated similarly, regardless of the number's size. Understanding the distinction between the sum of digits and the sum of integers is crucial in this context.
PrudensOptimus
Messages
641
Reaction score
0
How do you find the sum of the digits of number N?


Say N = 10
 
Mathematics news on Phys.org
If memory serves me correctly:

<br /> \sum_{k=1}^N k= \frac{N(N+1)}2<br />

a fact that you would prove by induction.
 
Was that what was meant? The "sum of the digits" of 10 is 1+ 0= 1, of course.
 
Originally posted by BigRedDot
If memory serves me correctly:

<br /> \sum_{k=1}^N k= \frac{N(N+1)}2<br />

a fact that you would prove by induction.

It will be true only if the digits form a Arithmetic Projection
for eg N=2468 etc {2+4+6+8}
but not in general say for N=12245 {1+2+2+4+5}
 
The "sum of the digits"
You're right, I answered a completely different question. Well, I am sure someone asked my question somewhere, sometime. :)
 
Originally posted by HallsofIvy
Was that what was meant? The "sum of the digits" of 10 is 1+ 0= 1, of course.


Yea what if N = 1231247839783924723840723084732084738274... + ... N?
 
Originally posted by PrudensOptimus
Yea what if N = 1231247839783924723840723084732084738274... + ... N?

Ofcourse it would be
as N=1+0
here it will be N=1+2+3+1+2+4+7+8+3+9+7+8+3+9+2+4+7+2+3+8+4+0+7+2+3+0+8+4+7+3+2+0+8+4+7+3+8+2+7+4+...+x+y+z+a+b+c+d :wink: :wink: :wink:
 

Similar threads

Replies
3
Views
2K
Replies
7
Views
3K
Replies
2
Views
2K
Replies
10
Views
1K
Replies
11
Views
2K
Replies
2
Views
2K
Back
Top