OFFSET
1,2
COMMENTS
sigma_k(n) is the sum of the k-th powers of the divisors of n.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
25 is in the sequence as 25 is divisible by sigma_0(5) + sigma_1(2) = 2 + 3 = 5.
MATHEMATICA
f[n_]:=Reverse[IntegerDigits[n]];
g[n_]:=Sum[DivisorSigma[i-1, f[n][[i]]], {i, 1, Length[f[n]]}];
Select[Range[10000], Divisible[#, g[#]]&]
ds[n_]:=Total[DivisorSigma[#[[2]], #[[1]]]&/@Thread[{IntegerDigits[ n], Range[ IntegerLength[n]-1, 0, -1]}]]; Select[Range[3000], Divisible[ #, ds[#]]&] (* Harvey P. Dale, Jul 16 2018 *)
PROG
(PARI) isok(n) = my(d = Vecrev(digits(n))); if (vecmin(d), n % sum(k=1, #d, sigma(d[k], k-1)) == 0); \\ Michel Marcus, Jun 26 2017
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Ivan N. Ianakiev, Jun 26 2017
STATUS
approved