in reply to Powers of three

Neat!

I wouldn't interpolate $a in the for loop. Or 1. Makes me kind of wonder what influenced you to do so.

Replies are listed 'Best First'.
Re^2: Powers of three
by simcop2387 (Acolyte) on Feb 07, 2006 at 07:55 UTC
    honestly i don't remember it was written in my statistics class at 9am
    i'm also partially curious as to why the program works, i know what its doing, i worked it out by hand before writing it in perl
      Nice code.

      Logically the state of any point is an XOR of its two parents taking a missing parent to be 0. (and seeding with a 1 at the point)