[Jprogramming] Morning Mystery
Linda A Alvord
lindaalvord at verizon.net
Fri Feb 26 06:35:24 UTC 2016
>From these versions, can any be adjusted to apply to other continued fraction like:
1%2+3%4+5%6+...... (All counting numbers now)
$'%/({:,+/)^:(3*4*5)[1 2'
22
$'%/({:,+/)^:(3*5)1'
17
$'%`+/(5*6)#1'
11
$'%(+%)/15$1'
10
$'2%1+%:5'
7
Linda
-----Original Message-----
From: Programming [mailto:programming-bounces at forums.jsoftware.com] On Behalf Of Raul Miller
Sent: Thursday, February 25, 2016 10:09 PM
To: Programming forum
Subject: Re: [Jprogramming] Morning Mystery
You can put spaces, or [ or ] between those digits, if you like. For example:
2%1+%:5[3[4[6]7]8]9
But the important part was Peter B Kessler's
Thanks,
--
Raul
On Thu, Feb 25, 2016 at 8:51 PM, Linda A Alvord <lindaalvord at verizon.net> wrote:
> 3467899 is not a counting number.
>
> Michal just had a "creative solution". Yours is another.
>
> Linda
>
> -----Original Message-----
> From: Programming [mailto:programming-bounces at forums.jsoftware.com] On Behalf Of Raul Miller
> Sent: Thursday, February 25, 2016 6:07 PM
> To: Programming forum
> Subject: Re: [Jprogramming] Morning Mystery
>
> If the expression needs to use all nine digits:
>
> 2%1+%:5[346789
>
> (Note that Linda did not ask for any 0s).
>
> --
> Raul
>
>
> On Thu, Feb 25, 2016 at 5:58 PM, Michal Wallace
> <michal.wallace at gmail.com> wrote:
>> Using all 10:
>>
>> %(4 3 0 8 1,(7+9))(p. % 6 ^~ ]) 2*5
>>
>> On Thu, Feb 25, 2016 at 2:09 PM, Philip Hunt <philip.hunt at usa.net> wrote:
>>
>>> Like it Peter
>>>
>>> there are so many great formulae for phi...
>>>
>>> 2*1&o.o.1r10
>>> 0.618034
>>> similar (but not using ten ; which is not on Linda's list of course)
>>> _1+2*2&o.o.1r5
>>>
>>> 0.618034
>>>
>>>
>>>
>>>
>>>
>>> On 2/25/2016 2:15 PM, Peter B. Kessler wrote:
>>>
>>>> Thanks for noticing the golden ratio, which allows
>>>>
>>>> 2%1+%:5
>>>> 0.618034
>>>>
>>>> 3 nouns, 3 verbs: 7 characters.
>>>>
>>>> ... peter
>>>>
>>>> On 02/25/16 01:25 AM, Ben Gorte - CITG wrote:
>>>>
>>>>> I noticed a golden ratio.
>>>>>
>>>>> %/({:,+/)^:(3*4*5)[1 2 NB. 6, 7, 8 and 9 not needed
>>>>> 0.618034
>>>>>
>>>>> 22 characters excluding the comment
>>>>> (but then four numbers are missing)
>>>>>
>>>>> Ben
>>>>> ________________________________________
>>>>> From: Programming [programming-bounces at forums.jsoftware.com] on behalf
>>>>> of Linda A Alvord [lindaalvord at verizon.net]
>>>>> Sent: Thursday, February 25, 2016 08:49
>>>>> To: programming at jsoftware.com
>>>>> Subject: [Jprogramming] Morning Mystery
>>>>>
>>>>> Using only the single digit counting numbers:
>>>>>
>>>>>
>>>>>
>>>>> >:i.9
>>>>>
>>>>> 1 2 3 4 5 6 7 8 9
>>>>>
>>>>>
>>>>>
>>>>> write the shortest possible expression to produce:
>>>>>
>>>>>
>>>>>
>>>>> 0.618034
>>>>>
>>>>>
>>>>>
>>>>> Linxa
>>>>>
>>>>>
>>>>>
>>>>> l
>>>>>
>>>>>
>>>>>
>>>>> ----------------------------------------------------------------------
>>>>> 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
>>>
>> ----------------------------------------------------------------------
>> 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
More information about the Programming
mailing list