Description Usage Arguments Details References Examples
View source: R/square_sum_problem.R
Using the integers from 1 to n construct a chain such that each pair of neighboring numbers adds up to a square number.
1 |
n |
The length of the chain. |
The function returns the first valid chain that is found. Maybe some day I will write a version that returns all possible chains.
The Numberphile video featuring Matt Parker and Brady Haran: The Square-Sum Problem.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.