A269445 a(n) = Sum_{k=0..n} floor(k/13).
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 42, 45, 48, 51, 54, 57, 60, 63, 66, 69, 72, 75, 78, 82, 86, 90, 94, 98, 102, 106, 110, 114, 118, 122, 126, 130, 135, 140, 145, 150, 155, 160, 165, 170, 175
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (2,-1,0,0,0,0,0,0,0,0,0,0,1,-2,1).
Crossrefs
Programs
-
Mathematica
Table[Sum[Floor[k/13], {k, 0, n}], {n, 0, 73}] LinearRecurrence[{2, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, -2, 1}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2}, 74]
Formula
G.f.: x^13/((1 - x^13)*(1 - x)^2).
a(n) = 2*a(n-1) - a(n-2) + a(n-13) - 2*a(n-14) + a(n-15).
Comments