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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A130205 a(n)=n^2-a(n-1)-a(n-2). 1
1, 2, 6, 8, 11, 17, 21, 26, 34, 40, 47, 57, 65, 74, 86, 96, 107, 121, 133, 146, 162, 176, 191, 209, 225, 242, 262, 280, 299, 321, 341, 362, 386, 408, 431, 457, 481, 506, 534, 560, 587, 617, 645, 674, 706, 736, 767, 801, 833, 866, 902, 936, 971, 1009, 1045, 1082 (list; graph; refs; listen; history; internal format)
OFFSET

1,2

COMMENTS

Any three consecutive terms sum up to a perfect square. First 9 terms coincide with A076991.

FORMULA

a(1)=1, a(2)=2; n>2: a(n)=n^2-a(n-1)-a(n-2).

G.f.: x*(1+3*x^2-3*x^3+x^4)/(1+x+x^2)/(1-x)^3 [From Maksym Voznyy (voznyy(AT)mail.ru), Jul 27 2009]

EXAMPLE

1+2+6=3^2, 2+6+8=4^2, 6+8+11=5^2.

MATHEMATICA

a[1]=1; a[2]=2; a[n_]:=a[n]=n^2-a[n-1]-a[n-2]; Table[a[n], {n, 100}]

CROSSREFS

Cf. A076991, A001840.

Sequence in context: A183173 A178931 A076991 * A054067 A064212 A056906

Adjacent sequences:  A130202 A130203 A130204 * A130206 A130207 A130208

KEYWORD

nonn

AUTHOR

Zak Seidov (zakseidov(AT)yahoo.com), May 16 2007

EXTENSIONS

G.f. proposed by Maksym Voznyy checked and corrected by R. J. Mathar, Sep 16 2009.

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 19:06 EST 2012. Contains 205945 sequences.