Using Cartesian with duplicate digits

 ,".@:~.&>{4#<'0126'

0 1 2 6 1 1 12 16 2 21 2 26 6 61 62 6 1 1 12 16 1 1 12 16 12 12 12 126 16
16 162 16 2 21 2 26 21 21 21 216 2 21 2 26 26 261 26 26 6 61 62 6 61 61 612
61 62 621 62 62 6 61 62 6 10 10 102 106 10 10 102 106 102 102 102 1026 106
106 1062 106 10 10 102 106 10 1...


Without duplicates

~.,".@:~.&>{4#<'0126'

0 1 2 6 12 16 21 26 61 62 126 162 216 261 612 621 10 102 106 1026 1062 120
160 1206 1260 1602 1620 20 201 206 2016 2061 210 2106 2160 260 2601 2610 60
601 602 6012 6021 610 6102 6120 620 6201 6210
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to