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.

A050941 Numbers that are not the sum of consecutive triangular numbers.

Original entry on oeis.org

2, 5, 7, 8, 11, 12, 13, 14, 17, 18, 22, 23, 24, 26, 27, 29, 30, 32, 33, 37, 38, 39, 40, 41, 42, 43, 44, 47, 48, 50, 51, 53, 54, 57, 58, 59, 60, 61, 62, 63, 65, 67, 68, 69, 70, 71, 72, 73, 75, 76, 77, 79, 82, 86, 87, 88, 89, 90, 92, 93, 94, 95, 96, 97
Offset: 1

Views

Author

N. J. A. Sloane, Jan 02 2000

Keywords

Comments

Numbers that are not the difference of two tetrahedral numbers. - Franklin T. Adams-Watters, Dec 16 2015

Crossrefs

Complement of A034706.

Programs

  • Haskell
    import Data.List.Ordered (minus)
    a050941 n = a050941_list !! (n-1)
    a050941_list = minus [0..] a034706_list
    -- Reinhard Zumkeller, May 12 2015
  • Mathematica
    lim = 20; Take[#, Floor[Length[#]/lim]] &@ Complement[Range@ Max@ #, #] &@ Union[Subtract @@@ Map[Sort[#, Greater] &, Permutations[Table[Binomial[n + 2, 3], {n, 0, lim}], {2}]]] (* Michael De Vlieger, Dec 17 2015, in part after Zerinvary Lajos at A000292 *)