OFFSET
1,10
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
EXAMPLE
a(42) = 42 / gcd(4, 2) = 42 / 2 = 21.
PROG
(PARI) a(n) = n / gcd(digits(n))
(Python)
from math import gcd
def a(n): return n//gcd(*[int(d) for d in str(n)])
print([a(n) for n in range(1, 68)]) # Michael S. Branicky, Jan 01 2022
CROSSREFS
KEYWORD
AUTHOR
Rémy Sigrist, Jan 01 2022
STATUS
approved