Skip to content

enumerating sums of 2/3/4 squares for integers #35179

Open
@dimpase

Description

@dimpase

Is there an existing issue for this?

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.

Problem Description

given $n\in\mathbb{N}$, sometimes one needs all the possible (perhaps up to ordering of parts by size)
decompositions of $n$ into sums of as few squares as possible, not just one, which are currently provided, e.g. in
#6509 for 4 squares.

Not sure whether there are studies for this.

Proposed Solution

impelement!

Alternatives Considered

same situation in sympy, see https://docs.sympy.org/latest/modules/solvers/diophantine.html#sum-of-squares

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions