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!)
A345312 a(n) = Sum_{p|n} (n/p)^gcd(p,n/p). 0
0, 1, 1, 4, 1, 5, 1, 16, 27, 7, 1, 40, 1, 9, 8, 64, 1, 225, 1, 104, 10, 13, 1, 152, 3125, 15, 729, 200, 1, 31, 1, 256, 14, 19, 12, 2052, 1, 21, 16, 408, 1, 41, 1, 488, 3384, 25, 1, 592, 823543, 100025, 20, 680, 1, 5859, 16, 792, 22, 31, 1, 932, 1, 33, 9270, 1024, 18, 61, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
COMMENTS
a(p) = Sum_{p|p} (p/p)^gcd(p,p/p) = 1^1 = 1 for primes p.
LINKS
EXAMPLE
a(10) = Sum_{p|10} (10/p)^gcd(p,10/p) = 5^gcd(2,5) + 2^gcd(5,2) = 5^1 + 2^1 = 7.
MATHEMATICA
Table[Sum[(n/k)^GCD[k, n/k] (PrimePi[k] - PrimePi[k - 1]) (1 - Ceiling[n/k] + Floor[n/k]), {k, n}], {n, 100}]
CROSSREFS
Sequence in context: A028271 A168066 A029666 * A269593 A194512 A131230
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Jun 13 2021
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 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)