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!)
A058663 a(n) = gcd(n-1, n-phi(n)). 2
0, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 7, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 23, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 1, 3, 1, 1, 21, 1, 1, 3, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 3, 1, 1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,10
LINKS
FORMULA
a(n) = gcd(n-1, cototient(n)) = gcd(n-1, A051953(n)).
EXAMPLE
For n = 15; n-1 = 14, cototient(15) = 15-phi(15) = 7, a(15) = gcd(14,7) = 7; For most n-s, among others for primes a(n) = 1.
MAPLE
with(numtheory); A058663:=n->igcd(n-1, n-phi(n)); seq(A058663(n), n=1..100); # Wesley Ivan Hurt, Apr 01 2014
MATHEMATICA
Table[GCD[n - 1, n - EulerPhi[n]], {n, 100}] (* Wesley Ivan Hurt, Apr 01 2014 *)
PROG
(PARI) A058663(n) = gcd(n-1, n-eulerphi(n)); \\ Antti Karttunen, Sep 25 2018
CROSSREFS
Sequence in context: A010122 A220693 A208615 * A124371 A147989 A119329
KEYWORD
nonn
AUTHOR
Labos Elemer, Dec 28 2000
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 25 08:27 EDT 2024. Contains 371964 sequences. (Running on oeis4.)