Let m(n,k) be the sequence defined by m(n,1)=1, m(n,2)=n, m(n,k+2)=(m(n,k+1)+m(n,k))/2 if m(n,k+1)+m(n,k) is even, m(n,k+2)=m(n,k+1)-m(n,k) otherwise. Sequence gives the (experimentally unique) solution to m(n,x)=0 (for k > this solution m(n,k) is constant = +1 or -1 depending on n) or a(n)=0 if there is no solution (in this case the cycle (1,3,2,-1,-3,-2) is reached).
A069206
Let m(n,k) be the sequence defined by m(n,1)=1, m(n,2)=n, m(n,k+2)=(m(n,k+1)+m(n,k))/2 if m(n,k+1)+m(n,k) is even, m(n,k+2)=m(n,k+1)-m(n,k) otherwise. Sequence gives the (experimentally unique) solution to m(n,x)=0 (for k > this solution m(n,k) is constant = +1 or -1 depending on n) or a(n)=0 if there is no solution (in this case the cycle (1,3,2,-1,-3,-2) is reached).
Terms
- a(0) =0a(1) =5a(2) =0a(3) =6a(4) =11a(5) =11a(6) =24a(7) =10a(8) =29a(9) =0a(10) =40a(11) =20a(12) =34a(13) =12a(14) =42a(15) =19a(16) =0a(17) =17a(18) =35a(19) =26a(20) =27a(21) =17a(22) =19a(23) =0a(24) =65a(25) =30a(26) =56a(27) =57a(28) =65a(29) =16
External references
- oeis: A069206