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!)
A282573 The number of steps taken on a staircase of n steps during the following routine: Take steps of length 1 up a staircase until you can't step any further, then take steps of length 2 down until you can't step any further, and so on. 1

%I #8 Feb 19 2017 09:21:38

%S 1,3,4,7,10,12,13,19,20,23,26,32,33,39,40,41,46,53,57,56,63,65,66,77,

%T 81,80,83,94,90,97,100,102,103,117,118,117,128,126,127,138,149,151,

%U 152,162,163,160,161,175,176,194,195,186,197,212,216,215,218,220,221

%N The number of steps taken on a staircase of n steps during the following routine: Take steps of length 1 up a staircase until you can't step any further, then take steps of length 2 down until you can't step any further, and so on.

%H Peter Kagey, <a href="/A282573/b282573.txt">Table of n, a(n) for n = 1..10000</a>

%e For n = 4:

%e step size 1: 0 -> 1 -> 2 -> 3 -> 4 (four steps);

%e step size 2: 4 -> 2 -> 0 (two steps);

%e step size 3: 0 -> 3 (one step).

%e Because the walker cannot take four steps down, a(4) = 4 + 2 + 1 = 7.

%Y Cf. A282442, A282443.

%K nonn

%O 1,2

%A _Peter Kagey_, Feb 18 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 August 29 19:56 EDT 2024. Contains 375518 sequences. (Running on oeis4.)