[go: up one dir, main page]

login
A050604
Column 3 of A050600: a(n) = add1c(n,3).
3
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, 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, 1, 4, 3, 3, 1, 3, 2, 2, 1, 5, 4, 4, 1
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
Sequence in context: A200996 A154364 A183043 * A262672 A252731 A239066
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jun 22 1999
STATUS
approved