I came to this solution, which happens to be a transliteration of the
problem's formulation:
>./ */"1 ".items"1(13,\number)
where «numero» is the string with the number's digits (one thousand).

Please note I'm no programmer, and I'm learning a little J with no
other intent than just for curiosity.

Before proceeding into another Problem, I would like to modify the
solution above in order to avoid multiplying groups that contain
noughts. With iteration it would be something like instead of
".items"1 (13,\number), build the table ignoring _increasing some
counter that refers to position_  those subarrays that contains a zero
and the next few rows, where few is 13 minus the position of the last
zero counted, until the end of number is reached.
Is something alike that expressible with J? Can you give me some hints?

Best regards,
Marce
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to