Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A117822
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A117822 a(0) = a(1) = 1; for n >= 2, a(n) = a(n-1) + a(n-2) - (n-1) if that number is positive and not already in the sequence, otherwise a(n) = a(n-1) + a(n-2) + (n-1). +0
4
1, 1, 3, 2, 8, 6, 9, 21, 23, 36, 50, 76, 115, 179, 281, 446, 712, 1142, 1837, 2961, 4779, 7720, 12478, 20176, 32631, 52783, 85389, 138146, 223508, 361626, 585105, 946701, 1531775, 2478444, 4010186, 6488596, 10498747, 16987307, 27486017, 44473286 (list; graph; listen)
OFFSET

0,3

MAPLE

a[0]:=1: a[1]:=1: A:={1}: for n from 2 to 42 do if a[n-1]+a[n-2]-(n-1)>0 and member(a[n-1]+a[n-2]-n+1, A)=false then a[n]:=a[n-1]+a[n-2]-n+1: A:=A union {a[n-1]+a[n-2]-n+1} else a[n]:=a[n-1]+a[n-2]+n-1: A:=A union {a[n-1]+a[n-2]+n-1} fi: od: seq(a[n], n=0..42); - Emeric Deutsch (deutsch(AT)duke.poly.edu), Apr 30 2006

CROSSREFS

Cf. A079053, A005132, A117821, A117823, A117824.

Sequence in context: A122358 A122297 A073283 this_sequence A132887 A092174 A083514

Adjacent sequences: A117819 A117820 A117821 this_sequence A117823 A117824 A117825

KEYWORD

nonn,easy

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com), Apr 30 2006

EXTENSIONS

More terms from Emeric Deutsch (deutsch(AT)duke.poly.edu), Apr 30 2006

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 17 23:40 EST 2009. Contains 171025 sequences.


AT&T Labs Research