login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A185028
Numbers of the base-10 form ddd...d having Hamming weight d.
1
1, 55, 555, 7777, 66666, 888888
OFFSET
1,2
COMMENTS
Is 888888 the largest number in the sequence?
No more terms through 10^60000. - Robert G. Wilson v, Dec 24 2012
LINKS
Michael Brand, Prove of Finiteness of A185028. Solution of March 2013 Issue of "Using your Head is Permitted" Riddles.
EXAMPLE
555 = 1000101011_2 has five 1's.
MATHEMATICA
fQ[n_] := {Count[ IntegerDigits[n, 2], 1]} == Union[ IntegerDigits@ n]; f[n_] := Select[((10^n - 1) Range[9]/9), fQ]; k = 1; lst = {}; While[k < 11, a = f[k]; If[a != {}, AppendTo[lst, a]]; k++]; lst // Flatten (* Robert G. Wilson v, Dec 24 2012 *)
CROSSREFS
Sequence in context: A262103 A138053 A183320 * A222797 A180326 A119085
KEYWORD
nonn,base,fini,full
AUTHOR
Moshe Wolf, Dec 24 2012
STATUS
approved