|
|
A098952
|
|
Integers divisible by their number of digits.
|
|
7
|
|
|
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 102, 105, 108, 111, 114, 117, 120, 123, 126, 129, 132, 135, 138, 141
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,3
|
|
COMMENTS
|
|
|
LINKS
|
|
|
EXAMPLE
|
102 has three digits and is divisible by 3, therefore 102 is in the sequence.
|
|
MATHEMATICA
|
Join[{0}, Select[Range[150], Divisible[#, IntegerLength[#]]&]] (* Harvey P. Dale, Dec 13 2020 *)
|
|
PROG
|
(Magma) [0] cat [n: n in [1..150] | IsIntegral(n/#Intseq(n))]; // Bruno Berselli, Feb 09 2016
(Python)
def ok(n): return n%len(str(n)) == 0
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|