login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A341693 Numbers k whose sum of digits divides sigma(k)-k. 0

%I #51 Jun 04 2021 07:27:58

%S 1,6,10,14,20,24,26,30,38,42,44,60,78,90,100,102,106,110,112,114,120,

%T 121,132,150,153,176,182,190,198,202,204,210,220,222,224,240,244,258,

%U 260,264,268,270,272,280,285,294,298,306,312,314,330,332,334,360,361,393,395

%N Numbers k whose sum of digits divides sigma(k)-k.

%e k=10 -> sigma(k)=1+2+5+10=18 sum_digits(k)=1+0=1 -> 18/1 = 18.

%e k=42 -> sigma(k)=1+2+3+6+7+14+21+42=96 sum_digits(k)=4+2=6 -> 96/6 = 16.

%p isA341693 := proc(n)

%p if modp(numtheory[sigma](n)-n,digsum(n)) =0 then

%p true;

%p else

%p false;

%p end if

%p end proc:

%p for n from 1 to 395 do

%p if isA341693(n) then

%p printf("%d,",n) ;

%p end if;

%p end do: # _R. J. Mathar_, Jun 04 2021

%t Select[Range[400], Divisible[DivisorSigma[1, #] - #, Plus @@ IntegerDigits[#]] &] (* _Amiram Eldar_, May 24 2021 *)

%o (PARI)

%o list(nn) = for(n=1, nn, if ((sigma(n)-n) % sumdigits(n) == 0, print1(n, ", ")))

%o list(1000)

%Y Cf. A007953, A001065, A132628.

%K nonn,base

%O 1,2

%A _Zdenek Cervenka_, May 24 2021

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 16 10:25 EDT 2024. Contains 375965 sequences. (Running on oeis4.)