Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
BYU Math 495R
BYU Math 495R
  • About This Course
  • Setting Up Google Colab
  • Lab 1: LaTeX
    • LaTeX Basics
    • Typesetting Mathematics
    • Page Elements
    • The Process
    • Exercises
    • Bonus: Customization
  • Lab 2: Plotting
    • Line Plots
    • Scatter Plots and Histograms
    • Visualization and Analysis
    • Exercises
  • Lab 3: More Loops
    • Loop Tools
    • Nested Loops
    • The WHILE Loop
    • Exercises
  • Lab 4: Iterables
    • Tuples and Lists
    • Sets and Dictionaries
    • Itertools
    • Exercises
  • Lab 5: The Caesar Cipher
    • Encryption and Ciphers
    • Strings
    • Caesar (Shift) Cipher
    • Exercises
  • Lab 6: The Vigenère Cipher
    • Vigenère Encryption
    • Finding the Key Length
    • Exercises
  • Lab 7: Cracking Ciphers
    • Cipher Cracking Strategy
    • Caesar Groups
    • Cracking the Cipher
    • Exercises
  • Lab 8: Recursion
    • Recursive Thinking
    • Branching Recursion
    • The Determinant
    • Exercises
  • Lab 9: The Euclidean Algorithm
    • Greatest Common Divisors
    • The Extended Algorithm
    • The Special Linear Group
    • Exercises
  • Lab 10: Prime Factorization
    • Prime Numbers
    • Factorization
    • Prime Sieves
    • Exercises
  • Lab 11: Counterexamples
    • Introduction to SymPy
    • Prime Conjectures
    • A Polynomial Conjecture
    • Exercises
  • Common Errors
Back to top

Lab 11: Counterexamples¶

Open Lab Notebook in Google Colab

Learning Objectives

  1. Use the SymPy library to do symbolic calculations in Python.

  2. Find counterexamples to a conjecture with a systematic computer search.

Lab Outline

  • Introduction to SymPy
  • Prime Conjectures
  • A Polynomial Conjecture
  • Exercises
Next
Introduction to SymPy
Previous
Exercises
Copyright © 2026, Brigham Young University Department of Mathematics
Made with Sphinx and @pradyunsg's Furo