SquaresR
The number of ways to write as a sum of squares, counting signs and order.
✓ checked against that system · ! checked, with disagreements (hover a chip)Fungrim
SquaresRWolfram LanguageSquaresR✓SquaresR(d, n): ordered, signed -tuples summing to Typed signatures
| Type | Package | Applies |
|---|---|---|
(integer, integer) -> integer | number-theory | always |
Details
- By brute-force lattice-point enumeration, so signs and order are counted directly rather than adjusted for after the fact.
- Jacobi's four-square theorem: when . See DivisorSigma.
Examples
About
| Examples | 9 |
|---|---|
| Checked against | Wolfram Language 9 agree |
| Crosswalk | FungrimWolfram Language |
See also: PowersRepresentations, DivisorSigma