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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A088226 a(1)=0, a(2)=0, a(3)=1; for n>3, a(n)=abs(a(n-1)-a(n-2)-a(n-3)). 0
0, 0, 1, 1, 0, 2, 1, 1, 2, 0, 3, 1, 2, 2, 1, 3, 0, 4, 1, 3, 2, 2, 3, 1, 4, 0, 5, 1, 4, 2, 3, 3, 2, 4, 1, 5, 0, 6, 1, 5, 2, 4, 3, 3, 4, 2, 5, 1, 6, 0, 7, 1, 6, 2, 5, 3, 4, 4, 3, 5, 2, 6, 1, 7, 0, 8, 1, 7, 2, 6, 3, 5, 4, 4, 5, 3, 6, 2, 7, 1, 8, 0, 9, 1, 8, 2, 7, 3, 6, 4, 5, 5, 4, 6, 3, 7, 2, 8, 1, 9, 0, 10, 1, 9, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,6

LINKS

Table of n, a(n) for n=1..105.

FORMULA

a(k^2+2m+2)=k-m and a(k^2+2m+1)= m, for k>=0 and 0<=m<=k.

MATHEMATICA

RecurrenceTable[{a[1]==a[2]==0, a[3]==1, a[n]==Abs[a[n-1]-a[n-2]-a[n-3]]}, a, {n, 110}] (* From Harvey P. Dale, Apr 13 2012 *)

CROSSREFS

Cf. A080096.

Sequence in context: A177717 A155997 A123223 * A117586 A176811 A057594

Adjacent sequences:  A088223 A088224 A088225 * A088227 A088228 A088229

KEYWORD

nonn

AUTHOR

Benoit Cloitre, Nov 04 2003

STATUS

approved

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 May 22 23:04 EDT 2013. Contains 225585 sequences.