Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A165192
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A165192 a(0)=1 a(1)=2 a(3)=3, a(n) = a(n-1)-a(n-3). +0
1
1, 2, 3, 2, 0, -3, -5, -5, -2, 3, 8, 10, 7, -1, -11, -18, -17, -6, 12, 29, 35, 23, -6, -41, -64, -58, -17, 47, 105, 122, 75 (list; graph; listen)
OFFSET

0,2

FORMULA

a(n)=(-1)^n*A104771(n). G.f.: (1+x+x^2)/(1-x+x^3).

EXAMPLE

a(3)=2 because 2=3-1 where the 1,3 on the right of the equals sign are the first and third terms of the series.

PROGRAM

(Python) series = [1, 2, 3] for i in range(2, 30): .series.append((series[i] - series[i-1])+(series[i-1]-series[i-2])) print series

CROSSREFS

Cf. A104771

Sequence in context: A021435 A007325 A056619 this_sequence A104771 A056888 A111182

Adjacent sequences: A165189 A165190 A165191 this_sequence A165193 A165194 A165195

KEYWORD

easy,sign

AUTHOR

Ben Thurston (benpaulthurston(AT)gmail.com), Sep 06 2009

EXTENSIONS

Offset corrected and recurrence simplified by R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Sep 08 2009

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 5 17:24 EST 2009. Contains 170342 sequences.


AT&T Labs Research