n
u
m
b
e
r
o
f
s
t
a
i
r
s
4
N
u
m
b
e
r
o
f
P
e
r
m
u
t
a
t
i
o
n
s
1
3
1
2
T
o
t
a
l
7
C
o
m
b
i
n
a
t
i
o
n
1
1
1
1
1
1
2
2
2
1
3
T
h
e
t
o
t
a
l
n
u
m
b
e
r
o
f
w
a
y
s
t
o
c
l
i
m
b
a
s
t
a
i
r
w
a
y
w
i
t
h
4
s
t
a
i
r
s
u
s
i
n
g
c
o
m
b
i
n
a
t
i
o
n
s
o
f
1
,
2
o
r
3
s
t
e
p
s
i
s
7
.
T
h
i
s
i
s
c
a
l
c
u
l
a
t
e
d
m
o
r
e
d
i
r
e
c
t
l
y
u
s
i
n
g
t
h
e
t
h
4
t
e
r
m
o
f
t
h
e
c
l
a
s
s
i
c
T
r
i
b
o
n
a
c
c
i
s
e
r
i
e
s
(
s
u
m
o
f
p
r
e
v
i
o
u
s
t
h
r
e
e
t
e
r
m
s
)
:
s
t
a
i
r
s
0
1
2
3
4
w
a
y
s
1
1
2
4
7