login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A195031
Multiples of 5 and of 12 interleaved: a(2n-1) = 5n, a(2n) = 12n.
6
5, 12, 10, 24, 15, 36, 20, 48, 25, 60, 30, 72, 35, 84, 40, 96, 45, 108, 50, 120, 55, 132, 60, 144, 65, 156, 70, 168, 75, 180, 80, 192, 85, 204, 90, 216, 95, 228, 100, 240, 105, 252, 110, 264, 115, 276, 120, 288, 125, 300, 130, 312, 135, 324, 140, 336, 145, 348
OFFSET
1,1
COMMENTS
First differences of A195032.
a(n) is also the length of the n-th edge of a square spiral in which the first two edges are the legs of the primitive Pythagorean triple [5, 12, 13]. Zero together with partial sums give A195032, the vertices of the spiral.
LINKS
FORMULA
From Bruno Berselli, Sep 30 2011: (Start)
G.f.: x*(5+12*x)/((1-x)^2*(1+x)^2).
a(n) = ((17+7*(-1)^n)/2)*((2*n-(-1)^n+1)/4) = (17*n+(7*n-5)*(-1)^n+5)/4.
a(n)*a(n+1) = a(10*s), where s is A002620(n+1).
a(n) = 2*a(n-2) - a(n-4). (End)
MATHEMATICA
With[{nn=30}, Riffle[5Range[nn], 12Range[nn]]] (* or *) LinearRecurrence[ {0, 2, 0, -1}, {5, 12, 10, 24}, 60] (* Harvey P. Dale, Aug 18 2012 *)
PROG
(Magma) &cat[[5*n, 12*n]: n in [1..27]]; // Bruno Berselli, Sep 30 2011
(PARI) a(n)=(n+1)\2*if(n%2, 5, 12) \\ Charles R Greathouse IV, Oct 07 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Omar E. Pol, Sep 12 2011
EXTENSIONS
More terms from Bruno Berselli, Sep 30 2011
STATUS
approved