A131728 a(4n) = n, a(4n+1) = 2n+1, a(4n+2) = n+1, a(4n+3) = 0.
0, 1, 1, 0, 1, 3, 2, 0, 2, 5, 3, 0, 3, 7, 4, 0, 4, 9, 5, 0, 5, 11, 6, 0, 6, 13, 7, 0, 7, 15, 8, 0, 8, 17, 9, 0, 9, 19, 10, 0, 10, 21, 11, 0, 11, 23, 12, 0, 12, 25, 13, 0, 13, 27, 14, 0, 14, 29, 15, 0, 15, 31, 16, 0, 16, 33, 17, 0, 17, 35, 18, 0, 18, 37, 19, 0, 19, 39, 20, 0, 20, 41, 21, 0, 21
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (2,-3,4,-3,2,-1).
Programs
-
Mathematica
LinearRecurrence[{2,-3,4,-3,2,-1},{0,1,1,0,1,3},90] (* Harvey P. Dale, Aug 15 2013 *)
Formula
a(n)=A077814(n+1). - R. J. Mathar, Jun 13 2008