OFFSET
1,3
COMMENTS
Numbers n such that n^2 - n is divisible by 17.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..10000
Index entries for linear recurrences with constant coefficients, signature (1,1,-1).
FORMULA
From Bruno Berselli, Sep 29 2011: (Start)
G.f.: x^2*(1+16*x)/((1+x)*(1-x)^2).
a(n) = (34*n - 15*(-1)^n - 49)/4.
a(n) = a(n-1) + a(n-2) - a(n-3) = a(n-2) + 17.
a(n) + a(n+1) = a(2n). (End)
a(n+1) = Sum_{k>=0} A030308(n,k)*b(k) with b(0)=1 and b(k) = 17*2^(k-1) for k > 0. - Philippe Deléham, Oct 19 2011
MATHEMATICA
LinearRecurrence[{1, 1, -1}, {0, 1, 17}, 60] (* or *) With[{c=17Range[0, 30]}, Sort[Join[c, c+1]]] (* Harvey P. Dale, Oct 04 2011 *)
PROG
(Magma) [n: n in [0..30] | n mod 17 in [0, 1]]; // Bruno Berselli, Sep 29 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Aug 23 2009
EXTENSIONS
Definition rewritten by Bruno Berselli, Sep 29 2011
STATUS
approved