OFFSET
1,2
COMMENTS
The following conjecture is probably not very difficult: Conjecture. The sequence (A106253) of differences of this sequence is periodic with period 6.
That the difference sequence in the above conjecture is periodic follows from a formula in the Formula and Mathematica sections; see A211701 for a discussion. [Clark Kimberling, Apr 20 2012]
LINKS
Index entries for linear recurrences with constant coefficients, signature (0, 1, 1, 0, -1).
FORMULA
a(n) = n + floor(n/2) + floor(n/3). [Clark Kimberling, Apr 20 2012]
EXAMPLE
(1,1,1), (1,1,2), (1,2,3), (2,2,2) and (3,3,3) are the triples that have the desired property for n=3, so a(3)=5.
MATHEMATICA
f[n_, m_] := Sum[Floor[n/k], {k, 1, m}]; t = Table[f[n, 3], {n, 1, 90}] (* Clark Kimberling, Apr 20 2012 *)
LinearRecurrence[{0, 1, 1, 0, -1}, {1, 3, 5, 7, 8}, 67] (* Ray Chandler, Aug 01 2015 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
John W. Layman, Apr 27 2005
STATUS
approved