A number theory problem

Find the remainder when n 3 + 3 n 2 + 5 n + 3 n^3+3n^2+5n+3 is divided by 3


The answer is 0.

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.

4 solutions

Chew-Seong Cheong
Jul 25, 2015

n 3 + 3 n 2 + 5 n + 3 = n 3 + 3 n 2 + 3 n + 1 + 2 n + 2 = ( n + 1 ) 3 + 2 ( n + 1 ) = ( n + 1 ) ( n 2 + 2 n + 1 + 2 ) = ( n + 1 ) ( n [ n + 2 ] + 3 ) = n ( n + 1 ) ( n + 2 ) + 3 ( n + 1 ) \begin{aligned} n^3+3n^2+5n+3 & = n^3+3n^2+3n+1 + 2n + 2 \\ & = (n+1)^3 +2(n+1) \\ & = (n+1)(n^2+2n+1+2) \\ & = (n+1)(n[n+2] + 3) \\ & = n(n+1)(n+2) + 3(n+1) \end{aligned}

For integer n n , the term n ( n + 1 ) ( n + 2 ) n(n+1)(n+2) is always divisible by 3 3 and the term 3 ( n + 1 ) 3(n+1) is, of course, divisible by 3 3 .

n 3 + 3 n 2 + 5 n + 3 0 ( m o d 3 ) \Rightarrow n^3+3n^2+5n+3 \equiv \boxed{0} \pmod{3}

Easier Solution \color{#3D99F6}{\text{Easier Solution}}

There is an easier solution though not as elegant.

Since f ( n ) = n 3 + 3 n 2 + 5 n + 3 f(n) = n^3+3n^2+5n+3 gives the same remainder when divided by 3 3 for all n n . We can get the solution just be checking for f ( n ) m o d 3 f(n) \mod{3} for any n n , says 0 0 , then f ( 0 ) = 3 f(0)=3 , therefore the remainder is 0 0 . Of course, we are assuming the question is correct, to check that we can try more n n . f ( 1 ) = 12 f(1) = 12 , f ( 2 ) = 33 f(2) = 33 .... All are divisible by 3 3 .

Moderator note:

The factorization shows us why the expression is always a multiple of 3.

Sir, is it possible to use long division to do this?

Arulx Z - 5 years, 10 months ago

Log in to reply

I'm not sure. Try n 3 + 3 n 2 + 5 n + 3 n 3 \dfrac{n^3+3n^2+5n+3}{n-3} .

Chew-Seong Cheong - 5 years, 10 months ago

Log in to reply

I tried using it but I got the remainder as 72 using remainder theorem.

Arulx Z - 5 years, 10 months ago

Log in to reply

@Arulx Z So correct. 72 is divisible by 3. So remainder is 0.

Chew-Seong Cheong - 5 years, 10 months ago

Log in to reply

@Chew-Seong Cheong Oh yes. You're right. I overlooked an important step.

Arulx Z - 5 years, 10 months ago

Log in to reply

@Arulx Z Actually just to get the answer. Since the expression f(n) has the same remainder when divided by 3 for all n. To get the solution. Just substitute n = 0, 1, 2. That was what I did before I write the solution. f(0) = 3, f(1) = 12, f(2) = 33. All divisible by 3.

Chew-Seong Cheong - 5 years, 10 months ago

n 3 + 3 n 2 + 5 n + 3 = ( n 3 + 3 n 2 + 2 n ) + ( 3 n + 3 ) = n^{3} + 3n^{2} + 5n + 3 = (n^{3} + 3n^{2} + 2n) + (3n + 3) =

n ( n 2 + 3 n + 2 ) + 3 ( n + 1 ) = n ( n + 1 ) ( n + 2 ) + 3 ( n + 1 ) . n(n^{2} + 3n + 2) + 3(n + 1) = n(n + 1)(n + 2) + 3(n + 1).

Now given any 3 3 consecutive integers, exactly one of them will be divisible by 3 , 3, i.e., exactly one of n , ( n + 1 ) , ( n + 2 ) n, (n + 1), (n + 2) is divisible by 3 , 3, and thus the product n ( n + 1 ) ( n + 2 ) n(n + 1)(n + 2) is divisible by 3 3 as well. Since 3 ( n + 1 ) 3(n + 1) is also divisible by 3 3 for any n , n, we see that the given polynomial is divisible by 3 3 for any integer n , n, leaving a remainder of 0 . \boxed{0}.

Even I was about to post the same solution

Rama Devi - 5 years, 10 months ago
Rama Devi
Jul 24, 2015

n 3 + 3 n 2 + 5 n + 3 n^3 + 3n^2 + 5n + 3 = n 3 + 3 n 2 + ( 6 n n ) + 3 n^3 + 3n^2 + (6n - n) + 3

= ( n 3 n ) (n^3 - n) + 3 ( n 2 + 2 n + 1 ) 3(n^2 + 2n + 1)

= n ( n 2 1 ) n(n^2 - 1) + 3 ( n 2 + 2 n + 1 ) 3(n^2 + 2n + 1)

= ( n 1 ) ( n ) ( n + 1 ) (n - 1)(n)(n + 1) + 3 ( n 2 + 2 n + 1 ) 3(n^2 + 2n + 1)

Not that any number of the form ( n 1 ) ( n ) ( n + 1 ) (n - 1)(n)(n + 1) is divisible by 3 and also 3 ( n 2 + 2 n + 1 ) 3(n^2 + 2n + 1) is always divisible by 3 3 for any n n .

Therefore the remainder left is 0 \boxed{0}

You're great

Sai Ram - 5 years, 10 months ago

Log in to reply

Thanx for the compliment.

Rama Devi - 5 years, 9 months ago
Jingyang Tan
Sep 17, 2015

Take n as 1. 1+3+5+3=12. 12 divided by 3 is 4 R0 QED.

Your solution is not at all correct.You showed that it is the answer only if n = 1 n=1 .You must explain that n n can take any value.

Rama Devi - 5 years, 9 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...