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.

A298731 Number of distinct representations of n as a sum of four terms of A020330 (including 0), where order does not matter.

Original entry on oeis.org

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

Views

Author

Jeffrey Shallit, Jan 25 2018

Keywords

Examples

			For n = 45, the a(45) = 4 solutions are 45 = 15+15+15 = 36+3+3+3 = 15+10+10+10.
		

Crossrefs

Cf. A020330, A290334, A290335 (which is the same sequence where order matters).

Programs

  • Mathematica
    v = Table[k + k * 2^Floor[Log2[k] + 1], {k, 0, 8}]; a[n_] := Length @ IntegerPartitions[n, {4}, v]; Table[a[n], {n, 0, v[[-1]]}] (* Amiram Eldar, Apr 09 2021 *)