|
| |
|
|
A083219
|
|
a(n) = n - 2*floor(n/4).
|
|
4
| |
|
|
0, 1, 2, 3, 2, 3, 4, 5, 4, 5, 6, 7, 6, 7, 8, 9, 8, 9, 10, 11, 10, 11, 12, 13, 12, 13, 14, 15, 14, 15, 16, 17, 16, 17, 18, 19, 18, 19, 20, 21, 20, 21, 22, 23, 22, 23, 24, 25, 24, 25, 26, 27, 26, 27, 28, 29, 28, 29, 30, 31, 30, 31, 32, 33, 32, 33, 34, 35, 34, 35, 36, 37, 36, 37, 38
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 0,3
|
|
|
COMMENTS
| a(n) = A083220(n)/2.
|
|
|
LINKS
| Index to sequences with linear recurrences with constant coefficients, signature (1,0,0,1,-1)
|
|
|
FORMULA
| a(n) = a(n-1) + n mod 2 + (n mod 4 -1)*(1- n mod 2), a(0)=0.
G.f.: x(1+x+x^2-x^3)/((1-x)^2(1+x)(1+x^2)). [From R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Aug 28 2008]
a(n)=1+(1/12)*Sum{k=0..n}{7*(k mod 4)+[(k+1) mod 4]+[(k+2) mod 4]-5*([k+3) mod 4]}, with n>=0 [From Paolo P. Lava (paoloplava(AT)gmail.com), Oct 06 2008]
|
|
|
CROSSREFS
| Sequence in context: A095207 A065362 * A106249 A110516 A187180 A134986
Adjacent sequences: A083216 A083217 A083218 * A083220 A083221 A083222
|
|
|
KEYWORD
| nonn
|
|
|
AUTHOR
| Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Apr 22 2003
|
| |
|
|