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.

A165513 Trapezoidal numbers.

Original entry on oeis.org

5, 7, 9, 11, 12, 13, 14, 15, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 29, 30, 31, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81
Offset: 1

Views

Author

Ant King, Sep 23 2009

Keywords

Comments

Trapezoidal numbers are polite numbers (A138591) that have a runsum representation which excludes one, and hence that can be depicted graphically by a trapezoid. Jones and Lord have shown that this is the sequence of integers excluding the powers of 2, the perfect numbers and integers of the form 2^(k-1)*(2^k+1) where k is necessarily a power of 2 and 2^k+1 is a Fermat prime (A019434).

Examples

			As 12=3+4+5 is the fifth integer with a runsum representation which excludes one, then a(5)=12.
		

References

  • Smith, Jim: Trapezoidal numbers, Mathematics in School (November 1997).

Crossrefs

Programs

  • Mathematica
    Trapezoidal[n_]:=Module[{result},result={};Do[sum=0;start=i;lis={};m=i; While[sum0 &]