All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Just Math
Modular Polynomial Arithmetic (Posted on 2008-04-16) Difficulty: 3 of 5
Devise an algorithm which, for any polynomial P(x), will determine the polynomial remainder of P(x)/(x^2+x+1) without actually performing the division.

See The Solution Submitted by Brian Smith    
Rating: 4.0000 (3 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Simple examples | Comment 3 of 5 |
(x + 1)²  = x² +2x + 1
  Coeff's:  (B)1  (C)2  (A)1
  Rem = (C - B) * x + (A - B)
         = (2 - 1) * x + (1 - 1)
         = x
(x + 1)²/(x² +x + 1) =  1 + x/(x² +x + 1) ;
                               [1 * being the remainder]

(x + 1)³ = x³ + 3x² + 3x + 1
  Coeff's:  (B)3 (C) 3  (A) 1 + 1 [ie, first and last]
  Rem = (C - B) * x + (A -B)
         = (3 - 3) * x + (2 -3)
         =  -1
(x + 1)³/(x² +x + 1) = x + 2  -1/(x² +x + 1)
  Posted by brianjn on 2008-04-16 21:10:09
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (1)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (6)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information