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
KEYWORD
nonn,easy,mult
AUTHOR
STATUS
approved