On Saturday, 23 July 2022 at 22:50:55 UTC, Salih Dincer wrote:
**My code outputs:** ``` [0, 0, 0, 0, 0, 0, 0, 0]: 1 [0, 0, 0, 0, 0, 0, 0, 1]: 2 [0, 0, 0, 0, 0, 0, 1, 0]: 3 [0, 0, 0, 0, 0, 0, 2, 1]: 4 [0, 0, 0, 0, 0, 1, 1, 0]: 5 [0, 0, 0, 0, 0, 2, 0, 1]: 6 [0, 0, 0, 0, 0, 2, 1, 0]: 7 [0, 0, 0, 0, 0, 2, 2, 1]: 8 ```
I guess my code didn't list all possibilities either. Moreover, the m and n parameters will be swapped:
``` [ 0, 0, 0 ]: 1* [ 0, 0, 1 ]: 2* [ 0, 0, 2 ]: 3 [ 0, 1, 0 ]: 4* [ 0, 1, 1 ]: 5 [ 0, 1, 2 ]: 6 [ 0, 2, 0 ]: 7 [ 0, 2, 1 ]: 8* [ 0, 2, 2 ]: 9 [ 1, 0, 0 ]: 10 [ 1, 0, 1 ]: 11 [ 1, 0, 2 ]: 12 [ 1, 1, 0 ]: 13* [ 1, 1, 1 ]: 14 [ 1, 1, 2 ]: 15 [ 1, 2, 0 ]: 16 [ 1, 2, 1 ]: 17 [ 1, 2, 2 ]: 18 [ 2, 0, 0 ]: 19 [ 2, 0, 1 ]: 20* [ 2, 0, 2 ]: 21 [ 2, 1, 0 ]: 22* [ 2, 1, 1 ]: 23 [ 2, 1, 2 ]: 24 [ 2, 2, 0 ]: 25 [ 2, 2, 1 ]: 26* [ 2, 2, 2 ]: 27 ```
**PS.** * marked from version(c) in the above list is from version(b).
SDB@79