login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A082727
a(0)=1, a(n)=abs(n-2*a(n-1)).
0
1, 1, 0, 3, 2, 1, 4, 1, 6, 3, 4, 3, 6, 1, 12, 9, 2, 13, 8, 3, 14, 7, 8, 7, 10, 5, 16, 5, 18, 7, 16, 1, 30, 27, 20, 5, 26, 15, 8, 23, 6, 29, 16, 11, 22, 1, 44, 41, 34, 19, 12, 27, 2, 49, 44, 33, 10, 37, 16, 27, 6, 49, 36, 9, 46, 27, 12, 43, 18, 33, 4, 63, 54, 35, 4, 67, 58, 39, 0, 79, 78, 75
OFFSET
0,4
COMMENTS
a(n)=0 for n=2,78,234,430,1502,2942,6058,6618,18910,54222...
CROSSREFS
Sequence in context: A230845 A194528 A194520 * A264597 A112603 A097294
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Apr 12 2003
STATUS
approved