The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation. Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A317317 Multiples of 17 and odd numbers interleaved. 4

%I

%S 0,1,17,3,34,5,51,7,68,9,85,11,102,13,119,15,136,17,153,19,170,21,187,

%T 23,204,25,221,27,238,29,255,31,272,33,289,35,306,37,323,39,340,41,

%U 357,43,374,45,391,47,408,49,425,51,442,53,459,55,476,57,493,59,510,61,527,63,544,65,561,67,578,69

%N Multiples of 17 and odd numbers interleaved.

%C Partial sums give the generalized 21-gonal numbers (A303298).

%C a(n) is also the length of the n-th line segment of the rectangular spiral whose vertices are the generalized 21-gonal numbers.

%H Colin Barker, <a href="/A317317/b317317.txt">Table of n, a(n) for n = 0..1000</a>

%H <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (0,2,0,-1).

%F a(2n) = 17*n, a(2n+1) = 2*n + 1.

%F From _Colin Barker_, Jul 29 2018: (Start)

%F G.f.: x*(1 + 17*x + x^2) / ((1 - x)^2*(1 + x)^2).

%F a(n) = 2*a(n-2) - a(n-4) for n>3.

%F (End)

%t With[{nn=40},Riffle[17*Range[0,nn],2*Range[0,nn]+1]] (* or *) LinearRecurrence[ {0,2,0,-1},{0,1,17,3},80] (* _Harvey P. Dale_, Jun 06 2020 *)

%o (PARI) concat(0, Vec(x*(1 + 17*x + x^2) / ((1 - x)^2*(1 + x)^2) + O(x^60))) \\ _Colin Barker_, Jul 29 2018

%Y Cf. A008599 and A005408 interleaved.

%Y Column 17 of A195151.

%Y Sequences whose partial sums give the generalized k-gonal numbers: A026741 (k=5), A001477 (k=6), zero together with A080512 (k=7), A022998 (k=8), A195140 (k=9), zero together with A165998 (k=10), A195159 (k=11), A195161 (k=12), A195312 k=13), A195817 (k=14).

%Y Cf. A303298.

%K nonn,easy,mult

%O 0,3

%A _Omar E. Pol_, Jul 25 2018

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified July 31 06:15 EDT 2021. Contains 346369 sequences. (Running on oeis4.)