login
Column 3 of A050600: a(n) = add1c(n,3).
3

%I #9 Feb 25 2019 11:03:54

%S 1,3,2,2,1,4,3,3,1,3,2,2,1,5,4,4,1,3,2,2,1,4,3,3,1,3,2,2,1,6,5,5,1,3,

%T 2,2,1,4,3,3,1,3,2,2,1,5,4,4,1,3,2,2,1,4,3,3,1,3,2,2,1,7,6,6,1,3,2,2,

%U 1,4,3,3,1,3,2,2,1,5,4,4,1

%N Column 3 of A050600: a(n) = add1c(n,3).

%C Image of A001511 under the map x -> {1,x+2,x+1,x+1}. - _Charlie Neder_, Feb 25 2019

%F a(4n) = 1, a(4n+1)-2 = a(4n+2)-1 = a(4n+3)-1 = A001511(n) for all n >= 0. - _M. F. Hasler_, Feb 25 2019

%o (PARI) A050604(n)=if((n=divrem(n,4))[2],valuation(n[1]+1,2)+2+(n[2]<2),1) \\ _M. F. Hasler_, Feb 25 2019

%Y Cf. A050600, A001511.

%K nonn

%O 0,2

%A _Antti Karttunen_, Jun 22 1999