mathomatic/doc/matho-sumsq.1.html

74 lines
2.6 KiB
HTML

<!-- manual page source format generated by PolyglotMan v3.2, -->
<!-- available at http://polyglotman.sourceforge.net/ -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<meta name="generator" content=
"HTML Tidy for Linux (vers 25 March 2009), see www.w3.org">
<title>MATHO-SUMSQ(1) manual page</title>
</head>
<body bgcolor='white'>
<a href='#toc'>Table of Contents</a>
<h2><a name='sect0' href='#toc0'>Name</a></h2>matho-sumsq - Find
the minimum sum of the squares for integers
<h2><a name='sect1' href=
'#toc1'>Synopsis</a></h2><b>matho-sumsq</b> [<i>numbers</i>]
<h2><a name='sect2' href='#toc2'>Description</a></h2>This
command-line utility is optionally part of the <a href=
'mathomatic.1.html'><b>mathomatic</b>(1)</a> package. It finds
the minimum number of positive integers that when squared and
added together, equal the given number. There is a proof that no
more than 4 squares summed together are required to represent any
positive integer.
<p>The command-line may contain positive integers to find the
minimum squares of, they must be less than 2147483648 (2^31) on
32-bit systems or less than 9223372036854775808 (2^63) on 64-bit
systems. If "+" is appended to the given number, the program
counts up from the given number. If the minimum number of squares
is 2, this program displays all possible combinations with 2
squares for the given number, otherwise it just displays the
first combination it finds.</p>
<p>If no command-line arguments are given, the programs reads the
numbers from standard input.</p>
<h2><a name='sect3' href='#toc3'>Author</a></h2>George Gesslein
II (gesslein@mathomatic.org) at "<a href=
'http://www.mathomatic.org'>http://www.mathomatic.org</a> ".
<h2><a name='sect4' href='#toc4'>Reporting Bugs</a></h2>If you
find a bug, please report it to the author or at "<a href=
'https://launchpad.net/mathomatic'>https://launchpad.net/mathomatic</a>
".
<h2><a name='sect5' href='#toc5'>See Also</a></h2><a href=
'mathomatic.1.html'><b>mathomatic</b>(1)</a> , <a href=
'matho-pascal.1.html'><b>matho-pascal</b>(1)</a> , <a href=
'matho-primes.1.html'><b>matho-primes</b>(1)</a>
<hr>
<p><a name='toc'><b>Table of Contents</b></a></p>
<ul>
<li><a name='toc0' href='#sect0'>Name</a></li>
<li><a name='toc1' href='#sect1'>Synopsis</a></li>
<li><a name='toc2' href='#sect2'>Description</a></li>
<li><a name='toc3' href='#sect3'>Author</a></li>
<li><a name='toc4' href='#sect4'>Reporting Bugs</a></li>
<li><a name='toc5' href='#sect5'>See Also</a></li>
</ul>
</body>
</html>