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!)
A354097 a(n) = 1 if n-phi(n) is a multiple of 4, otherwise 0. 3

%I #10 May 18 2022 03:15:20

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

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

%U 0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,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,0,1,0,1,0,1,0,0,0,1,0

%N a(n) = 1 if n-phi(n) is a multiple of 4, otherwise 0.

%H Antti Karttunen, <a href="/A354097/b354097.txt">Table of n, a(n) for n = 1..65537</a>

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

%F a(n) = 1 iff A010873(A051953(n)) == 0.

%t a[n_] := If[Divisible[n - EulerPhi[n], 4] , 1, 0]; Array[a, 100] (* _Amiram Eldar_, May 17 2022 *)

%o (PARI) A354097(n) = (0==((n-eulerphi(n))%4));

%Y Characteristic function of A354098.

%Y Cf. A000010, A010873, A051953.

%Y Cf. also A354037.

%K nonn

%O 1

%A _Antti Karttunen_, May 17 2022

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 May 10 13:53 EDT 2024. Contains 372387 sequences. (Running on oeis4.)