editing
approved
editing
approved
select(n->frac(n/convert(convert(n-1, base, 10), `+`))=0, [$2..923]);
# Paolo P. Lava, Apr 17 2018
approved
editing
proposed
approved
editing
proposed
(PARI) isok(n) = (n != 1) && !(n % sumdigits(n-1)); \\ Michel Marcus, Apr 18 17 2018
(PARI) isok(n) = (n != 1) && !(n % sumdigits(n-1)); \\ _Michel Marcus_, Apr 18 2018
proposed
editing
editing
proposed
Numbers n that are multiples of the digital sum of n-1.
72 = 9 * ds(71) = 9x9*(7+1) =9x8 9*8; 144 = 18 * ds(143) = 18 * (1+4+3) = 18 * 8.
proposed
editing
editing
proposed
Muniru A Asiru, <a href="/A160948/b160948.txt">Table of n, a(n) for n = 1..1000</a>
(GAP) a:=List(Filtered(List([2..700], m->[m, List(List(List([1..m], n->n-1), ListOfDigits), Sum)[m]]), i->i[1] mod i[2]=0), j->j[1]); # Muniru A Asiru, Apr 17 2018
proposed
editing