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.

A383252 Numbers that cannot be written in the form (j+2k)^2-(j+k)^2-j^2 with j,k>0.

Original entry on oeis.org

1, 2, 5, 6, 8, 9, 10, 13, 14, 17, 18, 21, 22, 24, 25, 26, 29, 30, 33, 34, 37, 38, 40, 41, 42, 45, 46, 49, 50, 53, 54, 56, 57, 58, 61, 62, 65, 66, 69, 70, 72, 73, 74, 77, 78, 81, 82, 85, 86, 88, 89, 90, 93, 94, 97, 98, 101, 102, 104, 105, 106, 109, 110, 113
Offset: 1

Views

Author

DarĂ­o Clavijo, Apr 20 2025

Keywords

Comments

Numbers congruent to {1, 2, 5, 6, 8, 9, 10, 13, 14} mod 16.
Also, numbers not of the form (j+k)*(3k-j) for j,k>0.
These numbers do not have any pair of divisors x, y such that x+y is a multiple of 4.

Crossrefs

Cf. A364168.

Programs

  • Python
    isok = lambda n: (n & 15) in [1, 2, 5, 6, 8, 9, 10, 13, 14]
    print([n for n in range(1,256) if isok(n)])