login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A194140
a(n) = Sum_{j=1..n} floor(j*(1+sqrt(3))); n-th partial sum of Beatty sequence for 1+sqrt(3).
1
2, 7, 15, 25, 38, 54, 73, 94, 118, 145, 175, 207, 242, 280, 320, 363, 409, 458, 509, 563, 620, 680, 742, 807, 875, 946, 1019, 1095, 1174, 1255, 1339, 1426, 1516, 1608, 1703, 1801, 1902, 2005, 2111, 2220, 2332, 2446, 2563, 2683, 2805, 2930, 3058
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
Cf. A054088 (Beatty sequence for 1+sqrt(3)).
Sequence in context: A167543 A332495 A184976 * A029888 A194112 A005449
KEYWORD
nonn
AUTHOR
Clark Kimberling, Aug 17 2011
EXTENSIONS
Offset corrected by Alois P. Heinz, Mar 17 2021
STATUS
approved