login
A027924
a(n) = least k such that 1+2+...+k >= 1^3 + 2^3 + ... + n^3.
1
1, 4, 8, 14, 21, 30, 40, 51, 64, 78, 93, 110, 129, 148, 170, 192, 216, 242, 269, 297, 327, 358, 390, 424, 460, 496, 535, 574, 615, 658, 701, 747, 793, 841, 891, 942, 994, 1048, 1103, 1160, 1218, 1277, 1338, 1400, 1464, 1529, 1595, 1663, 1732, 1803, 1875
OFFSET
1,2
FORMULA
a(n) = round(sqrt(1/2)*n*(n+1)). - Ralf Stephan, Jan 24 2003
PROG
(PARI) for(n=1, 100, print1(round(sqrt(1/2)*n*(n+1))", ")).
(Python)
from math import isqrt
def A027924(n): return isqrt((n*(n+1))**2<<1)+1>>1 # Chai Wah Wu, Jun 19 2024
CROSSREFS
Cf. A000537.
Sequence in context: A088804 A374505 A344012 * A006578 A122224 A183955
KEYWORD
nonn
EXTENSIONS
More terms from Ralf Stephan, Jan 24 2003
STATUS
approved