The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A317318 Multiples of 18 and odd numbers interleaved. 4
0, 1, 18, 3, 36, 5, 54, 7, 72, 9, 90, 11, 108, 13, 126, 15, 144, 17, 162, 19, 180, 21, 198, 23, 216, 25, 234, 27, 252, 29, 270, 31, 288, 33, 306, 35, 324, 37, 342, 39, 360, 41, 378, 43, 396, 45, 414, 47, 432, 49, 450, 51, 468, 53, 486, 55, 504, 57, 522, 59, 540, 61, 558, 63, 576, 65, 594, 67, 612, 69 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
Partial sums give the generalized 22-gonal numbers (A303299).
a(n) is also the length of the n-th line segment of the rectangular spiral whose vertices are the generalized 22-gonal numbers.
LINKS
FORMULA
a(2n) = 18*n, a(2n+1) = 2*n + 1.
From Colin Barker, Jul 29 2018: (Start)
G.f.: x*(1 + 18*x + x^2) / ((1 - x)^2*(1 + x)^2).
a(n) = 2*a(n-2) - a(n-4) for n>3. (End)
Multiplicative with a(2^e) = 9*2^e, and a(p^e) = p^e for an odd prime p. - Amiram Eldar, Oct 14 2023
Dirichlet g.f.: zeta(s-1) * (1 + 2^(4-s)). - Amiram Eldar, Oct 25 2023
MATHEMATICA
a[n_] := If[OddQ[n], n, 9*n]; Array[a, 70, 0] (* Amiram Eldar, Oct 14 2023 *)
PROG
(PARI) concat(0, Vec(x*(1 + 18*x + x^2) / ((1 - x)^2*(1 + x)^2) + O(x^60))) \\ Colin Barker, Jul 29 2018
CROSSREFS
Cf. A008600 and A005408 interleaved.
Column 18 of A195151.
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).
Cf. A303299.
Sequence in context: A135216 A135252 A040317 * A321263 A040313 A051522
KEYWORD
nonn,easy,mult
AUTHOR
Omar E. Pol, Jul 25 2018
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 12 18:22 EDT 2024. Contains 372494 sequences. (Running on oeis4.)