I'm using BC to convert between bases for massive numbers<div>See here <a href="http://ubuntuforums.org/showthread.php?t=1383101">http://ubuntuforums.org/showthread.php?t=1383101</a><br><br><div class="gmail_quote">2010/1/18 Richard Ward <span dir="ltr"><<a href="mailto:daedalusfall@gmail.com">daedalusfall@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Martin wrote:<br>
> Camilo Mesias wrote:<br>
>> It doesn't need that much brute force because the equation is so<br>
>> limited. The a+b+c bit appears twice and they are single digits. If n<br>
>> is a+b+c we can figure n is between 0 and 27, and n^2 + n is a three<br>
>> digit number. We have to start at n=10 to get a three digit result<br>
>> (110) but those digits don't add up to 10...<br>
>> n=11 (132)...<br>
>> n=12 (156) bingo<br>
>><br>
>> just as well because my times tables run out there!<br>
><br>
> Very good and well deduced.<br>
><br>
> Thinking further about trying for an algebra solution... There isn't one<br>
> in that all that any manipulation can do is either rearrange the formula<br>
> or just prove an identity.<br>
><br>
><br>
> At least it prompted a brief look at the "Mathomatic" program which<br>
> turned out to be rather neat. Hope I haven't spoilt anyone's homework!<br>
><br>
> Thanks for that,<br>
><br>
> Cheers,<br>
> Martin<br>
><br>
<br>
</div>Everyone likes a good maths puzzle, right?<br>
The new scientist has one every week. They are mostly fun combinatorics<br>
problems which can be solved in a few elegant lines of python (or your<br>
favorite language). I discovered the wonderful 'bc' because of this.<br>
Just try:<br>
echo 9^99999|bc<br>
Its so fast! And supports scripting in a language a little like c.<br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
Nottingham mailing list<br>
<a href="mailto:Nottingham@mailman.lug.org.uk">Nottingham@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/nottingham" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/nottingham</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Rory Holland<br>+44 7896-352533<br>+44 155-9708931<br>
</div>