Skip to content

Latest commit

 

History

History
38 lines (18 loc) · 1.29 KB

README.md

File metadata and controls

38 lines (18 loc) · 1.29 KB

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')