<?xml version="1.0" encoding="windows-1252"?>
<node id="1010073" title="Re: Puzzle Time" created="2012-12-22 22:59:37" updated="2012-12-22 22:59:37">
<type id="11">
note</type>
<author id="171588">
BrowserUk</author>
<data>
<field name="doctext">
&lt;blockquote&gt;&lt;i&gt;&lt;/i&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;spoiler&gt;&lt;strike&gt;986400&lt;/strike&gt; 548 (Fuckup: = instead of == !)
&lt;code&gt;
#! perl -slw
use strict;
use Algorithm::Combinatorics qw[ variations ];

my @digits = 1 .. 9;

my $c = 0;

for my $k ( 1 .. 9 ) {
    my $i = variations( \@digits, $k );
    while( my $aref = $i-&gt;next ) {
        my $n = join '', @$aref;
        my $dv = 0;
        for my $d ( @$aref ) {
            my $r = $n / $d;
            ++$dv if int( $r ) == $r; ## &lt;&lt;&lt;
        }
        ++$c if $dv == @$aref;
    }
}

print $c;
&lt;/code&gt;
&lt;/spoiler&gt;

&lt;div class="pmsig"&gt;&lt;div class="pmsig-171588"&gt;
&lt;hr /&gt;
&lt;font size=1 &gt;
&lt;div&gt;With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'&lt;/div&gt;
&lt;div&gt;Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.&lt;/div&gt;
&lt;div&gt;"Science is about questioning the status quo. Questioning authority". &lt;/div&gt;
&lt;div&gt;In the absence of evidence, opinion is indistinguishable from prejudice.
&lt;p align=right&gt; [http://thebottomline.cpaaustralia.com.au/|RIP Neil Armstrong]&lt;/p&gt;&lt;/div&gt;
&lt;/font&gt;

&lt;/div&gt;&lt;/div&gt;
</field>
<field name="root_node">
1010066</field>
<field name="parent_node">
1010066</field>
</data>
</node>
