In mathematics, the digit sum of a natural number in a given number base is the sum of all its digits. For example, the digit sum of the decimal number
Homework Statement
Calculate Σ (i=1, n) √i
I want to write general formula, then use it for any n (like we have for Σ (i=1, n) i
Homework Equations
Σ (i=1, n) i = n (n+1) / 2
Σ (i=1, n) i^2 = n (n+1)(2n +1) / 6The Attempt at a Solution
Comparing formulas provided above: I assume the answer...
Homework Statement
Make an "absolute sum of digits" of a number in a particular numerical system. You are given two numbers (numerical system and your number N). You take the number N, add up its digits, if the result has more than one digit you add them up again and so on. You end up with...
Homework Statement
Read two integers. First one tells you the type of your numeral system (binary, decimal, hexadecimal) the second one will be your number in decimal. Using functions or procedures I need to convert the number into the required system and then count the sum of its digits in...
Any ideas on this? I googled it and got only answers inolving Excel, C++, etc...
A formula for finding the digit sum of a 2-digit number, or only a 3-digit number, would also be interesting.
I thought I had a start with this: For a 2-digit number xy, the sum of the digits =...
Hello!
Why is it so, that if you have a number, for example 183, you take the sum of the digits of that number, so 183-(1+8+3), u get a number that is always dividable by 9?
I'm sorry if this is a dumb question, I'm not very good at math but still curious to know.
I apologize for my lack of knowledge on the topic.
I recently started writing programs to solve Project Euler problems and it rekindled my interest in number theory. Especially as it relates to a peculiar relationship I found back in high school. I would like to learn more about number theory...
I saw someone discussing divisibility rules in another thread and would thought I would make a note that the divisibility rule of 9 of summing the digits to see if you end up with 9 is really a trick of the counting base you are using (base 10).
In general, this divisibility rule applies to...
Yesterday Professor Q rode on a bus with his friend. As soon as he got the tickets for himself and his friend, which were consecutively numbered with each of the tickets bearing a 5-digit number with no leading zero, he added the digits on them and told his friend that the sum of all ten digits...
What is the sum of the digits of 2^1000
check my algoriathm, let y=2^1000 then logy = 1000log2 = 301 and y=10^logy=10^301
since (1,0) r da only digits of 10^n 4all n=1,2,3,4,... The sum of digits equals 1 , but it is not the answer ...Why?
I have question here which has puzelled me since monday. Hope there is somebody here who can give a hint/help.
Let "a" be number written in base 10.
a_0 * 10^0 + a_1 * 10^1 + a_2 * 10^2 + -------+ a_n * 10^n
where 0 \leq a_i \leq 10.
Prove that the number 2 divides a, if and only...
I don't know if this has been posted already, but anwho...
If you pick any positive integer greater than 9 and subtract the sum of its digits from that number, you'll end up with a multiple of 9. How do I know it's a multiple of 9? Curiously enough, the sum of the digits of a positive integer...
"sum of digits" equation
Let f(n) denote the sum of (all) digits of natural number n. Prove that for each natural n we can choose convenient value of natural parameter p such that the equation f(npx)=f(x) has solution in natural numbers x that doesn't contain any "9" in its notation.
Does...