Equality of functions and mods

  • Thread starter Thread starter Jim01
  • Start date Start date
  • Tags Tags
    Functions
Click For Summary
SUMMARY

The discussion centers on the equality of two functions, f(x) = (x² + x + 1) mod 3 and g(x) = (x + 2)² mod 3, defined over the set J3 = {0, 1, 2}. It is established that f(x) equals g(x) for all x in J3, as demonstrated through a table of values. The concept of "mod 3" is clarified as the remainder when divided by 3, which is crucial for understanding the equality of these functions. Misinterpretations of the addition table were addressed, leading to a clearer understanding of modular arithmetic.

PREREQUISITES
  • Understanding of modular arithmetic, specifically "mod 3".
  • Familiarity with basic algebraic functions and operations.
  • Knowledge of function equality and evaluation techniques.
  • Basic understanding of polynomial expressions and their simplifications.
NEXT STEPS
  • Research "modular arithmetic" and its applications in mathematics.
  • Learn about function equality and how to prove it using tables of values.
  • Explore polynomial functions and their properties in algebra.
  • Investigate the use of modular arithmetic in programming languages like Java.
USEFUL FOR

Students studying algebra, educators teaching modular arithmetic, and anyone interested in the mathematical foundations of function equality.

Jim01
Messages
36
Reaction score
0

Homework Statement



Let J3 = {0, 1, 2}, and define functions f and g from J3 to J3 as follows: For all x in J3,

f(x) = (x2 + x + 1) mod 3 and g(x) = (x + 2)2 mod 3.

Does f = g?

Homework Equations


The Attempt at a Solution



The above is an example from the book. The section is called Equality of Functions. The procedure is given on how to solve the problem, but no explanation is given for what mod 3 means or what it is used for.

Here is the solution:

Yes, the table of values shows that f(x) = g(x) for all x in J3.

x x2 + x + 1 f(x) = (x2 + x + 1)mod 3

0 1 1 mod 3 = 1
1 3 3 mod 3 = 0
2 7 7 mod 3 = 1

(x + 2)2 g(x) = (x + 2)2

4 4 mod 3 = 1
9 9 mod 3 = 0
16 16 mod 3 = 1

I have poured through my elementary algebra, intermediate algebra, pre-calculus and calculus I books and can find no information on equality of functions. Is it called something else by other books? Would someone please explain this to me?

Edit: Sorry for the poor table. While it looks right when I make it, it does not format correctly when I post it.
 
Physics news on Phys.org
Hi Jim01! :smile:
Jim01 said:
… no explanation is given for what mod 3 means or what it is used for …

It means that they have the same remainder on division by 3.

See http://en.wikipedia.org/wiki/Modular_arithmetic" for details. :wink:

but this addition table is completely wrong (and untrue):

0 1 1 mod 3 = 1
1 3 3 mod 3 = 0
2 7 7 mod 3 = 1

it should be:

0 0 1 mod 3 = 1
1 1 1 mod 3 = 0
4 2 1 mod 3 = 1
 
Last edited by a moderator:
tiny-tim said:
Hi Jim01! :smile:


It means that they have the same remainder on division by 3.

See http://en.wikipedia.org/wiki/Modular_arithmetic" for details. :wink:


Ahh. I see. They are using the word mod like it's used it in Java programming. I didn't see the connection. Thank you so much for the link. I will research it.


but this addition table is completely wrong (and untrue):

0 1 1 mod 3 = 1
1 3 3 mod 3 = 0
2 7 7 mod 3 = 1

it should be:

0 0 1 mod 3 = 1
1 1 1 mod 3 = 0
4 2 1 mod 3 = 1

Really? I double checked the book and that is what it has for that example solution. I assumed that the 0, 1, and 2 were being used in place of x. If that is the case then for x = 0, 02 + 0 + 1 = 1, for x = 1, 12 + 1 + 1 = 3, and for x = 2, 22 + 2 + 1 = 7.

I will investigate the link you gave.
 
Last edited by a moderator:
It's probably worthwhile to notice that (x + 2)2 = x2 + 4x + 4, and that 4 \equiv 1 (mod 3).
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
3K
Replies
10
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
1
Views
2K
Replies
9
Views
3K
Replies
1
Views
1K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K