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!)
A058656 a(n) = gcd(n+1, phi(n)). 0
1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 8, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 1, 2, 1, 2, 1, 2, 1, 12, 1, 2, 3, 8, 1, 2, 1, 2, 5, 2, 1, 2, 1, 2, 1, 4, 1, 2, 1, 8, 3, 2, 1, 2, 1, 2, 3, 4, 1, 6, 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 1, 6, 1, 2, 1, 2, 1, 2, 1, 2, 3, 8, 1, 2, 1, 4, 1, 2, 1, 24, 1, 2, 3, 20, 1, 2, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
Compare sequences gcd(x, phi(n)), where x = n-1, n, or n+1.
LINKS
EXAMPLE
For n = 12, 13, 14, 15:
n+1 = 13, 14, 15, 16;
phi(n) = 4, 12, 12, 8;
a(n) = gcd(13,4), gcd(14,12), gcd(15,12), gcd(16,8) = 1, 2, 3, 8, respectively.
MATHEMATICA
Table[GCD[n+1, EulerPhi[n]], {n, 110}] (* Harvey P. Dale, Nov 17 2011 *)
CROSSREFS
Sequence in context: A161302 A161277 A160981 * A184221 A226898 A338653
KEYWORD
nonn
AUTHOR
Labos Elemer, Dec 28 2000
EXTENSIONS
Offset corrected by Sean A. Irvine, Aug 11 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 April 25 05:49 EDT 2024. Contains 371964 sequences. (Running on oeis4.)