Pieter Post, <a href="/A260348/b260348_1.txt">Table of n, a(n) for n = 1..12089</a>
Pieter Post, <a href="/A260348/b260348_1.txt">Table of n, a(n) for n = 1..12089</a>
editing
approved
....if c%kl==0:
(PARI) isok(n) = {my(sd = sumdigits(n); , nsd = #digits(sd)); n % (10^nsd - sd) == 0; } \\ Michel Marcus, Aug 05 2015
nonn,base,less
proposed
editing
editing
proposed
Divisible[n, 10^k - d]]; Select[Range@ 210, 314, fQ] (* or *)
Select[Range@ 210, 314, Divisible[#, (10^(Floor[Log[10, Total@ IntegerDigits@ #]] + 1) - Total@ IntegerDigits@ #)] &] (* Michael De Vlieger, Aug 05 2015 *)
Select[Range@ 210, Divisible[#, (10^(Floor[Log[10, Total@ IntegerDigits@ #]] + 1) - Total@ IntegerDigits@ #)] &] (* Michael De Vlieger, Aug 05 2015 *)
Numbers n such that n is divisible by (10^k - digitsum(n)), where k equals the number of digits of digitsum(n)..
fQ[n_] := Block[{d = Total@ IntegerDigits@ n, k}, k = IntegerLength@ d;
Divisible[n, 10^k - d]]; Select[Range@ 210, fQ] (* or *)
Select[Range@ 210, Divisible[#, (10^(Floor[Log[10, Total@ IntegerDigits@ #]] + 1) - Total@ IntegerDigits@ #)] &] (* Michael De Vlieger, Jul 23 Aug 05 2015 *)
proposed
editing
editing
proposed
(Python)
This sequence is infinite because all numbers with a sod digitsum equal to 9 are part of this sequence.