OFFSET
2,1
COMMENTS
This is r(n,3,2) in Alter's notation.
LINKS
R. Alter, Computations and generalizations on a remark of Ramanujan, pp. 182-196 of "Analytic Number Theory (Philadelphia, 1980)", ed. M. I. Knopp, Lect. Notes Math., Vol. 899, 1981. See Table 2, page 190.
Index entries for linear recurrences with constant coefficients, signature (2,-1).
FORMULA
a(n) = n+63 for n >= 9.
G.f.: x^2*(1729 - 3207*x + 1446*x^2 - 30*x^3 + 63*x^4 - 28*x^5 + 28*x^6 - 61*x^7 + 61*x^8)/(1 - 2*x + x^2). - Charles R Greathouse IV, May 15 2026
EXAMPLE
a(2) = 1729 = 12^3 + 1^3 = 10^3 + 9^3 (the famous Hardy-Ramanujan number).
a(3) = 251 = 5^3 + 5^3 + 1^3 = 6^3 + 3^3 + 2^3.
PROG
(PARI) a(n)=if(n>8, n+63, [1729, 251, 219, 157, 158, 131, 132][n-1]) \\ Charles R Greathouse IV, May 15 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Apr 03 2021
STATUS
approved
