Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A124668
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A124668 Numbers that together with their prime factors contain every digit exactly once. +0
1
10968, 28651, 43610, 48960, 50841, 65821, 80416, 90584 (list; graph; listen)
OFFSET

1,1

EXAMPLE

10968 = 2^3 * 3 * 457.

MAPLE

isA124668 := proc(n) local digs, digs2, f, fac, b ; digs := convert(n, base, 10) ; f := ifactors(n)[2] ; for fac from 1 to nops(f) do b := op(1, op(fac, f)) ; digs := [op(digs), op(convert(b, base, 10))] ; od ; digs2 := convert(digs, set) ; if nops(digs2) = 10 and nops(digs2)=nops(digs) then print(n, f) ; RETURN(true) ; else RETURN(false) ; fi ; end : A124668aux := proc(n, dleft) local i, nnxt, dnxt ; isA124668(n) : for i from 1 to nops(dleft) do nnxt := 10*n+op(i, dleft) ; dnxt := dleft minus {op(i, dleft)} ; if nops(dnxt) > 0 then A124668aux(nnxt, dnxt) ; fi ; od ; end : dleft := {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} : for i from 1 to 9 do dnxt := dleft minus {i} ; A124668aux(i, dnxt) : od : - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Jan 13 2007

MATHEMATICA

Select[Range[2, 1000000], Sort[Join[IntegerDigits[ # ], Flatten[IntegerDigits[Transpose[FactorInteger[ # ]][[1]]]]]] == {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} &]

CROSSREFS

Sequence in context: A003919 A105716 A035913 this_sequence A104323 A034712 A045152

Adjacent sequences: A124665 A124666 A124667 this_sequence A124669 A124670 A124671

KEYWORD

base,fini,full,nonn

AUTHOR

Tanya Khovanova (tanyakh(AT)yahoo.com), Dec 23 2006

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 November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research