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!)
A333570 Number of nonnegative values c such that c^n == -c (mod n). 5

%I #34 Sep 08 2022 08:46:25

%S 1,2,1,2,1,4,1,2,1,4,1,4,1,4,3,2,1,4,1,4,1,4,1,4,1,4,1,8,1,8,1,2,1,4,

%T 3,4,1,4,3,4,1,8,1,4,1,4,1,4,1,4,3,8,1,4,3,4,1,4,1,8,1,4,1,2,1,24,1,4,

%U 1,16,1,4,1,4,3,8,1,8,1,4,1,4,1,8,5,4,3,4,1,8,7,4,1,4,3

%N Number of nonnegative values c such that c^n == -c (mod n).

%C a(n) is the number of nonnegative bases c < n such that c^n + c == 0 (mod n).

%C a(2^k) = 2 for k > 0.

%C a(p^m) = 1 for odd prime p with m >= 0.

%C Let fy(n) = (the number of values b in Z/nZ such that b^y = b)/(the number of values c in Z/nZ such that -c^y = c) for nonnegative y, then:

%C f0(n) = A000012(n),

%C f1(n) = A026741(n),

%C f2(n) = A000012(n),

%C 1 <= f3(n) <= n,

%C f4(n) = A000012(n), ...,

%C 1 <= fn(n) = A182816(n)/a(n) <= n, where fn(n) = n for odd noncomposite numbers A006005 and Carmichael numbers A002997.

%H Antti Karttunen, <a href="/A333570/b333570.txt">Table of n, a(n) for n = 1..20000</a>

%F a(n) = A182816(n)/r for some odd r.

%o (Magma) [#[c: c in [0..n-1] | -c^n mod n eq c]: n in [1..95]];

%o (PARI) a(n) = sum(c=1, n, Mod(c, n)^n == -c); \\ _Michel Marcus_, Mar 27 2020

%Y Cf. A000012, A000079, A000961, A002997, A006005, A026741, A182816.

%K nonn

%O 1,2

%A _Juri-Stepan Gerasimov_, Mar 27 2020

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 7 10:38 EDT 2024. Contains 375730 sequences. (Running on oeis4.)