The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A285203 Local high points in A285200. 5

%I #7 May 10 2017 08:43:58

%S 2,3,3,4,3,4,3,4,3,5,3,4,3,4,3,5,3,4,3,4,3,5,3,4,3,4,3,5,3,4,3,4,3,6,

%T 3,4,3,4,3,5,3,4,3,4,3,5,3,4,3,4,3,5,3,4,3,4,3,6,3,4,3,4,3,5,3,4,3,4,

%U 3,5,3,4,3,4,3,5,3,4,3,4,3,6,3,4,3,4,3,5

%N Local high points in A285200.

%H Ken Knowlton, <a href="/A285200/a285200.png">Illustration showing what floor the elevator is on for the first 49 stages</a>

%p hit:=Array(1..50,0);

%p hit[1]:=1; a:=[1]; dir:=1; f:=1; pk:=[];

%p for s from 2 to 900 do

%p if dir>0 then f:=f+1; else f:=f-1; fi;

%p hit[f]:=hit[f]+1; a:=[op(a),f];

%p if (hit[f] mod f) = 0 then dir:=1; else dir:=-1; fi;

%p if s>2 and a[s-2]<a[s-1] and a[s-1]>a[s] then pk:=[op(pk),a[s-1]]; fi;

%p od:

%p a; # A285200

%p pk; # A285203

%Y Cf. A285200, A285201.

%K nonn

%O 1,1

%A _N. J. A. Sloane_, May 02 2017

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 20 10:30 EDT 2024. Contains 372712 sequences. (Running on oeis4.)