-
Recent Posts
Archives
- April 2013 (1)
- March 2013 (4)
- February 2013 (3)
- January 2013 (1)
- November 2012 (1)
- October 2012 (1)
- September 2012 (5)
- July 2012 (1)
- May 2012 (2)
- April 2012 (3)
- March 2012 (2)
- January 2012 (1)
- June 2011 (1)
- March 2011 (2)
- September 2010 (3)
- July 2010 (4)
- June 2010 (3)
- March 2010 (3)
- February 2010 (4)
- January 2010 (4)
- December 2009 (1)
- September 2009 (1)
- August 2009 (4)
- July 2009 (3)
- June 2009 (5)
- May 2009 (2)
- March 2009 (1)
- February 2009 (5)
- January 2009 (2)
- November 2008 (1)
- October 2008 (2)
- September 2008 (1)
- August 2008 (1)
- July 2008 (4)
Blogroll
Meta
Monthly Archives: March 2012
Partitions into the quintillions
One of my biggest undertakings last year was to implement the partition function $p(n)$ in FLINT. With this code, I was able to set a record by computing the number of partitions of $10^{19}$, or 10,000,000,000,000,000,000 (ten quintillion). The number … Continue reading
Posted in flint, partitions, sage
Comments Off
Factorials mod n and Wilson’s theorem
Wilson’s theorem states that an integer greater than 1 is a prime if and only if $(n-1)! \equiv -1 \bmod n$. This immediately gives a simple algorithm to test primality of an integer: just multiply out $1 \times 2 \times … Continue reading
Posted in flint, math, Uncategorized
Comments Off