OFFSET
1,1
COMMENTS
Each term is 12, 13, or 23, which can be interpreted as the presence of two of three resources or people: {1,2}, {1,3}, or {2,3}. (If, instead, 0, 1 and 2 are used for these unordered pairs, sequence A122879 results.). This sequence is one symmetric solution to a scheduling problem to balance an ongoing workload simply while maximizing the lengths of scheduled breaks and meeting requirement (*) below. Note that each of 1, 2 and 3 is present in 14 terms of each period and in seven consecutive terms whenever present. Each of 1, 2 and 3 is absent from three consecutive terms or four consecutive terms alternately. Also, if and only if, a(3+7k), where k>=0, is chosen to correspond to the first day of a 7-day workweek, then (*) this schedule requires no more than five workdays per person per workweek. Finally, each resource or person is scheduled to be absent exactly once per named day of the week per 21-day period (and in the same pattern: alternately, i) the three middle days of the week and ii) the last two days of one week and the first two days of the next week).
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,-1,1,0,0,0,0,0,-1,1).
FORMULA
a(n+21) = a(n).
G.f.: -x*(23*x^14-10*x^11+22*x^7+x^4+12) / ((x-1)*(x^2+x+1)*(x^12-x^11 +x^9 -x^8+x^6-x^4+x^3-x+1)). - Colin Barker, Dec 21 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Rick L. Shepherd, Sep 16 2006
STATUS
approved