Number of i such that |d(i) - d(i-1)| = 1, where Sum_{i=0..m} d(i)*4^i is the base-4 representation of n.

A037907

Number of i such that |d(i) - d(i-1)| = 1, where Sum_{i=0..m} d(i)*4^i is the base-4 representation of n.

Terms

    a(0) =0a(1) =0a(2) =0a(3) =1a(4) =0a(5) =1a(6) =0a(7) =0a(8) =1a(9) =0a(10) =1a(11) =0a(12) =0a(13) =1a(14) =0a(15) =1a(16) =2a(17) =1a(18) =1a(19) =1a(20) =0a(21) =1a(22) =0a(23) =1a(24) =2a(25) =1a(26) =2a(27) =0a(28) =0a(29) =1

External references