|
|
A253205
|
|
Natural numbers n such that n-1 is divisible by the sum of the decimal digits of n.
|
|
1
|
|
|
1, 10, 11, 13, 17, 41, 43, 56, 91, 97, 100, 101, 106, 121, 131, 155, 157, 161, 181, 188, 221, 232, 233, 239, 254, 271, 274, 301, 305, 311, 353, 361, 365, 385, 391, 401, 421, 451, 452, 491, 494, 508, 521, 529, 541, 551, 599, 610, 617, 625, 631, 647, 650, 673
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
Numbers of the form 1000...000 and 1000...0001 also belong to A144980.
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
1-1 = 0 is divisible by 1, hence 1 is in the sequence; 56-1 = 55 is divisible by 5+6 = 11, hence 56 is in the sequence.
|
|
MAPLE
|
with(numtheory): P:=proc(q)local a, b, k, n;
for n from 1 to q do a:=n; b:=0;
for k from 1 to ilog10(n)+1 do b:=b+(a mod 10); a:=trunc(a/10); od;
if type((n-1)/b, integer) then print(n); fi; od; end: P(10^5);
|
|
MATHEMATICA
|
Select[Range[10^3], Mod[#-1, Total[IntegerDigits[#]]]==0&] (* Ivan N. Ianakiev, Mar 25 2015 *)
|
|
PROG
|
(PARI) lista(nn) = for (n=1, nn, if ((n-1) % sumdigits(n) == 0, print1(n, ", "))); \\ Michel Marcus, Mar 25 2015
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|