OFFSET
1,20
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
MATHEMATICA
rd[x_] :=FromDigits[Reverse[IntegerDigits[x]]] Table[GCD[rd[w], rd[w+1]], {w, 1, 100}]
PROG
(Python)
from math import gcd
def a(n): return gcd(int(str(n)[::-1]), int(str(n+1)[::-1]))
print([a(n) for n in range(1, 106)]) # Michael S. Branicky, Dec 12 2021
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Labos Elemer, Jan 25 2005
STATUS
approved