login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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
OFFSET
1,3
COMMENTS
Compare sequences gcd(x, phi(n)), where x = n-1, n, or n+1.
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
KEYWORD
nonn
AUTHOR
Labos Elemer, Dec 28 2000
EXTENSIONS
Offset corrected by Sean A. Irvine, Aug 11 2022
STATUS
approved