STATUS
reviewed
approved
reviewed
approved
proposed
reviewed
editing
proposed
(Python)
from math import isqrt
def A354329(n): return (m:=isqrt(n*(n*(n + 3) + 2)//3))*(m+1)>>1 # Chai Wah Wu, Jul 15 2022
approved
editing
reviewed
approved
proposed
reviewed
editing
proposed
editing
proposed
Triangular number nearest to the sum of the first n+1 positive triangular numbers.
a(4) = 21 because the sum of the first 5 4 positive triangular numbers is 0 + 1 + 3 + 6 + 10 = 20, and the nearest triangular number is 21.
proposed
editing