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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A045946 Star of David matchstick numbers: 6n(3n+1). 6
0, 24, 84, 180, 312, 480, 684, 924, 1200, 1512, 1860, 2244, 2664, 3120, 3612, 4140, 4704, 5304, 5940, 6612, 7320, 8064, 8844, 9660, 10512, 11400, 12324, 13284, 14280, 15312, 16380, 17484, 18624, 19800, 21012, 22260, 23544, 24864, 26220, 27612 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

COMMENTS

Vertical spoke of triangular spiral in A051682. - Paul Barry, Mar 15 2003

LINKS

Ivan Panchenko, Table of n, a(n) for n = 0..1000

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

FORMULA

a(n)=24C(n, 1)+36C(n, 2); binomial transform of (0, 24, 36, 0, 0, 0, .....). - Paul Barry, Mar 15 2003

a(0)=0, a(1)=24, a(2)=84, a(n)=3*a(n-1)-3*a(n-2)+a(n-3). - Harvey P. Dale, Nov 23 2012

G.f.: 12*x*(2+x)/(1-x)^3. - Ivan Panchenko, Nov 13 2013

a(n) = 2*A045945(n). - Michel Marcus, Nov 13 2013

a(n) = 12*A005449(n). - R. J. Mathar, Feb 08 2016

MATHEMATICA

Table[6n(3n+1), {n, 0, 40}] (* or *) LinearRecurrence[{3, -3, 1}, {0, 24, 84}, 40] (* Harvey P. Dale, Nov 23 2012 *)

PROG

(PARI) a(n)=18*n^2+6*n \\ Charles R Greathouse IV, Feb 19 2017

CROSSREFS

Cf. A045945.

Sequence in context: A063456 A265646 A304158 * A192838 A289155 A101861

Adjacent sequences:  A045943 A045944 A045945 * A045947 A045948 A045949

KEYWORD

nonn,nice,easy

AUTHOR

R. K. Guy

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 | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified October 17 22:48 EDT 2018. Contains 316297 sequences. (Running on oeis4.)