A374308 Integers m, with k digits, such that m = Sum_{i=1..k} A000203(m without its i-th digit).
136, 10974, 96672, 227358, 455334, 527254, 947886
Offset: 1
Examples
136 is in the sequence as 136 = sigma(36) + sigma(16) + sigma(13) = 91 + 31 + 14. - _David A. Corneth_, Jul 27 2024
Programs
-
Maple
with(numtheory): P:=proc(q) local a,d,k,i,n,t; for n from 1 to q do t:=0; a:=convert(n,base,10); for k from 1 to nops(a) do d:=0; for i from 1 to nops(a) do if i<> k then d:=d*10+a[-i]; fi; od; t:=sigma(d)+t; od; if n=t then print(n); fi; od; end: P(10^6)
-
Mathematica
q[n_] := Module[{d = IntegerDigits[n]}, n == Total[DivisorSigma[1, Map[FromDigits, Delete[d, #] & /@ Range[Length[d]]]]]]; Select[Range[10^6], q] (* Amiram Eldar, Jul 27 2024 *)
Comments