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!)
A094301 a(0)=0, a(1)=1, a(2)=2; for n>2, a(n) = a(n-1) - a(n-2) + a(n-3)^2. 0
0, 1, 2, 1, 0, 3, 4, 1, 6, 21, 16, 31, 456, 681, 1186, 208441, 671016, 1869171, 43448848636, 493709451721, 3944060830326, 1887802451244390439101, 245636825165950759470616, 15799364856026522930297791 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
PROG
(Perl) -e '@a=(0, 1, 2); for (3..20){ $a[$_] = $a[$_-1] - $a[$_-2] + $a[$_-3]**2; print "$a[$_], "; }'
(PARI) print1(c=0, ", ", b=1, ", "a=2, ", "); for(n=1, 21, print1(d=a-b+c^2, ", "); c=b; b=a; a=d) \\ Klaus Brockhaus
CROSSREFS
Sequence in context: A124030 A166040 A106378 * A221542 A221463 A135488
KEYWORD
easy,nonn
AUTHOR
Gamo (gamo(AT)telecable.es), Nov 13 2004
EXTENSIONS
More terms from Klaus Brockhaus, Nov 14 2004
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 23 20:33 EDT 2024. Contains 371916 sequences. (Running on oeis4.)