OFFSET
0,4
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,0,1,1,0,0,-1).
FORMULA
a(n) = floor(n/2) + floor(n/3) + floor(n/4).
From Robert Israel, Jul 23 2023: (Start)
a(n+12) = a(n) + 13.
G.f.: (3*x^6 + 3*x^5 + 4*x^4 + 2*x^3 + x^2)/(x^7 - x^4 - x^3 + 1). (End)
MATHEMATICA
Table[Total[Floor[n/{2, 3, 4}]], {n, 0, 120}] (* Harvey P. Dale, Jun 14 2014 *)
PROG
(Python)
def A187323(n): return 3*(n>>2)+bool(n&2)+n//3 # Chai Wah Wu, Jan 31 2023
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Mar 08 2011
STATUS
approved