login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A143859 Ulam's spiral (WNW spoke). 3
1, 18, 67, 148, 261, 406, 583, 792, 1033, 1306, 1611, 1948, 2317, 2718, 3151, 3616, 4113, 4642, 5203, 5796, 6421, 7078, 7767, 8488, 9241, 10026, 10843, 11692, 12573, 13486, 14431, 15408, 16417, 17458, 18531, 19636, 20773, 21942, 23143, 24376 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

Also sequence found by reading the segment (1, 18) together with the line from 18, in the direction 18, 67, ..., in the square spiral whose vertices are the generalized decagonal numbers A074377. - Omar E. Pol, Nov 05 2012

LINKS

Harvey P. Dale, Table of n, a(n) for n = 1..1000

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

FORMULA

a(n) = 16n^2-31n+16. - R. J. Mathar, Sep 08 2008

a(n) = 3*a(n-1)-3*a(n-2)+a(n-3), a(1)=1, a(2)=18, a(3)=67. - Harvey P. Dale, Mar 24 2012

G.f.: x*(1+15*x+16*x^2)/(1-x)^3. - Colin Barker, Aug 03 2012

MATHEMATICA

f[n_] := 16n^2 -31n +16; Array[f, 40] (* Vladimir Joseph Stephan Orlovsky, Sep 03 2008 *)

LinearRecurrence[{3, -3, 1}, {1, 18, 67}, 40] (* Harvey P. Dale, Mar 24 2012 *)

CoefficientList[Series[(1 + 15 x + 16 x^2) / (1 - x)^3, {x, 0, 40}], x] (* Vincenzo Librandi, Nov 08 2014 *)

PROG

(MAGMA) [16*n^2-31*n+16: n in [1..50]]; // Vincenzo Librandi, Nov 08 2014

(PARI) vector(50, n, 16*n^2-31*n+16) \\ Michel Marcus, Nov 08 2014

CROSSREFS

Sequence in context: A237616 A044156 A044537 * A063523 A045234 A158056

Adjacent sequences:  A143856 A143857 A143858 * A143860 A143861 A143862

KEYWORD

nonn,easy

AUTHOR

Vladimir Joseph Stephan Orlovsky, Sep 03 2008

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 26 04:32 EDT 2019. Contains 321481 sequences. (Running on oeis4.)