A108581 Positive triangular numbers repeated their own number of times.
1, 3, 3, 3, 6, 6, 6, 6, 6, 6, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28
Offset: 1
Programs
-
Python
from sympy import integer_nthroot def A108581(n): return (r:=(m:=integer_nthroot(k:=6*n,3)[0])+(k>m*(m+1)*(m+2)))*(r+1)>>1 # Chai Wah Wu, Nov 07 2024
Comments