...

/

Example 29: Ramanujan Number Series

Example 29: Ramanujan Number Series

Learn how to print a Ramanujan Number Series.

We'll cover the following...

Problem

The Ramanujan number is the smallest number expressed as the sum of two cubes in two different ways.

Write a program to print all such numbers up to 20.

Example

Input Output
20 13123=93103=17291^{3} * 12^{3} = 9^{3} * 10^{3} = 1729
...