cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A318305 a(n) = Product_{primes p dividing n} p - Product_{primes p dividing n} (p-1).

Original entry on oeis.org

0, 1, 1, 1, 1, 4, 1, 1, 1, 6, 1, 4, 1, 8, 7, 1, 1, 4, 1, 6, 9, 12, 1, 4, 1, 14, 1, 8, 1, 22, 1, 1, 13, 18, 11, 4, 1, 20, 15, 6, 1, 30, 1, 12, 7, 24, 1, 4, 1, 6, 19, 14, 1, 4, 15, 8, 21, 30, 1, 22, 1, 32, 9, 1, 17, 46, 1, 18, 25, 46, 1, 4, 1, 38, 7, 20, 17, 54, 1, 6, 1, 42, 1, 30, 21, 44, 31, 12, 1, 22, 19, 24, 33, 48, 23, 4, 1, 8
Offset: 1

Views

Author

Antti Karttunen, Aug 26 2018

Keywords

Examples

			For n = 45 = 3^2 * 5, the prime factors are 3 and 5, thus a(45) = (3*5) - (2*4) = 15 - 8 = 7.
Sum_{k=1..n} a(k) ~ c * n^2 / 2, where c = A065463 - A307868 = 0.232761... . - _Amiram Eldar_, Dec 07 2023
		

Crossrefs

Programs

Formula

a(n) = A051953(n)/A003557(n) = A007947(n) - A173557(n) = A173557(n) - A318304(n).

Extensions

Corrected the notation in the definition - Antti Karttunen, Feb 03 2024