SageMath Resources

Math 304: Number Theory - Spring 2026

About SageMath

SageMath is a free open-source mathematics software system based on Python. It is particularly useful for number theory computations and explorations.

Introduction To SageMath and Syntax

Number Theory Examples

Getting Started On Your Own

You can use SageMath in several ways. The simplest option is:

This has the benefit of not requiring any installation or creating an account. The drawback is that you cannot save code.


Alternative options:

Documentation