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!)
A343983 Numbers k such that Sum_{j|k} j^j == 1 (mod k). 3
1, 2, 3, 4, 5, 7, 9, 11, 13, 17, 19, 23, 25, 27, 29, 31, 37, 41, 43, 47, 49, 53, 59, 61, 67, 71, 72, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 121, 125, 127, 131, 137, 139, 149, 151, 157, 163, 167, 169, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
This sequence is different from A074583.
LINKS
MATHEMATICA
q[n_] := Divisible[DivisorSum[n, #^# &] - 1, n]; Select[Range[260], q] (* Amiram Eldar, May 06 2021 *)
PROG
(PARI) isok(n) = sumdiv(n, d, Mod(d, n)^d)==1;
(Python)
from itertools import count, islice
from sympy import divisors
def A343983_gen(): # generator of terms
yield 1
for k in count(1):
if sum(pow(j, j, k) for j in divisors(k, generator=True)) % k == 1:
yield k
A343983_list = list(islice(A343983_gen(), 30)) # Chai Wah Wu, Jun 19 2022
CROSSREFS
Sequence in context: A081998 A325266 A284288 * A074583 A001092 A327782
KEYWORD
nonn
AUTHOR
Seiichi Manyama, May 06 2021
STATUS
approved

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 April 23 16:40 EDT 2024. Contains 371916 sequences. (Running on oeis4.)