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!)
A239061 Number of integers x, 1 <= x <= n, such that x^x == 1 (mod n). 4

%I #16 Apr 05 2021 03:54:34

%S 1,1,2,1,2,1,2,1,2,1,3,1,5,2,4,1,4,1,4,1,3,3,2,1,2,3,2,2,4,1,3,1,5,1,

%T 6,1,3,2,4,1,5,1,6,3,5,1,2,1,4,1,6,2,3,1,5,2,3,3,3,1,5,3,3,1,9,2,5,1,

%U 5,2,4,1,5,3,5,3,10,1,5,1,2,1,3,1,10,3

%N Number of integers x, 1 <= x <= n, such that x^x == 1 (mod n).

%H Giovanni Resta, <a href="/A239061/b239061.txt">Table of n, a(n) for n = 1..10000</a>

%t gg1[n_] := Sum[If[PowerMod[x, x, n] == Mod[1, n], 1, 0], {x, n}];Array[gg1,200]

%Y Cf. A239062, A239063 (indices of 1's).

%K nonn

%O 1,3

%A _José María Grau Ribas_, Mar 09 2014

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 July 3 15:45 EDT 2024. Contains 373982 sequences. (Running on oeis4.)