A283894 Relative of Hofstadter Q-sequence: a(1) = 17, a(2) = 2; thereafter a(n) = a(n-a(n-1)) + a(n-a(n-2)).
17, 2, 17, 2, 17, 2, 17, 2, 17, 2, 17, 2, 17, 2, 17, 2, 17, 19, 2, 36, 2, 36, 2, 36, 2, 36, 2, 36, 2, 36, 2, 36, 2, 36, 2, 36, 19, 4, 38, 38, 34, 4, 55, 38, 17, 4, 91, 38, 17, 4, 127, 38, 17, 21, 40, 4, 34, 57, 4, 21, 72, 34, 2, 70, 2, 70, 2, 70, 2, 70, 19, 19, 42, 76, 2
Offset: 1
Keywords
Links
- Nathan Fox, Table of n, a(n) for n = 1..10000
Programs
Formula
For nonnegative integers i, if 1 <= 2n + r <= 594*2^(i+1) - 2, then
a(594*2^i + 100 + 2n) = 2
a(594*2^i + 100 + 2n + 1) = 594*2^(i+1) - 2.
Comments