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!)
A038709 a(n) = floor(n*(n+1/2)/4). 0
0, 0, 1, 2, 4, 6, 9, 13, 17, 21, 26, 31, 37, 43, 50, 58, 66, 74, 83, 92, 102, 112, 123, 135, 147, 159, 172, 185, 199, 213, 228, 244, 260, 276, 293, 310, 328, 346, 365, 385, 405, 425, 446, 467, 489, 511, 534, 558, 582, 606, 631, 656, 682, 708, 735 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
LINKS
FORMULA
a(n) = 2*a(n-1) - a(n-2) + a(n-8) - 2*a(n-9) + a(n-10) for n > 9. - Jinyuan Wang, Mar 16 2020
MATHEMATICA
Table[Floor[n (n + 1 / 2) / 4], {n, 0, 60}] (* Vincenzo Librandi, Mar 17 2020 *)
LinearRecurrence[{2, -1, 0, 0, 0, 0, 0, 1, -2, 1}, {0, 0, 1, 2, 4, 6, 9, 13, 17, 21}, 80] (* Harvey P. Dale, Jan 11 2024 *)
PROG
(PARI) a(n) = floor(n*(n+1/2)/4); \\ Jinyuan Wang, Mar 16 2020
(Magma) [Floor(n * (n + 1 / 2) / 4): n in [0..60]]; // Vincenzo Librandi, Mar 17 2020
CROSSREFS
Cf. A038707.
Sequence in context: A360393 A098387 A283525 * A186351 A049981 A194178
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, May 02 2000
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 14 04:15 EDT 2024. Contains 372528 sequences. (Running on oeis4.)