OFFSET
0,2
COMMENTS
Image of A001511 under the map x -> {1,x+2,x+1,x+1}. - Charlie Neder, Feb 25 2019
FORMULA
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
PROG
(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
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jun 22 1999
STATUS
approved