Equality of functions and mods

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

Homework Help Overview

The problem involves determining the equality of two functions, f and g, defined on the set J3 = {0, 1, 2} using modular arithmetic with modulus 3. The functions are expressed as f(x) = (x² + x + 1) mod 3 and g(x) = (x + 2)² mod 3, prompting a discussion on their equivalence.

Discussion Character

  • Conceptual clarification, Assumption checking

Approaches and Questions Raised

  • Participants discuss the meaning of "mod 3" and its implications for the functions. There is an exploration of the correctness of a provided table of values for the functions, with some participants questioning the accuracy of the calculations presented.

Discussion Status

The discussion is ongoing, with participants providing clarifications about modular arithmetic and expressing differing views on the accuracy of the function evaluations. Some participants are seeking further understanding of the concept of function equality in this context.

Contextual Notes

There is mention of a lack of information on the topic of function equality in various algebra and calculus texts, leading to confusion among participants regarding terminology and concepts.

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
3K
  • · 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