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!)
A081400 a(n) = d(n) - bigomega(n) - A005361(n). 1
0, 0, 0, -1, 0, 1, 0, -2, -1, 1, 0, 1, 0, 1, 1, -3, 0, 1, 0, 1, 1, 1, 0, 1, -1, 1, -2, 1, 0, 4, 0, -4, 1, 1, 1, 1, 0, 1, 1, 1, 0, 4, 0, 1, 1, 1, 0, 1, -1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 6, 0, 1, 1, -5, 1, 4, 0, 1, 1, 4, 0, 1, 0, 1, 1, 1, 1, 4, 0, 1, -3, 1, 0, 6, 1, 1, 1, 1, 0, 6, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 4, 0, 1, 4, 1, 0, 1, 0, 4, 1, 1, 0, 4, 1, 1, 1, 1, 1, 8, -1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,8
LINKS
FORMULA
a(n) = A000005(n) - A001222(n) - A005361(n).
EXAMPLE
Negative for true prime powers; zero for 1 and primes; see also A030231, A007304, A034683, A075819 etc. to judge about positivity or magnitude.
PROG
(PARI) a(n) = my(f=factor(n)); numdiv(n) - bigomega(n) - prod(k=1, #f~, f[k, 2]); \\ Michel Marcus, May 25 2017
(Python)
from sympy import primefactors, factorint, divisor_count
from operator import mul
def bigomega(n): return 0 if n==1 else bigomega(n/primefactors(n)[0]) + 1
def a005361(n):
f=factorint(n)
return 1 if n==1 else reduce(mul, [f[i] for i in f])
def a(n): return divisor_count(n) - bigomega(n) - a005361(n) # Indranil Ghosh, May 25 2017
CROSSREFS
Sequence in context: A333925 A342595 A156709 * A328194 A131963 A130538
KEYWORD
sign
AUTHOR
Labos Elemer, Mar 28 2003
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.)