For how many positive integers n ≤ 1 0 0 0 , is the digit root of 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 + 3 1 + 1 = 9 9 3 would be 3 since 9 + 9 + 3 = 2 1 , 2 + 1 = 3 .
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.
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.
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 ) . 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 , so the answer is 334
Define S ( n ) to be the sum of digits function. Observe that n ≡ S ( n ) ( m o d 9 ) . So, n 2 + n + 1 ≡ 3 ( m o d 9 ) ⟹ n ≡ 1 , 4 , 7 ( m o d 9 ) . So, we have 3 different arithmetic progression of n's which'll work namely, { 1 , 1 0 , 1 9 , . . . , 1 0 0 0 } , { 4 , 1 3 , . . . , 9 9 4 } , { 7 , 1 6 , . . . , 9 9 7 } . Calculate the number of terms in each of these sequences which'll actually give the number of solutions: 1 1 2 + 1 1 1 + 1 1 1 = 3 3 4 .
Peace. AD.
We first notice that the digital root of a number x is equivalent to x ( m o d 9 ) if x is neither equal to 0 nor divisible by 9 .This is because 1 0 k ≡ 1 ( m o d 9 ) . So independent of the position, the value mod 9 is the same.This reduces the problem to finding the number of n 's that satisfy the following quadratic congruency. n 2 + n + 1 ≡ 3 ( m o d 9 ) . Thus the problem boils down to finding the number of n's that make the expression n 2 + n − 2 or ( n + 2 ) ( n − 1 ) ≡ 0 ( m o d 9 ) divisible by 9.
After replacing a few numbers in the expression it becomes obvious that n 's have to be of the form 3 x + 1 . This can be easily confirmed by check that n = 3 x + 2 , 3 x clearly is not a multiple of 9, and n = 3 x + 1 gives us 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 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]
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
Let σ ( x ) denote the sum of the digits of x .
Lemma 1: σ ( x ) ≡ x ( m o d 9 ) .
Proof: Let x = a n a n − 1 ⋯ a 1 a 0 . Then x = ∑ i = 0 n a i 1 0 i
Since 1 0 i ≡ 1 i ≡ 1 ( m o d 9 ) ,
We have x ≡ ∑ i = 0 n a i 1 0 i ≡ ∑ i = 0 n a i ≡ σ ( x ) ( m o d 9 ) .
□
Define σ k ( x ) = σ ( σ k − 1 ( x ) ) and σ 1 ( x ) = σ ( x ) .
Lemma 2: x ≡ σ i ( x ) ( m o d 9 ) .(For all i ≥ 1 )
Proof: Let A be the set of all elements p such that σ p ( x ) ≡ x ( m o d 9 ) . Since each p is positive, A must contain a lowest element a . So we know that σ a − 1 ( x ) ≡ x ( m o d 9 ) since a − 1 does not belong in the set. But then σ a ( x ) ≡ σ ( σ a − 1 ( x ) ) ≡ σ a − 1 ( x ) ≡ x ( m o d 9 ) . Contradiction. Thus, set A must be empty and so x ≡ σ i ( x ) ( m o d 9 ) .(For all i ≥ 1 ).
□
This means our problem is reduced to finding all values of n such that n 2 + n + 1 ≡ 3 ( m o d 9 ) . So then we get n 2 + n − 2 ≡ 0 ( m o d 9 ) . Factoring gives ( n − 1 ) ( n + 2 ) ≡ ( m o d 9 )
So n must be congruent to 1 mod 3. Thus, there are 334 values of n less than or equal to 1000.
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 ) for k = 1 , 2 , … 9 . We see that this value is 3 if and only if k = 1 , 4 , 7 . There are 112 positive integers n ≤ 1 0 0 0 which satisfy n ≡ 1 ( m o d 9 ) . There are 111 positive integers n ≤ 1 0 0 0 which satisfy n ≡ 4 ( m o d 9 ) . There are 111 positive integers n ≤ 1 0 0 0 which satisfy n ≡ 7 ( m o d 9 ) . Hence there 1 1 2 + 1 1 1 + 1 1 1 = 3 3 4 positive integers n ≤ 1 0 0 0 such that the digit root of n 2 + n + 1 is equal to 3.
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
1000 = 1 + 3(n-1) 1000 = 1 + 3n - 3 1000 = 3n - 2 1002 = 3n 1002\3 = n n = 334
Problem Loading...
Note Loading...
Set Loading...
Equivalently, we want to know for which n is n 2 + n + 1 ≡ 3 ( m o d 9 ) . For this to occur we need 3 ∣ n 2 + n + 1 ∣ n 3 − 1 , so by Fermat's theorem a necessary condition is n ≡ 1 ( m o d 3 ) . Conversely, it's easy to check that for n ≡ − 2 , 1 , 4 ( m o d 9 ) we get n 2 + n + 1 ≡ 3 ( m o d 9 ) so this condition is also sufficient.
So we just want the number terms in the arithmetic progression 1 , 4 , 7 , … , 1 0 0 0 , which is 1 + ( 1 0 0 0 − 1 ) / 3 = 3 3 4 .