OFFSET
1,2
COMMENTS
A037861(a(n)) = -1. - Reinhard Zumkeller, Mar 31 2015
The viabin numbers of the integer partitions in which the number of parts is equal to the largest part (for the definition of viabin number see comment in A290253). For example, 99 is in the sequence because it is the viabin number of the integer partition [4,2,2,2]. - Emeric Deutsch, Aug 29 2017
LINKS
EXAMPLE
99 is in the sequence because its binary form is 1100011. - Emeric Deutsch, Aug 29 2017
MAPLE
vitopart := proc (n) local L, i, j, N, p, t: N := 2*n; L := ListTools:-Reverse(convert(N, base, 2)): j := 0: for i to nops(L) do if L[i] = 0 then j := j+1: p[j] := numboccur(L[1 .. i], 1) end if end do: sort([seq(p[t], t = 1 .. j)], `>=`) end proc: A := {}; for m to 500 do if nops(vitopart(m)) = max(vitopart(m)) then A := `union`(A, {m}) else end if end do: A; # program is based on my comment; the command vitopart(n) yields the integer partition having viabin number n. - Emeric Deutsch, Aug 29 2017
MATHEMATICA
Select[Range[400], DigitCount[#, 2, 1]==DigitCount[#, 2, 0]+1&] (* Harvey P. Dale, May 24 2019 *)
PROG
(Haskell)
a031448 n = a031448_list !! (n-1)
a031448_list = filter ((== -1) . a037861) [1..]
-- Reinhard Zumkeller, Mar 31 2015
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved