Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A100372
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A100372 Build up the least positive nonprime [composite] number from all subsets of decimal digits {0,1,2,3,4,5,6,7,8,9}. The terns are ordered as follows: 1. for fixed k, the k-digit-subsets for design are ordered lexicographically; 2. choose k=1,2,...,9,10-subsets. +0
1
1, 22, 33, 4, 55, 6, 77, 8, 9, 10, 20, 30, 40, 50, 60, 70, 80, 90, 12, 133, 14, 15, 16, 117, 18, 91, 32, 24, 25, 26, 27, 28, 92, 34, 35, 36, 377, 38, 39, 45, 46, 74, 48, 49, 56, 57, 58, 95, 76, 68, 69, 78, 779, 98, 102, 130, 104, 105, 106, 170, 108, 190, 203, 204, 205, 206 (list; graph; listen)
OFFSET

1,2

COMMENT

Composite analogue of A099756. From the 1023 non-empty digit subsets 1022 terms can be designed because 0 is not permitted.

EXAMPLE

For 2-subsets of {1,3},{1,7},{3,7},{7,9} the least composites should have at least two copies of a digit; that is why the solutions {133,117,377,779} have 3 digits.

MATHEMATICA

<<DiscreteMath`Combinatorica` tm=TimeUsed[]; ta={{0}}; upps={100, 1000, 1000, 7000, 70000}; Do[ks1=KSubsets[{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}, hu]; Table[fla=1; Do[If[Equal[Union[IntegerDigits[n]], Part[ks1, j]]&&Equal[fla, 1]&&!PrimeQ[n], ta=Append[ta, n]; Print[n]; fla=0], {n, 10^(hu-1), Part[upps, hu]}], {j, 1, Length[ks1]}], {hu, 1, 4}]; {ta=Delete[ta, 1], Length[ta], TimeUsed[]-tm}

CROSSREFS

Cf. A099756.

Sequence in context: A106555 A106557 A121019 this_sequence A084996 A096768 A072041

Adjacent sequences: A100369 A100370 A100371 this_sequence A100373 A100374 A100375

KEYWORD

fini,nonn

AUTHOR

Labos E. (labos(AT)ana.sote.hu), Dec 01 2004

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified July 26 23:19 EDT 2008. Contains 142293 sequences.


AT&T Labs Research