Syntactic Confectionery Delight | |
PerlMonks |
Re: Re: Formulas for certain 'fangs'by Anonymous Monk |
on Jun 11, 2002 at 17:26 UTC ( [id://173579]=note: print w/replies, xml ) | Need Help?? |
a couple of general formulas such as the the fangs
x = 25.10^k+1 y = 100(10^(k+1)+52)/25 give the vampire
v = xy = (10^(k+1)+52)10^(k+2)+100(10^k+1+52)/25
= x'.10^(k+2)+t
where x' denotes x with digits reversed
In Section
Cool Uses for Perl
|
|