Balancing the Scientific and the Fantastic

The Time Machine by H.G. Wells is one of my favorite science fiction novels. In here, I analyze how he pulled off the difficult feat of scientifically based fantasticism without weirding out the audience too much.

Balancing Genomic Privacy and Open Data Access

Genomic privacy is important. We don’t want the insurance companies sticking their snouts into our genomes. Open data access is also important. We want researchers to frolic in all the data they need. How do we balance the two needs?

Euler #13: Large Sum

The problem itself is very simple. One could even do it by hand. However, it’s tough to do with statically typed languages. Yet it’s a breeze with Python.

Euler #12: Highly Divisible Triangular Number

Triangle numbers and beer pong go hand in hand. Finding a highly divisible triangle number could be handy if you had a huge party and wanted to neatly divvy up the cups after a game (ew).

Euler #11: Largest Product in a Grid

What is the largest product of 4 adjacent numbers of a grid in the 8 compass directions? How do we avoid falling outside of the grid where there dragons be?

Discrete Derivatives

In the real world, data is discrete. We can measure things only so often or so finely. This post derives the general form for discrete derivatives and makes a quick ‘n dirty implementation.

Finding Lattice Points on an Elliptical Curve

We like nice round numbers. We like it even more when these are the solutions to complex equations. We love it when these solutions help find primes. Lattice points on elliptical curves are used in the Sieve of Atkin.

Euler #10: Summation of Primes

Adding up is fun. It’s even more fun when they’re primes. But, how do we find primes? We use sieves such as the Sieve of Atkin, which is implemented here.

Euler #9: Special Pythagorean Triplet

Pythagorean triplets acted as speed squares in ancient carpentry. The Babylonians knew of them before Pythagoras’s time. Euclid’s Formula makes a guest appearance.

Euler #8: Largest Product in a Series

Slide open a window and inhale the crisp air of freshly minted products. Of numbers, that is. The exercise is to find the thirteen adjacent digits in a 1000-digit number that have the greatest product.