ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 27 Sep 2023 01:27:21 +0200how to check if an integer is represented by a given quadratic form or not ?https://ask.sagemath.org/question/73535/how-to-check-if-an-integer-is-represented-by-a-given-quadratic-form-or-not/ 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? Thu, 21 Sep 2023 17:07:07 +0200https://ask.sagemath.org/question/73535/how-to-check-if-an-integer-is-represented-by-a-given-quadratic-form-or-not/Comment by SageNT for <p>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? </p>
https://ask.sagemath.org/question/73535/how-to-check-if-an-integer-is-represented-by-a-given-quadratic-form-or-not/?comment=73628#post-id-73628This command gives answer if n is represented by Q over rational numbers, not over integers. I am looking for integral solutions.
Thank you, Max!Wed, 27 Sep 2023 01:27:21 +0200https://ask.sagemath.org/question/73535/how-to-check-if-an-integer-is-represented-by-a-given-quadratic-form-or-not/?comment=73628#post-id-73628Comment by Max Alekseyev for <p>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? </p>
https://ask.sagemath.org/question/73535/how-to-check-if-an-integer-is-represented-by-a-given-quadratic-form-or-not/?comment=73543#post-id-73543Isn't that what `Q.is_locally_represented_number(n)` does?Fri, 22 Sep 2023 17:12:08 +0200https://ask.sagemath.org/question/73535/how-to-check-if-an-integer-is-represented-by-a-given-quadratic-form-or-not/?comment=73543#post-id-73543