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.

A138594 Sums of 6 or more consecutive nonnegative integers.

Original entry on oeis.org

15, 21, 27, 28, 33, 35, 36, 39, 42, 44, 45, 49, 51, 52, 54, 55, 56, 57, 60, 63, 65, 66, 68, 69, 70, 72, 75, 76, 77, 78, 81, 84, 85, 87, 88, 90, 91, 92, 93, 95, 98, 99, 100, 102, 104, 105, 108, 110, 111, 112, 114, 115, 116, 117, 119, 120, 121, 123, 124, 125, 126, 129
Offset: 1

Views

Author

Keywords

Comments

Also, the numbers of the form s*k+A000217(k-1), s>=0, k>=6. [From R. J. Mathar, Jul 31 2008]

Examples

			0+1+2+3+4+5=15, 1+2+3+4+5+6=21, 2+3+4+5+6+7=27, 1+2+3+4+5+6+7=28, ...
		

Programs

  • Maple
    N:= 1000: # to get all terms <= N
    sort(convert({seq(seq(b*(2*a+b-1)/2, a=0..floor(N/b - (b+1)/2)),
    b=6..floor((sqrt(1+8*N)-1)/2))},list)); # Robert Israel, Mar 11 2016
  • Mathematica
    Array[r,9];k=0;For[i=0,i<=77,a=i*5+10;For[j=i+5,j<=77,a=a+j;k++;r[k]=a;j++ ];i++ ];q=Union[Array[r,k]];StringTake[ToString[q],123]

Extensions

More terms from Vladimir Joseph Stephan Orlovsky, Mar 07 2010
Name edited by Robert Israel, Mar 11 2016