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

asked 2023-09-21 17:07:07 +0200

SageNT gravatar image

updated 2023-09-22 20:32:57 +0200

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?

edit retag flag offensive close merge delete


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

Max Alekseyev gravatar imageMax Alekseyev ( 2023-09-22 17:12:08 +0200 )edit

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 ( 2023-09-27 01:27:21 +0200 )edit