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!)
A064448 a(n) = gcd(n^n, EulerPhi(n^n)). 1
1, 2, 9, 128, 625, 15552, 117649, 8388608, 129140163, 2000000000, 25937424601, 2972033482752, 23298085122481, 1587429546508288, 29192926025390625, 9223372036854775808, 48661191875666868481, 13115469358432179191808 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(n) = gcd(A000312(n), A000010(A000312(n))).
If n = Product_j (p_j)^(e_j) is the prime factorization of n, then a(n) = Product_j p_j^(n e_j - 1) * gcd(Product_j p_j, Product_j (p_j-1)). - Robert Israel, Jan 18 2018
MAPLE
f:= proc(n) local F, x;
F:= ifactors(n)[2];
mul(x[1]^(n*x[2]-1), x=F) * igcd(mul(x[1], x=F), mul(x[1]-1, x=F))
end proc:
map(f, [$1..100]); # Robert Israel, Jan 18 2018
PROG
(PARI) { for (n=1, 100, p=n^n; write("b064448.txt", n, " ", gcd(p, eulerphi(p))) ) } \\ Harry J. Smith, Sep 14 2009
CROSSREFS
Sequence in context: A162955 A197314 A295331 * A173215 A110817 A189428
KEYWORD
nonn
AUTHOR
Labos Elemer, Oct 02 2001
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 23 08:33 EDT 2024. Contains 371905 sequences. (Running on oeis4.)