The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A194162 Partial sums of A194161. 3
0, 1, 2, 4, 6, 8, 11, 14, 18, 22, 27, 33, 39, 46, 53, 61, 69, 77, 86, 95, 105, 115, 126, 138, 150, 163, 176, 190, 204, 218, 233, 248, 264, 280, 296, 313, 331, 349, 368, 387, 407, 428, 449, 471, 493, 515, 538, 562, 586, 611, 636, 661, 687, 714, 741, 769 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
MATHEMATICA
r = Sqrt[2];
a[n_] := Floor[Sum[FractionalPart[k*r], {k, 1, n}]]
Table[a[n], {n, 1, 90}]
s[n_] := Sum[a[k], {k, 1, n}] (* A194161 *)
Table[s[n], {n, 1, 100}]
b[n_] := Floor[n (n + 1) r/2] - Sum[Floor[k*r], {k, 1, n}]
Table[b[n], {n, 1, 90}] (* A194162 *)
PROG
(PARI) b(n) = floor(sum(k=1, n, frac(k*sqrt(2))));
a(n) = sum(k=1, n, b(k)); \\ Michel Marcus, Nov 06 2017
CROSSREFS
Cf. A194161.
Sequence in context: A032514 A011858 A183144 * A084627 A321531 A194224
KEYWORD
nonn
AUTHOR
Clark Kimberling, Aug 18 2011
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 13 11:43 EDT 2024. Contains 372504 sequences. (Running on oeis4.)