OFFSET
2,1
COMMENTS
This is r(n,4,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 3, page 190.
Index entries for linear recurrences with constant coefficients, signature (2,-1).
FORMULA
a(n) = n + 240 for n >= 16.
EXAMPLE
a(2) = 635318657 = 59^4 + 158^4 = 133^4 + 134^4.
a(3) = 2673 = 2^4 + 4^4 + 7^4 = 3^4 + 6^4 + 6^4.
PROG
(PARI) a(n)=if(n>15, n+240, [635318657, 2673, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270][n-1]) \\ Charles R Greathouse IV, May 16 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Sean A. Irvine, Apr 04 2021
STATUS
approved
