Loading [MathJax]/jax/output/SVG/jax.js
 
+0  
 
0
402
1
avatar

For each positive integer n, let S(n) denote the sum of the digits of n. How many three-digit n's are there such that n ==  S(n) + S(S(n)) (mod  9)?

 Jun 25, 2021

Best Answer 

 #1
avatar+506 
+1

The divisibility rule for 9 says that: S(n)n(mod 9) 

This rule is true every number can be written as x1+10x2+...10n1xn, where xn is the nth digit of the number, and since 10^n is always congruent to 1 mod 9 (because 10^n-1 is 99...9, which is divisible by 9), the expression reduces to x1+1x2+...1xn, which is simply the sum of the digits.

Anyway, back to the question, the original expression reduces to

 nn+n(mod 9)n0(mod 9)

Now, we just need to find the number of 3 digit multiples of 9. Can you finish it?

 Jun 25, 2021
 #1
avatar+506 
+1
Best Answer

The divisibility rule for 9 says that: S(n)n(mod 9) 

This rule is true every number can be written as x1+10x2+...10n1xn, where xn is the nth digit of the number, and since 10^n is always congruent to 1 mod 9 (because 10^n-1 is 99...9, which is divisible by 9), the expression reduces to x1+1x2+...1xn, which is simply the sum of the digits.

Anyway, back to the question, the original expression reduces to

 nn+n(mod 9)n0(mod 9)

Now, we just need to find the number of 3 digit multiples of 9. Can you finish it?

textot Jun 25, 2021

0 Online Users