The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A070306 a(n) = 2*phi(n)/2^omega(n). 3
2, 1, 2, 2, 4, 1, 6, 4, 6, 2, 10, 2, 12, 3, 4, 8, 16, 3, 18, 4, 6, 5, 22, 4, 20, 6, 18, 6, 28, 2, 30, 16, 10, 8, 12, 6, 36, 9, 12, 8, 40, 3, 42, 10, 12, 11, 46, 8, 42, 10, 16, 12, 52, 9, 20, 12, 18, 14, 58, 4, 60, 15, 18, 32, 24, 5, 66, 16, 22, 6, 70, 12, 72, 18, 20, 18, 30, 6, 78, 16 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Always an integer.
LINKS
Steven Finch and Pascal Sebah, Squares and Cubes Modulo n, arXiv:math/0604465 [math.NT], 2006-2016.
FORMULA
Sum_{k=1..n} ~ c * n / sqrt(log(n)), where c = A271547/sqrt(Pi) (Finch and Sebah, 2006). - Amiram Eldar, Apr 29 2022
MATHEMATICA
a[n_] := EulerPhi[n]/2^(PrimeNu[n] - 1); Array[a, 100] (* Amiram Eldar, Apr 29 2022 *)
PROG
(PARI) for(n=1, 100, print1(2*eulerphi(n)/2^omega(n), ", "))
(Python)
from sympy import totient as phi, primenu as omega
def a(n): return 2*phi(n)//2**omega(n)
print([a(n) for n in range(1, 43)]) # Michael S. Branicky, Apr 29 2022
CROSSREFS
Sequence in context: A337679 A158379 A122838 * A355639 A050378 A225216
KEYWORD
easy,nonn
AUTHOR
Benoit Cloitre, May 12 2002
EXTENSIONS
Offset changed to 1 and a(1) inserted by Amiram Eldar, Apr 29 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 May 20 06:19 EDT 2024. Contains 372703 sequences. (Running on oeis4.)