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!)
A322465 Numbers on the 0-9-10-line in a spiral on an equilateral triangular lattice. 1
0, 9, 10, 31, 32, 65, 66, 111, 112, 169, 170, 239, 240, 321, 322, 415, 416, 521, 522, 639, 640, 769, 770, 911, 912, 1065, 1066, 1231, 1232, 1409, 1410, 1599, 1600, 1801, 1802, 2015, 2016, 2241, 2242, 2479, 2480, 2729, 2730, 2991, 2992, 3265, 3266, 3551, 3552 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
Sequence found by reading the line from 0, in the direction 0, 9, 10, ... in the triangle spiral.
LINKS
Hans G. Oberlack, Triangle spiral line 0-9-10
FORMULA
For even n: a(n) = n*((3/2)*n+2).
For odd n: a(n) = a(n+1)-1 = (n+1)*((3/2)*(n+1)+2)-1.
From Colin Barker, Dec 18 2018: (Start)
G.f.: x*(9 + x + 3*x^2 - x^3) / ((1 - x)^3*(1 + x)^2).
a(n) = a(n-1) + 2*a(n-2) - 2*a(n-3) - a(n-4) + a(n-5) for n>4.
(End)
MAPLE
a:= n-> `if`(n::even, n*((3/2)*n+2), (n+1)*((3/2)*(n+1)+2)-1): seq(a(n), n=0..50); # Muniru A Asiru, Dec 20 2018
PROG
(PARI) concat(0, Vec(x*(9 + x + 3*x^2 - x^3) / ((1 - x)^3*(1 + x)^2) + O(x^40))) \\ Colin Barker, Dec 18 2018
CROSSREFS
Bisection (even part) gives A202804.
Sequence in context: A045483 A007252 A322653 * A353600 A119209 A329636
KEYWORD
nonn,easy
AUTHOR
Hans G. Oberlack, Dec 09 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 April 24 08:13 EDT 2024. Contains 371922 sequences. (Running on oeis4.)