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!)
A054009 n read modulo (number of proper divisors of n). 5
0, 0, 0, 0, 0, 0, 2, 1, 1, 0, 2, 0, 2, 0, 0, 0, 3, 0, 0, 0, 1, 0, 3, 1, 2, 0, 3, 0, 2, 0, 2, 0, 1, 2, 4, 0, 2, 0, 5, 0, 0, 0, 4, 0, 1, 0, 3, 1, 0, 0, 2, 0, 5, 1, 0, 0, 1, 0, 5, 0, 2, 3, 4, 2, 3, 0, 3, 0, 0, 0, 6, 0, 2, 0, 1, 2, 1, 0, 8, 1, 1, 0, 7, 1, 2, 0, 4, 0, 2, 1, 2, 0, 1, 2, 8, 0, 3, 4, 4, 0, 4, 0, 6, 0, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
2,7
LINKS
FORMULA
a(n) = n mod (tau(n) - 1), for n>1.
MAPLE
[ seq( i mod (tau(i) - 1), i=2..150) ];
MATHEMATICA
Table[Mod[n, DivisorSigma[0, n]-1], {n, 2, 110}] (* Harvey P. Dale, Dec 05 2015 *)
PROG
(PARI) a(n) = n % (numdiv(n) - 1); \\ Michel Marcus, Nov 21 2019
(Python)
from sympy import divisor_count
def A054009(n): return n%(divisor_count(n)-1) # Chai Wah Wu, Mar 14 2023
CROSSREFS
Sequence in context: A051632 A278700 A122821 * A339210 A176451 A091297
KEYWORD
nonn
AUTHOR
Asher Auel, Jan 12 2000
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 21 00:14 EDT 2024. Contains 372720 sequences. (Running on oeis4.)