bradencarlson / sage-jupyter

SageMath files (via Jupyter Notebooks) that give an introduction to using SageMath to explore select topics in Abstract Algebra and Cryptography. Note that no local installation of SageMath or Jupyter Notebooks is required to access and use this Project
MIT License
3 stars 2 forks source link

Knapsack #19

Closed bradencarlson closed 2 years ago

bradencarlson commented 2 years ago
bradencarlson commented 2 years ago

The inverse_mod() function has been fixed. Although now, when creating a public sequence, we run into the issue of the code

public_sequence.append((a*seq[i]) % m)

in the public sequence method believes that it has a tuple and an integer as operands for the % operator, which is not the case, but should be fixed.

bradencarlson commented 2 years ago

Finally Fixed!