Search: id:A062756 Results 1-1 of 1 results found. %I A062756 %S A062756 0,1,0,1,2,1,0,1,0,1,2,1,2,3,2,1,2,1,0,1,0,1,2,1,0,1,0,1,2,1,2,3,2,1,2, %T A062756 1,2,3,2,3,4,3,2,3,2,1,2,1,2,3,2,1,2,1,0,1,0,1,2,1,0,1,0,1,2,1,2,3,2,1, %U A062756 2,1,0,1,0,1,2,1,0,1,0,1,2,1,2,3,2,1,2,1,2,3,2,3,4,3,2,3,2,1,2,1,2,3,2 %N A062756 Number of 1's in ternary (base 3) expansion of n. %H A062756 R. Zumkeller, Table of n, a(n) for n = 0..10000 %H A062756 Michael Gilleland, Some Self-Similar Integer Sequences %F A062756 a(0) = 0, a(3n) = a(n), a(3n+1) = a(n)+1, a(3n+2) = a(n). %F A062756 G.f.: (Sum_{k>=0} x^(3^k)/(1+x^(3^k)+x^(2*3^k)))/(1-x). In general, the generating function for the number of digits equal to d in the base b representation of n (0=0} x^(d*b^k)/(Sum_{0<=i=0} x^(b^(k+1))/(Sum_{0<=i