laziness, impatience, and hubris | |
PerlMonks |
Re: [OT (though it might involve some Perl programming)] One for the weekend. (Updated: significant typo!)by choroba (Cardinal) |
on Mar 28, 2015 at 08:15 UTC ( [id://1121627]=note: print w/replies, xml ) | Need Help?? |
Before I went to bed, I only had a guess. I started with a pen and paper, and some maths:
Now, we need to find the width. To be able to step on every tile, it must be coprime with the height, and moreover, width - 2 must be coprime with the height as well. I drew the simplest cases and extrapolated the observation to the following sequence: 3, 9, 11, 13, 19, 21, 23... And when I got up, I verifyied the results with a Perl program. Specify a true command line argument to see the paths:
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
In Section
Seekers of Perl Wisdom
|
|