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!)
A374152 Number of divisors d of n such that d^(n/d) == d (mod (d + n/d)). 0
1, 2, 2, 2, 2, 2, 2, 3, 3, 2, 2, 2, 2, 3, 4, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 2, 2, 4, 2, 3, 2, 2, 4, 3, 2, 3, 3, 4, 2, 2, 2, 3, 2, 2, 2, 3, 3, 3, 3, 3, 2, 3, 3, 2, 2, 2, 2, 2, 2, 3, 6, 3, 3, 2, 2, 2, 2, 2, 2, 3, 2, 3, 5, 2, 3, 2, 2, 3, 3, 2, 2, 4, 2, 2, 2, 3, 2, 5 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
For all n, the divisors counted in a(n) include 1 and n.
LINKS
EXAMPLE
a(8) = 3 because the divisors of 8 are 1, 2, 4 and 8, and
1^(8/1) == 1 (mod (1 + 8/1)),
4^(8/4) == 4 (mod (4 + 8/4)) and
8^(8/8) == 8 (mod (8 + 8/8)), but
2^(8/2) != 2 (mod (2 + 8/2)).
MATHEMATICA
a[n_]:=Sum[Boole[Mod[d^(n/d), n/d+d]==d], {d, Divisors[n]}]; Array[a, 90] (* Stefano Spezia, Jun 30 2024 *)
PROG
(Magma) [#[d: d in Divisors(n) | d^(n div d) mod ((n div d)+d) eq d]: n in [1..90]]
CROSSREFS
Sequence in context: A332025 A212300 A165074 * A273165 A336313 A095139
KEYWORD
nonn
AUTHOR
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 September 16 03:28 EDT 2024. Contains 375959 sequences. (Running on oeis4.)