A217974 The ZEBRA Sequence.
26, 5, 2, 18, 1, 24, 1, 0, 13, 6, 24, 6, 0, 12, 11, 24, 11, 0, 6, 12, 24, 12, 0, 5, 18, 24, 18, 0, 7, 19, 24, 19, 0, 11, 17, 24, 17, 0, 8, 13, 24, 13, 0, 9, 16, 24, 16, 0, 4, 15, 24, 15, 0, 12, 20, 24, 20, 0, 3, 12, 24, 12, 0, 17, 21, 24, 21, 0, 5, 7, 24, 7, 0, 16, 19, 24, 19, 0, 9, 8, 24, 8, 0, 10, 15, 24, 15, 0, 2, 14, 24, 14, 0, 13, 22, 24, 22, 0, 1, 11, 24, 11, 0, 21, 23, 24, 23, 0, 10, 3, 24, 3, 0, 13, 14, 24, 14, 0, 10, 11, 24, 11, 0, 4, 14, 24, 14, 0, 7, 20, 24, 20, 0, 7, 17, 24, 17, 0, 13, 17, 24, 17, 0, 4, 11, 24, 11, 0
Offset: 1
Keywords
Examples
First 5 terms; 26,5,2,18,1 Black numbers = 26, 2, 1 White numbers = 5, 18 To calculate the 6th term, Use the formula B(n) = B(n-1) - B(n-2) 6th term = 2 - 26 = -24. But there are no negative terms, so 6th term = 24 7th term = 2 - 1 = 1 8th term = 1 - 1 = 0 We can no longer calculate Black numbers, so we switch to calculating White numbers. 9th term = 1st White term - 2nd White term = 5 - 18 = -13 => No negative terms => 9th term = 13 10th term = 18 - 24 = -6 => 6 11th term = 24 - 0 = 24
Formula
B(n) = |B(n-1) - B(n-2)|,
W(n) = |W(n-1) - W(n-2)|.
Comments