There are 6 different coins in a fairy land Biland. A, B, C, D, E, F-coins. Written as Ag, Bg, Cg, Dg, Eg, Fg. The smallest is Ag and the biggest is Fg.
- 1 Fg = 2 Eg = 4 Dg = 8 Cg = 16 Bg = 32 Ag
- 1 Eg = 2 Dg = 4 Cg = 8 Bg = 16 Ag
- 1 Dg = 2 Cg = 4 Bg = 8 Ag
- 1 Cg = 2 Bg = 4 Ag
- 1 Bg = 2 Ag
Instructions:
Define selected number of A-coins as Biland sum.
Example
Express 12 A-coins as Biland amount.
Bg
Cg
Dg
Eg
Fg
Solution
Express 12 A-coins as Biland amount.
0
Bg
Bg
1
Cg
Cg
1
Dg
Dg
0
Eg
Eg
0
Fg
Fg