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.

Previous Showing 21-22 of 22 results.

A228062 Numbers not expressible as a*b + b*c + a*c + 1 with positive numbers a, b, c.

Original entry on oeis.org

1, 2, 3, 5, 7, 11, 19, 23, 31, 43, 59, 71, 79, 103, 131, 191, 211, 331, 463
Offset: 1

Views

Author

T. D. Noe, Sep 13 2013

Keywords

Comments

Except for the first term, all terms are prime. There is at most one more term.

Crossrefs

Cf. A025052.

Programs

  • Mathematica
    nn = 250; t = Select[Union[Flatten[Table[a*b + b*c + a*c + 1, {a, nn}, {b, a, nn}, {c, b, nn}]]], # <= 2*nn + 1 &]; Complement[Range[2*nn + 1], t]

A246850 Even numbers which cannot be represented by the surface area of an n1 X n2 X n3 block.

Original entry on oeis.org

2, 4, 8, 12, 20, 36, 44, 60, 84, 116, 140, 156, 204, 260, 380, 420, 660, 924
Offset: 1

Views

Author

Andreas Boe, Sep 05 2014

Keywords

Comments

Twice A025052, see there for further comments.

Examples

			A 1 X 1 X 1 block has surface area 6. A 1 X 1 X 2 block has surface area 10. No n1 X n2 X n3 block of intermediate size exists, so there is no way to create an n1 X n2 X n3 block with surface area 8.
		

Crossrefs

Cf. A025052.

Programs

  • Python
    from sympy import integer_nthroot
    def aupto(lim):
      e, r, lim2 = set(range(2, lim+1, 2)), set(), integer_nthroot(lim//2, 2)[0]
      for n1 in range(1, lim2):
        for n2 in range(n1, lim2):
          for n3 in range(n2, lim+1):
            r.add(2*(n1*n2 + n1*n3 + n2*n3))
      return sorted(e - r)
    print(aupto(1000)) # Michael S. Branicky, Feb 04 2021

Formula

a(n) = 2 * A025052(n).
Surface area = 2*(n1*n2 + n1*n3 + n2*n3).
Previous Showing 21-22 of 22 results.