Advanced Search
Search Results
26 total results found
Euler 0017
The Problem: If you were to write out a number as a word, you could then count the letters and generate a new number. For example: 1 becomes one which becomes 3. We use british convention which adds an 'and' between the hundreds and tens place. For example ...
Euler 0018
The Problem: Moving through a triangle of number (every number chosen yields 2 more numbers to choose), what is the highest sum path in the triangle? Considerations and Approach: We will populate a tree data structure with the data from the triangle, and th...
Euler 0019
The Problem: How many Sundays fell on the first of the month between Jan 1 1901 and Dec 31 2000? Considerations: There is for sure a number theory mathematical way of handling this... but... Approach: What if we just imported a python calendar module and ...
Euler 0020
The Problem: What is the sum of the digits of 100! where n! means 1x2x3x4x...xn? Considerations and Approach: For Python this is trivial to produce 100! and then take the sum of the digits by converting to a string and back. The Code: import math ...
Euler 0021
The Problem: Let d(n) be defined as the sum of proper divisors of (numbers less than n which divide evenly into n).If d(a) = b and d(b) = a, where a =/= b, then a and b are an amicable pair and each of a and b are called amicable numbers. For example, the pr...
Euler 0022
The Problem: Get the total sum of a file of names if each letter in the name is mapped from 1-26 and then multiplied by the position in an alphabetical sort. Considerations and Approach: We read in the file into an array of names. After that it just needs t...
Euler 0023
The Problem: A perfect number is a number for which the sum of its proper divisors is exactly equal to the number. A number is called deficient if the sum of its proper divisors is less than and it is called abundant if this sum exceeds. As 12 is the smalle...
Euler 0024
The Problem: What is the millionth lexicographic permutation of the digits 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9? Considerations and Approach: Well, this is another problem that Python has a simple built in way... Generating all of the permutations of the number...