Homepage › Solution manuals › Kenneth Ireland › A Classical Introduction to Modern Number Theory › Exercise 3.2
Exercise 3.2
Construct addition and multiplication tables for , and .
Answers
Proof. More a latex exercise than a mathematical one.
:
:
:
Python code to generate the latex code to create such an array :
n= 10
print(’$’)
ligne = ’\\begin{array}{c|’+ n*’c’+’}’
print(ligne)
ligne=’\\times’
for j in range(n):
ligne += ’ & ’ + str(j)
ligne += ’\\’
ligne += ’\\’
ligne += ’ \\hline’
print(ligne)
for i in range(n):
ligne = str(i)
for j in range(n):
ligne +=’ & ’+ str((i * j) % n)
ligne += ’\\’
ligne += ’\\’
print(ligne)
print(’\\end{array}’)
print(’$’)
□
2022-07-19 00:00