how to check if an integer is represented by a given quadratic form or not ?

asked 1 year ago

SageNT gravatar image

updated 1 year ago

FrédéricC gravatar image

The command "Q.representation_number_list(n)" will check the representations of integers from 0 to n-1 by Q. It is very time consuming.Is there some other command can check the representation of a single integer directly?

Preview: (hide)

Comments

Isn't that what Q.is_locally_represented_number(n) does?

Max Alekseyev gravatar imageMax Alekseyev ( 1 year ago )

This command gives answer if n is represented by Q over rational numbers, not over integers. I am looking for integral solutions. Thank you, Max!

SageNT gravatar imageSageNT ( 1 year ago )