Why is the last number in this post 2 instead of 1 please?
FACTORS=: p: i. 4
HUMBLE=: 1
next=: 3 : 0
result=. <./ HUMBLE
i=. HUMBLE i. result
HUMBLE=: ~. (((i&{.) , (>:i)&}.) HUMBLE) , result * FACTORS
result
)
reset=: 3 :'0 $ HUMBLE=: 1'next reset'' 1 <next^:(<1)reset'' ++ || ++ next^:(<2)reset'' 0 2 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
