login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A092911 Numbers all of whose divisors can be formed using their digits. Divisor digits are a subset of the digits of the number. 5
1, 11, 13, 17, 19, 31, 41, 61, 71, 101, 103, 107, 109, 113, 121, 125, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 241, 251, 271, 281, 311, 313, 317, 331, 401, 419, 421, 431, 461, 491, 521, 541, 571 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
All primes containing 1 are members.
Sequence is a subsequence of A011531. The first nonprime terms of the sequence are 1, 121, 125, 1207, 1255, 1379, 10201, 10379, 11009, 11209, 12419, 12709, 12755, ... - R. J. Mathar, Jul 26 2007
LINKS
EXAMPLE
131 is a term. 143 is not a term as the divisor 11 contains two 1's.
MAPLE
isA092911 := proc(n) local digs, digsleft, divs, d, i, j ; digs := convert(n, base, 10) ; divs := numtheory[divisors](n) ; for i from 1 to nops(divs) do digsleft := digs ; d := convert(op(i, divs), base, 10) ; for j in d do if member(j, digsleft, 'jposit') then digsleft := subsop(jposit=NULL, digsleft) ; else RETURN(false) ; fi ; od ; od ; RETURN(true) ; end: for n from 1 to 600 do if isA092911(n) then printf("%d, ", n) ; fi ; od ; # R. J. Mathar, Jul 26 2007
MATHEMATICA
subQ[s1_, s2_] := AllTrue[Count[s1, #] & /@ (First /@ (t = Tally[s2])) - Last /@ t, # >= 0 &]; digQ[n1_, n2_] := subQ[IntegerDigits[n1], IntegerDigits[n2]]; seqQ[n_] := AllTrue[Most@Divisors[n], digQ[n, #] &]; Select[Range[600], seqQ] (* Amiram Eldar, Nov 12 2020 *)
PROG
(Python)
from sympy import divisors
from collections import Counter
def ok(n):
ncounts = Counter(str(n))
for d in divisors(n)[:-1]:
divcounts = Counter(str(d))
if any(ncounts[c] < divcounts[c] for c in divcounts): return False
return True
print(list(filter(ok, range(1, 630)))) # Michael S. Branicky, May 08 2021
CROSSREFS
Sequence in context: A003626 A154981 A092912 * A062634 A239058 A208270
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Mar 14 2004
EXTENSIONS
Corrected and extended by R. J. Mathar, Jul 26 2007
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 10:01 EDT 2024. Contains 371967 sequences. (Running on oeis4.)