OFFSET
1,2
COMMENTS
Equals natural numbers minus '6,11,17,22,28,...' (= previous term +5,+6,+5,+6,...).
LINKS
Index entries for linear recurrences with constant coefficients, signature (1, 0, 0, 0, 0, 0, 0, 0, 1, -1).
FORMULA
From Chai Wah Wu, Dec 17 2016: (Start)
a(n) = a(n-1) + a(n-9) - a(n-10) for n > 10.
G.f.: x*(x^9 + x^8 + x^7 + x^6 + 2*x^5 + x^4 + x^3 + x^2 + x + 1)/(x^10 - x^9 - x + 1). (End)
MATHEMATICA
nmnQ[n_]:=With[{c=n+Range[0, 10]}, Divisible[Times@@c/Total[c], n]]; Select[ Range[ 100], nmnQ] (* or *) LinearRecurrence[{1, 0, 0, 0, 0, 0, 0, 0, 1, -1}, {1, 2, 3, 4, 5, 7, 8, 9, 10, 12}, 80] (* Harvey P. Dale, May 07 2017 *)
PROG
(PARI) is(n)=factorback(vector(10, i, n+i))%(11*n+55)==0 \\ Charles R Greathouse IV, Aug 07 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Patrick De Geest, May 15 1998
EXTENSIONS
Typo in definition corrected by Zak Seidov, Aug 06 2016
STATUS
approved