2008/5/13 Joshua Zucker <<a href="mailto:joshua.zucker@gmail.com">joshua.zucker@gmail.com</a>>:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I didn't try Mathematica but it was the work of only a few minutes in<br>
DrScheme to write the pentagonal number recurrence.  I'd share the<br>
source code but I used an ugly hack - I precomputed the pentagonals up<br>
to a large enough value and precomputed the signs to go with them, and<br>
then just hacked away at the recursion, using memoization to avoid<br>
recomputing old values in the recurrence.  So, ugly code.</blockquote><div><br>In fact you don't need to write a program for that, because one of the famous Ramanujan congurence identity says, that numbpart(5*k+4)==0 mod 5, so numbpart(11269)=...851==1 mod 5 can't be true.<br>
</div></div>