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!)
A373993 a(n) = 1 if the number of divisors of n divides n-1, otherwise 0. 1

%I #9 Jun 30 2024 22:07:22

%S 1,0,1,1,1,0,1,0,0,0,1,0,1,0,0,1,1,0,1,0,1,0,1,0,1,0,0,0,1,0,1,0,1,0,

%T 0,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0,1,0,1,0,1,0,0,1,1,0,1,0,

%U 1,0,1,0,1,0,0,0,1,0,1,0,1,0,1,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,1,1,0,1,0,1,0,1,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,1

%N a(n) = 1 if the number of divisors of n divides n-1, otherwise 0.

%H Antti Karttunen, <a href="/A373993/b373993.txt">Table of n, a(n) for n = 1..100000</a>

%H <a href="/index/Ch#char_fns">Index entries for characteristic functions</a>

%t A373993[n_] := Boole[Divisible[n - 1, DivisorSigma[0, n]]];

%t Array[A373993, 100] (* _Paolo Xausa_, Jun 30 2024 *)

%o (PARI) A373993(n) = !((n-1)%numdiv(n));

%Y Characteristic function of A354711.

%Y Cf. A000005.

%K nonn

%O 1

%A _Antti Karttunen_, Jun 30 2024

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 8 21:25 EDT 2024. Contains 375759 sequences. (Running on oeis4.)