When Is the Digital Root Three?

For how many positive integers n 1000 n \leq 1000 , is the digit root of n 2 + n + 1 n^2 + n +1 equal to 3?

Details and assumptions

The digit root of a number is a single digit value obtained by iterative digit sums. For example, the digit root of 3 1 2 + 31 + 1 = 993 31^2+31+1 = 993 would be 3 since 9 + 9 + 3 = 21 , 2 + 1 = 3 9 + 9 + 3 = 21, 2+1 = 3 .


The answer is 334.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

11 solutions

Erick Wong
May 20, 2014

Equivalently, we want to know for which n n is n 2 + n + 1 3 ( m o d 9 ) n^2+n+1 \equiv 3 \pmod 9 . For this to occur we need 3 n 2 + n + 1 n 3 1 3 \mid n^2+n+1 \mid n^3-1 , so by Fermat's theorem a necessary condition is n 1 ( m o d 3 ) n \equiv 1 \pmod 3 . Conversely, it's easy to check that for n 2 , 1 , 4 ( m o d 9 ) n \equiv -2, 1, 4 \pmod 9 we get n 2 + n + 1 3 ( m o d 9 ) n^2+n+1 \equiv 3 \pmod 9 so this condition is also sufficient.

So we just want the number terms in the arithmetic progression 1 , 4 , 7 , , 1000 1, 4, 7, \ldots, 1000 , which is 1 + ( 1000 1 ) / 3 = 334 1 + (1000-1)/3 = 334 .

Michael Ma
May 20, 2014

Obviously the digit root is any number must be a positive integer from 1 to 9. Now, a well-known fact, the sum of the digits of a number is congruent to the original number mod 9. If n=3k-1, then n^2+n+1=9k^2-3k+1 which cannot be 3 mod 9. Now if n=3k, then n^2+n+1=9k^2+3k+1 which cannot be 3 mod 9. If n=3k+1, then n^2+n+1=9k^2+9k+3 which is 3 mod 9. So only numbers of the form 3k+1 work. These numbers are 1, 4, 7, ..., 1000 and there are 334 of these numbers.

Kevin Sun
May 20, 2014

The digital root of a number is the residue when that number is divided by 9, because a number is congruent to its sum of digits mod 9. Thus we need to find the number of n such that n 2 + n + 1 3 ( m o d 9 ) n^2+n+1 \equiv 3 \pmod{9} . We see that if n is 1 mod 3, then n^2+n+1 is 3 mod 9. If n is 2 mod 3, then n^2+n+1 is 1 mod 3, so not 3 mod 9. If n is 0 mod 3, then n^2+n+1 is also 1 mod 3. Thus the digital root is 3 iff 3 n 1 3 \mid n-1 , so the answer is 334

Abhishek De
May 20, 2014

Define S ( n ) S(n) to be the sum of digits function. Observe that n S ( n ) ( m o d 9 ) n\equiv S(n)\pmod {9} . So, n 2 + n + 1 3 ( m o d 9 ) n 1 , 4 , 7 ( m o d 9 ) n^2+n+1\equiv 3\pmod {9}\implies n\equiv 1,4,7\pmod 9 . So, we have 3 different arithmetic progression of n's which'll work namely, { 1 , 10 , 19 , . . . , 1000 } , { 4 , 13 , . . . , 994 } , { 7 , 16 , . . . , 997 } \{1,10,19,...,1000\}, \{4,13,...,994\},\{7,16,...,997\} . Calculate the number of terms in each of these sequences which'll actually give the number of solutions: 112 + 111 + 111 = 334 112+111+111=\boxed{334} .

Peace. AD.

Thaddeus Abiy
May 20, 2014

We first notice that the digital root of a number x x is equivalent to x ( m o d 9 ) x \pmod{9} if x x is neither equal to 0 0 nor divisible by 9 9 .This is because 1 0 k 1 ( m o d 9 ) 10^k \equiv 1\pmod{9} . So independent of the position, the value mod 9 is the same.This reduces the problem to finding the number of n n 's that satisfy the following quadratic congruency. n 2 + n + 1 3 ( m o d 9 ) n^2 + n + 1 \equiv 3 \pmod{9} . Thus the problem boils down to finding the number of n's that make the expression n 2 + n 2 n^2 + n - 2 or ( n + 2 ) ( n 1 ) 0 ( m o d 9 ) n+2)(n-1) \equiv 0 \pmod{9} divisible by 9.

After replacing a few numbers in the expression it becomes obvious that n n 's have to be of the form 3 x + 1 3x+1 . This can be easily confirmed by check that n = 3 x + 2 , 3 x n=3x+2, 3x clearly is not a multiple of 9, and n = 3 x + 1 n=3x+1 gives us 9 ( x ) ( x + 1 ) 9(x)(x+1) which validates our assumption. Whats left to do is to count the number of integers of the form 3 x + 1 3x+1 below one thousand. Since the relationship is linear we can subtract one from 1000 and divide it by 3 and add one,giving us 334 integers that make the expression divisible by 9.

[Slight edits - Calvin]

It is not true that the digital root of a number is equal to it's residue class modulo 9. In particular, the digital root of 9 is 9, and not 0.

Erick states my initial inspiration for using 1 + n + n 2 1 + n + n^2 .

Calvin Lin Staff - 7 years ago
Nicolò Biccheri
May 20, 2014

The digit root of a number will be 3 if the number is a multiple of 3, but not of 6 and 9. So n^2+n+1 \equiv 0 \pmod{3} \rightarrow n(n+1) \equiv 2 \pmod{3} , and it is for n \equiv 1 \pmod{3} . We can demonstrate that n(n+1)\equiv 5 \pmod{6} and n(n+1)\equiv 8 \pmod{9} is impossible for integers n. So there are \frac {999}{3}+1=334

using (mod 9) , n^2 + n + 1 = 3 (mod 9) ; n(n + 1) = 2 (mod 9) ; n must be = 1 , 4 , 7 , 10 , .... ; with U (n) = *3n - 2* ; maximum n = 334 ---> U (334) = 1000 ; thus, the answer is 334

Apoorva Shah
May 20, 2014

Let σ ( x ) \sigma(x) denote the sum of the digits of x x .

Lemma 1: σ ( x ) x ( m o d 9 ) \sigma(x)\equiv x\pmod{9} .

Proof: Let x = a n a n 1 a 1 a 0 x= \overline{a_na_{n-1}\cdots a_1a_0} . Then x = i = 0 n a i 1 0 i x=\sum_{i=0}^{n}a_i10^{i}

Since 1 0 i 1 i 1 ( m o d 9 ) 10^i\equiv 1^i\equiv 1 \pmod{9} ,

We have x i = 0 n a i 1 0 i i = 0 n a i σ ( x ) ( m o d 9 ) . x\equiv \sum_{i=0}^{n}a_i10^{i}\equiv \sum_{i=0}^{n}a_i \equiv \sigma(x) \pmod{9}.

\Box

Define σ k ( x ) = σ ( σ k 1 ( x ) ) \sigma_{k}(x)=\sigma(\sigma_{k-1}(x)) and σ 1 ( x ) = σ ( x ) \sigma_1(x)=\sigma(x) .

Lemma 2: x σ i ( x ) ( m o d 9 ) x\equiv \sigma_{i}(x) \pmod{9} .(For all i 1 i\geq 1 )

Proof: Let A \mathcal{A} be the set of all elements p p such that σ p ( x ) ≢ x ( m o d 9 ) \sigma_p(x) \not\equiv x \pmod{9} . Since each p p is positive, A \mathcal{A} must contain a lowest element a a . So we know that σ a 1 ( x ) x ( m o d 9 ) \sigma_{a-1}(x)\equiv x \pmod{9} since a 1 a-1 does not belong in the set. But then σ a ( x ) σ ( σ a 1 ( x ) ) σ a 1 ( x ) x ( m o d 9 ) \sigma_a(x)\equiv \sigma(\sigma_{a-1}(x))\equiv \sigma_{a-1}(x)\equiv x \pmod{9} . Contradiction. Thus, set A \mathcal{A} must be empty and so x σ i ( x ) ( m o d 9 ) x\equiv \sigma_{i}(x) \pmod{9} .(For all i 1 i\geq 1 ).

\Box

This means our problem is reduced to finding all values of n n such that n 2 + n + 1 3 ( m o d 9 ) n^2+n+1\equiv 3 \pmod{9} . So then we get n 2 + n 2 0 ( m o d 9 ) n^2+n-2\equiv 0 \pmod{9} . Factoring gives ( n 1 ) ( n + 2 ) ( m o d 9 ) (n-1)(n+2)\equiv \pmod{9}

So n n must be congruent to 1 mod 3. Thus, there are 334 values of n n less than or equal to 1000.

Calvin Lin Staff
May 13, 2014

The digit sum of a number is equivalent to the number modulo 9. The digit sum of a number decreases if the number has 2 or more digits. Hence, the digit root of a number, will be equal to the equivalence class of the number modulo 9.

We just need to calculate the values of k 2 + k + 1 ( m o d 9 ) k^2 + k + 1 \pmod{9} for k = 1 , 2 , 9 k = 1, 2, \ldots 9 . We see that this value is 3 if and only if k = 1 , 4 , 7 k = 1, 4, 7 . There are 112 positive integers n 1000 n \leq 1000 which satisfy n 1 ( m o d 9 ) n \equiv 1 \pmod{9} . There are 111 positive integers n 1000 n \leq 1000 which satisfy n 4 ( m o d 9 ) n \equiv 4 \pmod{9} . There are 111 positive integers n 1000 n\leq 1000 which satisfy n 7 ( m o d 9 ) n \equiv 7 \pmod{9} . Hence there 112 + 111 + 111 = 334 112 + 111 + 111 = 334 positive integers n 1000 n \leq 1000 such that the digit root of n 2 + n + 1 n^2+n+1 is equal to 3.

Moi Tulipe
May 20, 2014

we have that 1 is correct and every time we add 3 we have a solution so we have from 1 to 1000 we have 334

Abhishek Agrawal
May 20, 2014

1000 = 1 + 3(n-1) 1000 = 1 + 3n - 3 1000 = 3n - 2 1002 = 3n 1002\3 = n n = 334

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...