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.

A158894 Sawtooth pattern of one, then two, then three, then four etc. consecutive odd numbers, starting each time at 3.

Original entry on oeis.org

3, 3, 5, 3, 5, 7, 3, 5, 7, 9, 3, 5, 7, 9, 11, 3, 5, 7, 9, 11, 13, 3, 5, 7, 9, 11, 13, 15, 3, 5, 7, 9, 11, 13, 15, 17, 3, 5, 7, 9, 11, 13, 15, 17, 19, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 3, 5, 7, 9, 11, 13, 15, 17, 19
Offset: 1

Views

Author

Paul Curtz, Mar 29 2009

Keywords

Comments

Obtained from A158405 by deleting the 1's, or from A141620 by deleting the positive numbers and flipping all signs.

Crossrefs

Programs

  • Mathematica
    sp[n_]:=Module[{cl=Range[3,51,2],l={}},Table[l=Join[l,Take[cl,i]], {i,n}];l ]; sp[15] (* Harvey P. Dale, Oct 30 2011 *)
    Table[Range[3,2n+1,2],{n,15}]//Flatten (* Harvey P. Dale, Jun 27 2025 *)
  • PARI
    forstep(m=3,9,2,forstep(n=3,m,2,print1(n", "))) \\ Charles R Greathouse IV, Oct 30 2011

Formula

a(A000124(i))=3, i>=0. - R. J. Mathar, Apr 04 2009

Extensions

Edited by R. J. Mathar, Apr 04 2009
Corrected by Harvey P. Dale, Oct 30 2011