The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A106317 Numbers k such that the remainder of the harmonic residue of k when divided by k is k-1. 3
1, 2, 3, 5, 7, 11, 13, 17, 19, 21, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
It appears that k is in the sequence iff k is prime or k is in {1, 21, 822857} (Verified to 3.1*10^6). It is true that if k is the product of two distinct primes, then k=21. - George J. Schaeffer (gschaeff(AT)andrew.cmu.edu), Apr 30 2005, R. J. Mathar, Jan 25 2017
The are no other nonprime terms below 10^11. - Amiram Eldar, Jan 09 2024
PROG
(PARI) is(n) = {my(f = factor(n)); n*numdiv(f) % sigma(f) == n - 1; } \\ Amiram Eldar, Jan 09 2024
CROSSREFS
Sequence in context: A339817 A328513 A318719 * A246281 A369331 A152242
KEYWORD
nonn
AUTHOR
George J. Schaeffer (gschaeff(AT)andrew.cmu.edu), Apr 29 2005
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 May 13 12:32 EDT 2024. Contains 372519 sequences. (Running on oeis4.)