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.

A122804 Smallest positive number divisible by n which is not of the form a(i)+a(j) for i and j <= n-1.

Original entry on oeis.org

1, 4, 3, 12, 10, 12, 21, 32, 9, 40, 55, 48, 26, 28, 45, 112, 17, 108, 114, 180, 63, 132, 23, 168, 150, 104, 270, 28, 145, 150, 186, 128, 99, 170, 70, 252, 370, 266, 39, 400, 328, 252, 301, 352, 495, 92, 188, 576, 245, 150, 408, 468, 106, 486, 165, 784, 342, 406, 649
Offset: 1

Views

Author

Ray Chandler, Sep 23 2006

Keywords

Comments

Same as A122544, except that a(n) is allowed to take values already in the sequence.

Crossrefs

Cf. A122537, A122544, A122805 (a(n)/n), A122806 (complement).

Programs

  • Mathematica
    f[s_] := Block[{n, k},k = n = Length[s] + 1;While[MemberQ[Union[Plus @@@ Tuples[s, 2]], k], k += n];Append[s, k]];Nest[f, {1}, 60]