0xDE ([info]11011110) wrote,
@ 2007-03-19 20:58:00
Previous Entry  Add to memories!  Tell a Friend  Next Entry
Entry tags:continued fractions, number theory, pell equation, python, smooth numbers, stormer's theorem

Størmer's algorithm
Størmer's theorem is really not so much a theorem but an algorithm, for finding pairs of consecutive smooth numbers. I implemented Lehmer's improved algorithm, in Python, as I needed an implementation to generate some examples while expanding the WP article (and maybe more importantly, to check my understanding of Lehmer's paper). It includes some careful bignum implementation of rounding quadratic irrationals, finding continued fraction expansions of them, and solving Pell's equation, which might be useful for other purposes.



Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…