>  SumOfFact ( ^: 3 ) 169

I would call that one, unhelpful cheating.

    ([: +/@:! 10 #. inv ])^:(1454)  3 
363601 



----- Original Message -----
From: Dan Bron <[email protected]>
To: [email protected]
Cc: 
Sent: Friday, September 5, 2014 10:29:37 AM
Subject: Re: [Jprogramming] repeated applications of a verb

If we're allowed to re-arrange the words, there are exactly 10 ways to
produce the same result:

       +/ (-:"1 {.)@:(". ::_:"".) (A.~ i.@:!@:#)&.;: 'SumOfFact^:3 (169)'
    10

HINT: There's something special about the results of this particular
sentence, so you may not agree with all the "equivalent" sentences.

-Dan

Spoilers in 20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1

       (#~ (-:"1 {.)@:(". ::_:"".)) (A.~ i.@:!@:#)&.;: Q
    SumOfFact ^: 3 ( 169 )
    SumOfFact ^: ( 3 ) 169
    SumOfFact ^: ( 169 ) 3
    SumOfFact ^: 169 ( 3 )
    SumOfFact ( ^: 3 ) 169
    SumOfFact ( ^: 169 ) 3
    3 ( SumOfFact ^: ) 169
    ( SumOfFact ^: 3 ) 169
    ( SumOfFact ^: 169 ) 3
    169 ( SumOfFact ^: ) 3



----- Original Message ---------------

Subject: Re: [Jprogramming] repeated applications of a verb
   From: Raul Miller <[email protected]>
   Date: Thu, 4 Sep 2014 21:40:47 -0400
     To: Programming forum <[email protected]>

There's at least two other ways of doing it, if you allow the words to be
reordered.

Thanks,

-- 
Raul


On Thu, Sep 4, 2014 at 8:37 PM, Henry Rich <[email protected]> wrote:

> The line is:
>
> SumOfFact^:3 169
>
> Using a single pair of parentheses, separating the 3 and the 169 requires
> placing at least one of the characters between the 3 and the 169.
>
> If you place both between 3 and 169, either order )( or () produces a
> syntax error.
>
> So you must place either the left or the right parenthesis there but not
> both.
>
> If the left, the only place to put the right is after the 169.
>
> If the right, there are only 3 words to the left of the added character
> (SumOfFact, ^:, and 3).  The lparen can be placed before any of those words.
>
> Total, 4 cases.
>
> Henry Rich
>
> (I write this in the full expectation that I am wrong, but I can do no
> other)
>
> On 9/4/2014 8:00 PM, Raul Miller wrote:
>
>> Correction:
>>
>> I see five different ways of using a single pair of parenthesis to
>> separate
>> the 3 and the 169.
>>
>> (I believed there was a fifth way but I needed to eat breakfast before I
>> could think clearly enough to see it.)
>>
>> Can you find them all?
>>
>> Thanks,
>>
>>  ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm



>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to