README.md

Ramanujan is an R package for finding numbers expressible as the sum of two cubes in different ways.

library(Ramanujan)

## Find numbers <= 2e4 expressible as the sum of two cubes
## in 2 distinct ways:
Ramanujan(Nmax=2e4, k=2)

## Find numbers <= 2e8 expressible as the sum of two cubes
## in 3 distinct ways:
Ramanujan(Nmax=2e8, k=3)

## Ramanujan(1e13, k=4) will find the 4th taxicab number
## (6963472309248, denoted Ta(4)) in < 30s on a machine
## with enough RAM (it uses about 12.5Gb of memory):
Ramanujan(1e13, k=4)

Links:



hpages/Ramanujan documentation built on Sept. 28, 2024, 9:48 a.m.