1MATHO-SUMSQ(1)               Mathomatic Utilities               MATHO-SUMSQ(1)
2
3
4

NAME

6       matho-sumsq - Find the minimum sum of the squares for integers
7
8

SYNOPSIS

10       matho-sumsq [numbers]
11
12

DESCRIPTION

14       This command-line utility is optionally part of the mathomatic(1) pack‐
15       age.  It finds the  minimum  number  of  positive  integers  that  when
16       squared  and  added together, equal the given number.  There is a proof
17       that no more than 4 squares summed together are required  to  represent
18       any positive integer.
19
20       The  command-line  may  contain  positive  integers to find the minimum
21       squares of, they must be less than 2147483648 (2^31) on 32-bit  systems
22       or  less  than 9223372036854775808 (2^63) on 64-bit systems.  If "+" is
23       appended to the given number, the program counts up from the given num‐
24       ber.   If the minimum number of squares is 2, this program displays all
25       possible combinations with 2 squares for the given number, otherwise it
26       just displays the first combination it finds.
27
28       If  no command-line arguments are given, the programs reads the numbers
29       from standard input.
30
31

AUTHOR

33       George  Gesslein  II  (gesslein@mathomatic.org)  at   "http://www.math
34       omatic.org".
35
36

REPORTING BUGS

38       If   you   find   a   bug,  please  report  it  to  the  author  or  at
39       "https://launchpad.net/mathomatic".
40
41

SEE ALSO

43       mathomatic(1), matho-pascal(1), matho-primes(1)
44
45
46
47Mathomatic                                                      MATHO-SUMSQ(1)
Impressum