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”).

A171491
Natural numbers not divisible by their number of decimal digits.
3
11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67, 69, 71, 73, 75, 77, 79, 81, 83, 85, 87, 89, 91, 93, 95, 97, 99, 100, 101, 103, 104, 106, 107, 109, 110, 112, 113, 115, 116, 118, 119, 121, 122, 124, 125
OFFSET
1,1
COMMENTS
Complement of A098952.
Asymptotic density 1. [Charles R Greathouse IV, Nov 13 2010]
LINKS
EXAMPLE
100 has three digits and is not divisible by 3, therefore 100 is in the sequence.
MATHEMATICA
Select[Range[150], !Divisible[#, IntegerLength[#]]&] (* Harvey P. Dale, Apr 24 2011 *)
PROG
(Magma) [n: n in [1..140] | not IsIntegral(n/#Intseq(n))]; // Bruno Berselli, Feb 09 2016
(Python)
def ok(n): return n%len(str(n))
print([k for k in range(142) if ok(k)]) # Michael S. Branicky, Feb 07 2022
CROSSREFS
Sequence in context: A358270 A358076 A292513 * A277268 A337254 A152200
KEYWORD
nonn,base
AUTHOR
Jaroslav Krizek, Dec 10 2009
STATUS
approved