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.

A131754 Size of the largest subset of {1,2,...,n} such that no two distinct elements differ by a perfect square > 1.

Original entry on oeis.org

1, 2, 3, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 7, 8, 8, 8, 8, 8, 8, 9, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 13, 13, 13, 13, 13, 14, 15, 15, 15, 15, 15, 15, 16, 17, 17, 17, 17, 17, 17, 18, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 22, 23, 24, 24, 24, 24, 24
Offset: 1

Views

Author

Olivier Gérard, Sep 17 2007

Keywords

Crossrefs

Programs

  • Maple
    f:= proc(n) uses GraphTheory; IndependenceNumber(Graph(n,
       {seq(seq({i,i+x^2},x=2..floor(sqrt(n-i))),i=1..n)}));
    end proc:
    map(f, [$1..58]); # Robert Israel, Mar 20 2017

Extensions

More terms from Robert Israel, Mar 20 2017