cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A025414 a(n) is the smallest number that is the sum of 3 nonzero squares in exactly n ways.

Original entry on oeis.org

3, 27, 54, 129, 194, 209, 341, 374, 614, 594, 854, 1106, 1314, 1154, 1286, 1746, 1634, 1881, 2141, 2246, 2609, 2889, 3461, 3366, 3449, 3506, 4241, 4289, 5066, 4826, 5381, 5606, 6569, 5561, 6254, 7601, 8186, 8069, 8714, 8126, 9434, 8921, 8774, 11066, 11574
Offset: 1

Views

Author

Keywords

Comments

A025427(a(n)) = n and A025427(m) != n for m < a(n). - Reinhard Zumkeller, Feb 26 2015

Examples

			54 is the smallest number having three partitions into nonzero squares: 54 = 1+4+49 = 4+25+25 = 9+9+36.
		

Crossrefs

Cf. A094740 (n having a unique partition into three positive squares), A095812 (greatest number having exactly n partitions into three positive squares).
Cf. A025427.

Programs

  • Haskell
    import Data.List (elemIndex); import Data.Maybe (fromJust)
    a025414 = fromJust . (`elemIndex` a025427_list)
    -- Reinhard Zumkeller, Feb 26 2015
  • Mathematica
    lim=200; nLst=Table[0, {lim^2}]; Do[n=a^2+b^2+c^2; If[n>0 && n