A158894 Sawtooth pattern of one, then two, then three, then four etc. consecutive odd numbers, starting each time at 3.
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
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1000
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
Comments