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!)
A082643 a(n) = ceiling(n*(n+1/2)/2). 2
0, 1, 3, 6, 9, 14, 20, 27, 34, 43, 53, 64, 75, 88, 102, 117, 132, 149, 167, 186, 205, 226, 248, 271, 294, 319, 345, 372, 399, 428, 458, 489, 520, 553, 587, 622, 657, 694, 732, 771, 810, 851, 893, 936, 979, 1024, 1070, 1117, 1164, 1213, 1263, 1314, 1365, 1418, 1472, 1527 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
a(n) = +2*a(n-1) -a(n-2) +a(n-4) -2*a(n-5) +a(n-6). - R. J. Mathar, Mar 11 2012
G.f.: (x + x^2 + x^3 + x^5)/((1 - x)^2*(1 - x^4)). - Robert Israel, Dec 20 2017
a(n) = n*(n + 1)/2 - floor(n/4). - Bruno Berselli, Mar 04 2021
MAPLE
seq(ceil(n*(n+1/2)/2), n=0..100); # Robert Israel, Dec 20 2017
MATHEMATICA
Table[Ceiling[(n (n + 1/2))/2], {n, 0, 60}] (* or *) LinearRecurrence[{2, -1, 0, 1, -2, 1}, {0, 1, 3, 6, 9, 14}, 60] (* Harvey P. Dale, May 24 2014 *)
PROG
(PARI) a(n) = ceil(n*(n+1/2)/2); \\ Altug Alkan, Dec 20 2017
CROSSREFS
Cf. A038707.
Sequence in context: A310169 A310170 A310171 * A310172 A227849 A135524
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, May 16 2003
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 April 24 02:46 EDT 2024. Contains 371917 sequences. (Running on oeis4.)