b
a
s
e
2
3
4
5
6
7
8
9
n
,
n
u
m
b
e
r
o
f
d
i
g
i
t
s
o
f
x
2
3
4
5
n
e
w
b
a
s
e
1
0
n
u
m
b
e
r
x
s
t
e
p
s
0
1
2
3
4
5
6
7
x
=
1
2
7