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.

A118653 Least number of squares that add up to the partition number A000041(n).

Original entry on oeis.org

1, 1, 2, 3, 2, 4, 3, 4, 3, 3, 3, 3, 3, 2, 4, 3, 4, 3, 3, 2, 3, 3, 3, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 4, 3, 3, 2, 3, 4, 3, 3, 4, 3, 3, 4, 3, 3, 3, 3, 3, 3, 4, 3, 3, 3, 3, 4, 3, 3, 3, 3, 3, 4, 3, 3, 3, 2, 2, 4, 2, 3, 3, 4, 3, 4, 3, 3, 4, 3, 2, 4, 4, 4, 3, 3, 2, 3, 3, 3, 2, 2, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3
Offset: 0

Views

Author

Jonathan Vos Post, May 17 2006

Keywords

Examples

			a(20) = 3 because P(20) = 627 = 25^2 + 1^2 + 1^2.
a(36) = 2 because P(36) = 17977 = 124^2 + 51^2, which is prime.
a(66) = 2 because P(66) = 2323520 = 1504^2 + 248^2.
a(67) = 2 because P(67) = 2679689 = 1205^2 + 1108^2.
a(100) = 3 because P(100) = 190569292 = 13730^2 + 1434^2 + 6^2.
		

Crossrefs

Formula

a(n) = A002828(A000041(n)).