// archives

Math

This category contains 4 posts

Find Solutions for Krypto Math Game Problems

Solve Krypto math problems

Generating Pythagorean Triples

Euclid’s simple formula to generate Pythagorean triples.

Panmagic (Pandiagonal) and magic square generation, testing

Magic Squares While working on an idea for maximizing a return on a financial portfolio using magic squares, we though we would share our Python code in case someone else may have some use for it. import string def make_magic_square(n): if n < 1 or n == 2: return False if n % 2 == […]

The Parallelogram Law Proven Analytically

Prove analytically that the sum of the squares of the four sides of a parallelogram is equal to the sum of the squares of the diagonals.