# Blog Archives

## Euler Problem 29: Distinct Powers

July 5, 2017
By $Euler Problem 29: Distinct Powers$

Proposed solution to Euler Problem 29: Distinct Powers in the R language for statistical computing. Continue reading → The post Euler Problem 29: Distinct Powers appeared first on The Devil is in the Data.

## The Ulam Spiral (Euler Problem 28)

June 28, 2017
By Proposed solution to Euler Problem 28 in the R language for statistical computing. What is the sum of the numbers on the diagonals in a 1001 by 1001 spiral? Continue reading → The post The Ulam Spiral (Euler Problem 28) appeared first on The Devil is in the Data.

## Large integers in R: Fibonacci number with 1000 digits, Euler Problem 25

June 21, 2017
By Solution to Euler Problem 25 in the R language. What is the index of the first term in the Fibonacci sequence to contain 1000 digits? Continue reading → The post Large integers in R: Fibonacci number with 1000 digits, Euler Problem 25 appeared first on The Devil is in the Data.

## Lexicographic Permutations: Euler Problem 24

June 14, 2017
By $Lexicographic Permutations: Euler Problem 24$

Euler Problem 24 asks to develop lexicographic permutations which are ordered arrangements of objects in lexicographic order. Tushar Roy of Coding Made Simple has shared a great introduction on how to generate lexicographic permutations. Euler Problem 24 Definition A permutation is … Continue reading → The post Lexicographic Permutations: Euler Problem 24 appeared first on The Devil is in the Data.

## Tic Tac Toe Part 3: The Minimax Algorithm

June 7, 2017
By In two previous posts, I presented code to teach R to play the trivial game of Tic Tac Toe. I thought this was an unbeatable algorithm. Alas, a comment from Alberto shattered my pride as he was able to beat … Continue reading → The post Tic Tac Toe Part 3: The Minimax Algorithm appeared first on The Devil is...

## Euler Problem 23: Non-Abundant Sums

May 31, 2017
By A solution in the R language to Euler Problem 23. Find the sum of all the positive integers which cannot be written as the sum of two abundant numbers. Continue reading → The post Euler Problem 23: Non-Abundant Sums appeared first on The Devil is in the Data.

## The Sierpinski Triangle: Visualising infinity in R

May 24, 2017
By Using the R programming language to draw the Sierpinski triangle fractal using the chaos game. Drawing a fractal using random numbers. Continue reading → The post The Sierpinski Triangle: Visualising infinity in R appeared first on The Devil is in the Data.

## Euler Problem 22 : Names Scores

May 24, 2017
By A proposed solution in the R language to Euler Problem 22. What is the total of all the name scores in the file of 5163 first names? Continue reading → The post Euler Problem 22 : Names Scores appeared first on The Devil is in the Data.

## Euler Problem 21: Amicable Numbers

May 17, 2017
By A solution in the R language to Euler Problem 21 which asks to evaluate the sum of all the amicable, or friendly, numbers under 10000. Continue reading → The post Euler Problem 21: Amicable Numbers appeared first on The Devil is in the Data.

## Euler Problem 20: Large Integer Factorials

May 10, 2017
By A proposed solution in the R language to Euler Problem 20: Find the sum of the digits in the faculty of 100: 100 × 99 × ... × 3 × 2 × 1 Continue reading → The post Euler Problem 20: Large Integer Factorials appeared first on The Devil is in the Data.