OFFSET
1,1
MATHEMATICA
c[n_] := Sum[Floor[j*(1+Sqrt[3])], {j, 1, n}];
c = Table[c[n], {n, 1, 90}]
PROG
(Python)
from sympy import integer_nthroot
def A194140(n): return n*(n+1)//2+sum(integer_nthroot(3*j**2, 2)[0] for j in range(1, n+1)) # Chai Wah Wu, Mar 17 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Aug 17 2011
EXTENSIONS
Offset corrected by Alois P. Heinz, Mar 17 2021
STATUS
approved