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!)
A351112 Number of balanced numbers dividing n. 4
1, 2, 2, 2, 1, 4, 1, 2, 2, 2, 1, 5, 1, 3, 3, 2, 1, 4, 1, 2, 2, 2, 1, 5, 1, 2, 2, 3, 1, 6, 1, 2, 2, 2, 2, 5, 1, 2, 2, 2, 1, 6, 1, 2, 3, 2, 1, 5, 1, 2, 2, 2, 1, 4, 1, 4, 2, 2, 1, 7, 1, 2, 2, 2, 1, 4, 1, 2, 2, 5, 1, 5, 1, 2, 3, 2, 1, 5, 1, 2, 2, 2, 1, 7, 1, 2, 2, 2, 1, 6, 1, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
A balanced number k is a number such that phi(k) | sigma(k).
LINKS
FORMULA
a(n) = Sum_{d|n, phi(d)|sigma(d)} 1.
a(n) = Sum_{d|n} A351114(d).
a(n) = tau(n) - Sum_{d|n} sign(sigma(d) mod phi(d)).
EXAMPLE
a(4) = 2; the balanced divisors of 4 are 1 and 2.
a(5) = 1; 1 is the only balanced divisor of 5.
a(6) = 4; the balanced divisors of 6 are 1,2,3,6.
MAPLE
f:= proc(n) uses numtheory;
nops(select(t -> sigma(t) mod phi(t) = 0, divisors(n)))
end proc:
map(f, [$1..100]); # Robert Israel, Nov 28 2023
MATHEMATICA
a[n_] := DivisorSum[n, 1 &, Divisible[DivisorSigma[1, #], EulerPhi[#]] &]; Array[a, 100] (* Amiram Eldar, Feb 01 2022 *)
PROG
(PARI) a(n) = sumdiv(n, d, if (!(sigma(d) % eulerphi(d)), 1)); \\ Michel Marcus, Feb 01 2022
CROSSREFS
Cf. A351113 (sum of the balanced numbers dividing n).
Cf. A000005 (tau), A000010 (phi), A000203 (sigma), A020492 (balanced numbers), A023897, A351114.
Sequence in context: A289778 A277523 A144393 * A089400 A239209 A180824
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Jan 31 2022
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 16 17:08 EDT 2024. Contains 371749 sequences. (Running on oeis4.)