multiplication_table() of Zmod(p)
I want to print multiplication tables of Z_n (for n prime but this is irrelevant for my needs at the moment).
When I try e.g.
Zmod(5).multiplication_table(names='digits')
I get
* 0 1 2 3
+--------
0| 0 1 2 3
1| 1 2 3 0
2| 2 3 0 1
3| 3 0 1 2
what is not really what I want, I want the canonical representants. If I don't use the names-key, I get letters. How can I get 1, 2, 3, 4, or even better -2, -1, 1, 2?
What Sage are you using ? in 10.4.beta6, I get :
Your system seems to give you a (seriously mangled) version of the addition table :
I've typed a long answer, but submitting it was leading to an error... Have to type a shorter one.
EDIT: Nope... the shorter answer is also failing to work:
system error log is recorded, error will be fixed as soon as possible please report the error to the site administrators
OK, i am trying to type the answer as a comment...
I have no chance to put an answer in here... and this is not the first time. Here is a more complicated case:
The table for $\Bbb F_p$ with $p=17$, using the representatives $\pm1,\pm2,\dots,\pm8$:
This gives:
(more)The OP table seems to be:
It was not easy to guess...