Skip to content

Provides a simple interface to calculate integers represented by a Binary Quadratic Form efficiently with SageMath. On top of that a query function to the OEIS.

License

Notifications You must be signed in to change notification settings

PeterLuschny/BinaryQuadraticForms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Binary Quadratic Forms ...

Positive numbers represented by a binary quadratic form.

This SageMath notebook implements methods for calculating the numbers represented by a binary quadratic form in a uniform and efficient way and hides the complexity of the situation by providing a simple interface for the user.

... at your fingertips:

Go to SageMath CellServer and enter:

load('https://raw.githubusercontent.com/PeterLuschny/BinaryQuadraticForms/main/BinaryQF.sage')

Example 1:

Q = binaryQF([1, 0, -2])
Q.represented_positives(100, 'prime')

Example 2:

oeis_bqf([1, 1, -1], 100, 'primitively', terse=False) 

Example 3:

oeis_bqf([1, 1, 1], 100, 'tutti')

Example 4: (shows the use on OEIS)

oeis_bqf([1, 13, -9], 1000, 'tutti')

About

Provides a simple interface to calculate integers represented by a Binary Quadratic Form efficiently with SageMath. On top of that a query function to the OEIS.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published