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.

A006997 Partitioning integers to avoid arithmetic progressions of length 3.

Original entry on oeis.org

0, 0, 1, 0, 0, 1, 1, 2, 2, 0, 0, 1, 0, 0, 1, 1, 2, 2, 1, 2, 2, 3, 3, 4, 3, 3, 4, 0, 0, 1, 0, 0, 1, 1, 2, 2, 0, 0, 1, 0, 0, 1, 1, 2, 2, 1, 2, 2, 3, 3, 4, 3, 3, 4, 1, 2, 2, 3, 3, 4, 3, 3, 4, 4, 5, 5, 4, 5, 5, 6, 6, 7, 4, 5, 5, 4, 5, 5, 6, 6, 7, 0, 0, 1, 0, 0, 1
Offset: 0

Views

Author

Keywords

Comments

a(n) = 0 iff n in A005836.

References

  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Formula

a(3n+k) = floor((3*a(n)+k)/2), 0 <= k <= 2.
a(n) = A100480(n+1) - 1. - Pontus von Brömssen, Apr 09 2025