login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A320281 Terms that are on the positive x-axis of the square spiral built with 2*k, 2*k+1, 2*k+1 for k >= 0. 1
0, 1, 7, 18, 35, 57, 84, 117, 155, 198, 247, 301, 360, 425, 495, 570, 651, 737, 828, 925, 1027, 1134, 1247, 1365, 1488, 1617, 1751, 1890, 2035, 2185, 2340, 2501, 2667, 2838, 3015, 3197, 3384, 3577, 3775, 3978 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

COMMENTS

Resulting spiral:

      28--29--29--30--31--31--32

       |

      27  13--14--15--15--16--17

       |   |                   |

      27  13   4---5---5---6  17

       |   |   |           |   |

      26  12   3   0---1   7  18

       |   |   |       |   |   |

      25  11   3---2---1   7  19

       |   |               |   |

      25  11--10---9---9---8  19

       |                       |

      24--23--23--22--21--21--20

.

a(n) mod 9 is of period 27. a(n) mod 10 is of period 30.

LINKS

Colin Barker, Table of n, a(n) for n = 0..1000

Index entries for linear recurrences with constant coefficients, signature (2,-1,1,-2,1).

FORMULA

a(n) = 2*a(n-1) - a(n-2) + a(n-3) - 2*a(n-4) + a(n-5), a(0)=0, a(1)=1, a(2)=7, a(3)=18, a(4)=35.

a(n+2) - 2*a(n-1) + a(n) = period 3: repeat [5, 5, 6].

a(-n) = 0, 5, 15, 30, 51, 77, 108, 145, ... is the sequence of the terms on the positive y-axis.

G.f.: x*(1 + 5*x + 5*x^2 + 5*x^3) / ((1 - x)^3*(1 + x + x^2)). - Colin Barker, Oct 09 2018

PROG

(PARI) concat(0, Vec(x*(1 + 5*x + 5*x^2 + 5*x^3) / ((1 - x)^3*(1 + x + x^2)) + O(x^50))) \\ Colin Barker, Oct 09 2018

CROSSREFS

Cf. A000969.

Sequence in context: A225248 A301709 A297646 * A169677 A263876 A192751

Adjacent sequences:  A320278 A320279 A320280 * A320282 A320283 A320284

KEYWORD

nonn,easy

AUTHOR

Paul Curtz, Oct 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 8 01:41 EST 2021. Contains 341934 sequences. (Running on oeis4.)