|
|
A350494
|
|
Divide n by the greatest common divisor of the nonzero digits of n.
|
|
1
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 10, 21, 11, 23, 12, 25, 13, 27, 14, 29, 10, 31, 32, 11, 34, 35, 12, 37, 38, 13, 10, 41, 21, 43, 11, 45, 23, 47, 12, 49, 10, 51, 52, 53, 54, 11, 56, 57, 58, 59, 10, 61, 31, 21, 32, 65, 11, 67
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,10
|
|
LINKS
|
|
|
FORMULA
|
a(a(n)) = a(n).
|
|
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)])
|
|
CROSSREFS
|
|
|
KEYWORD
|
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|