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”).

A109014
a(n) = gcd(n,11).
5
11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
OFFSET
0,1
FORMULA
a(n) = 1 + 10*[11|n], where [x|y] = 1 when x divides y, 0 otherwise.
a(n) = a(n-11).
Multiplicative with a(p^e, 11) = gcd(p^e, 11). - David W. Wilson, Jun 12 2005
Dirichlet g.f.: zeta(s)*(1+10/11^s). - R. J. Mathar, Apr 08 2011
a(n) = ((n-1) mod 2 + 1)*(10*floor(((n-1) mod 11)/10) + 1). - Gary Detlefs, Dec 28 2011
MATHEMATICA
GCD[Range[0, 100], 11] (* Harvey P. Dale, May 14 2022 *)
PROG
(Python)
from math import gcd
def a(n): return gcd(n, 11)
print([a(n) for n in range(99)]) # Michael S. Branicky, Nov 01 2021
CROSSREFS
Cf. A109004.
Sequence in context: A118135 A318671 A337335 * A268357 A321804 A321800
KEYWORD
nonn,easy,mult
AUTHOR
STATUS
approved