Number of i such that |d(i) - d(i-1)| = 1, where Sum_{i=0..m} d(i)*3^i is the base-3 representation of n.
A037906
Number of i such that |d(i) - d(i-1)| = 1, where Sum_{i=0..m} d(i)*3^i is the base-3 representation of n.
Terms
- a(0) =0a(1) =0a(2) =1a(3) =0a(4) =1a(5) =0a(6) =1a(7) =0a(8) =1a(9) =2a(10) =1a(11) =1a(12) =0a(13) =1a(14) =1a(15) =2a(16) =1a(17) =0a(18) =1a(19) =0a(20) =2a(21) =1a(22) =2a(23) =0a(24) =1a(25) =0a(26) =1a(27) =2a(28) =1a(29) =3
External references
- oeis: A037906